Changeset 519f11c for libcfa/src/concurrency/iocall.cfa
- Timestamp:
- Jul 16, 2020, 2:59:50 PM (4 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:
- 463cb33
- Parents:
- 79306383
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/iocall.cfa
r79306383 r519f11c 345 345 } 346 346 347 int cfa_statx(int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf) { 348 #if !defined(HAVE_LINUX_IO_URING_H) || !defined(IORING_OP_STATX) 349 return syscall( __NR_statx, dirfd, pathname, flags, mask, statxbuf ); 350 #else 351 __submit_prelude 352 353 (*sqe){ IORING_OP_STATX, dirfd, pathname, mask, (uint64_t)statxbuf }; 354 sqe->flags = flags; 355 356 __submit_wait 357 #endif 358 } 359 347 360 ssize_t cfa_read(int fd, void *buf, size_t count) { 348 361 #if !defined(HAVE_LINUX_IO_URING_H) || !defined(IORING_OP_READ) … … 396 409 __submit_wait 397 410 #endif 398 }399 400 ssize_t cfa_sendfile(int out_fd, int in_fd, off_t *offset, size_t count) {401 return cfa_splice(in_fd, offset, out_fd, 0p, count, 0);402 411 } 403 412
Note: See TracChangeset
for help on using the changeset viewer.