Changeset 927a918
- Timestamp:
- May 2, 2020, 2:41:36 PM (5 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io.cfa
rc1581a0 r927a918 567 567 extern int close(int fd); 568 568 569 struct statx;570 extern int statx(int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf);571 572 569 extern ssize_t read (int fd, void *buf, size_t count); 573 570 } … … 779 776 780 777 (*sqe){ IORING_OP_CLOSE, fd }; 781 782 __submit_wait783 #endif784 }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 #else791 __submit_prelude792 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;798 778 799 779 __submit_wait … … 912 892 return IS_DEFINED(IORING_OP_CLOSE); 913 893 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 919 894 if( /*func == (fptr_t)read || */ 920 895 func == (fptr_t)cfa_read )
Note: See TracChangeset
for help on using the changeset viewer.