Changeset 927a918


Ignore:
Timestamp:
May 2, 2020, 2:41:36 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
3f7d0b4
Parents:
c1581a0
Message:

Removed support for statx which caused only problems and is barely supported in libc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io.cfa

    rc1581a0 r927a918  
    567567        extern int close(int fd);
    568568
    569         struct statx;
    570         extern int statx(int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf);
    571 
    572569        extern ssize_t read (int fd, void *buf, size_t count);
    573570}
     
    779776
    780777                (*sqe){ IORING_OP_CLOSE, fd };
    781 
    782                 __submit_wait
    783         #endif
    784 }
    785 
    786 int cfa_statx(int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf) {
    787         #if !defined(HAVE_LINUX_IO_URING_H) || !defined(IORING_OP_STATX)
    788                 //return statx( dirfd, pathname, flags, mask, statxbuf );
    789                 return syscall( __NR_statx, dirfd, pathname, flags, mask, statxbuf );
    790         #else
    791                 __submit_prelude
    792 
    793                 (*sqe){ IORING_OP_STATX, dirfd };
    794                 sqe->addr = (uint64_t)pathname;
    795                 sqe->statx_flags = flags;
    796                 sqe->len = mask;
    797                 sqe->off = (uint64_t)statxbuf;
    798778
    799779                __submit_wait
     
    912892                        return IS_DEFINED(IORING_OP_CLOSE);
    913893
    914                 if( /*func == (fptr_t)statx || */
    915                         func == (fptr_t)cfa_statx )
    916                         #define _CFA_IO_FEATURE_IORING_OP_STATX ,
    917                         return IS_DEFINED(IORING_OP_STATX);
    918 
    919894                if( /*func == (fptr_t)read || */
    920895                        func == (fptr_t)cfa_read )
Note: See TracChangeset for help on using the changeset viewer.