Ignore:
Timestamp:
Jul 10, 2020, 4:18:36 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:
f5d4f62
Parents:
365e423
Message:

Added support for non-blocking sendfile

File:
1 edited

Legend:

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

    r365e423 re1801fc  
    398398}
    399399
     400ssize_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}
     403
    400404//-----------------------------------------------------------------------------
    401405// Check if a function is asynchronous
     
    499503
    500504                if( /*func == (fptr_t)splice || */
    501                         func == (fptr_t)cfa_splice )
     505                        func == (fptr_t)cfa_splice ||
     506                        func == (fptr_t)cfa_sendfile )
    502507                        #define _CFA_IO_FEATURE_IORING_OP_SPLICE ,
    503508                        return IS_DEFINED(IORING_OP_SPLICE);
Note: See TracChangeset for help on using the changeset viewer.