Changeset ec19b21


Ignore:
Timestamp:
Jan 14, 2021, 11:25:05 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
342af53, 7836dad, b0f6190a
Parents:
9153e53
Message:

Fixed compile for older versions of io_uring

Location:
libcfa/src/concurrency
Files:
3 edited

Legend:

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

    r9153e53 rec19b21  
    749749                __cfaabi_dbg_debug_do(
    750750                        memset(sqe, 0xde, sizeof(*sqe));
    751                         sqe->opcode = IORING_OP_LAST;
     751                        sqe->opcode = (sizeof(opcodes) / sizeof(const char *)) - 1;
    752752                );
    753753
  • libcfa/src/concurrency/io/call.cfa.in

    r9153e53 rec19b21  
    231231                sqe->addr = 0;
    232232                sqe->len = 0;
    233                 sqe->accept_flags = 0;
     233                sqe->fsync_flags = 0;
    234234                sqe->__pad2[0] = 0;
    235235                sqe->__pad2[1] = 0;
  • libcfa/src/concurrency/io/setup.cfa

    r9153e53 rec19b21  
    398398                        const __u32 num = *sq.num;
    399399                        for( i; num ) {
    400                                 sq.sqes[i].opcode = IORING_OP_LAST;
    401                                 sq.sqes[i].user_data = 3ul64;
     400                                __sqe_clean( &sq.sqes[i] );
    402401                        }
    403402                }
Note: See TracChangeset for help on using the changeset viewer.