- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/iocall.cfa
re1801fc 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.