Ignore:
Timestamp:
Jul 16, 2020, 2:59:50 PM (4 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:
463cb33
Parents:
79306383
Message:

Minor fixes in concurrency lib.
Remove async support for sendfile as a single call to splice

File:
1 edited

Legend:

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

    r79306383 r519f11c  
    345345}
    346346
     347int 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
    347360ssize_t cfa_read(int fd, void *buf, size_t count) {
    348361        #if !defined(HAVE_LINUX_IO_URING_H) || !defined(IORING_OP_READ)
     
    396409                __submit_wait
    397410        #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);
    402411}
    403412
Note: See TracChangeset for help on using the changeset viewer.