Changes in / [21b0a23:53ee27e]
- File:
-
- 1 edited
-
libcfa/src/concurrency/iocall.cfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/iocall.cfa
r21b0a23 r53ee27e 298 298 299 299 (*sqe){ IORING_OP_ACCEPT, sockfd }; 300 sqe->addr = addr;301 sqe->addr2 = addrlen;300 sqe->addr = (uint64_t)(uintptr_t)addr; 301 sqe->addr2 = (uint64_t)(uintptr_t)addrlen; 302 302 sqe->accept_flags = flags; 303 303 … … 313 313 314 314 (*sqe){ IORING_OP_CONNECT, sockfd }; 315 sqe->addr = (uint64_t) addr;316 sqe->off =addrlen;315 sqe->addr = (uint64_t)(uintptr_t)addr; 316 sqe->off = (uint64_t)(uintptr_t)addrlen; 317 317 318 318 __submit_wait … … 326 326 __submit_prelude 327 327 328 #warning FALLOCATE documentation for linux 5.7 is incorrect, and doesn't handle mode 329 328 330 (*sqe){ IORING_OP_FALLOCATE, fd }; 329 331 sqe->off = offset; 330 sqe->len = length;331 sqe-> mode = mode;332 sqe->len = mode; 333 sqe->addr = len; 332 334 333 335 __submit_wait … … 343 345 (*sqe){ IORING_OP_FADVISE, fd }; 344 346 sqe->off = (uint64_t)offset; 345 sqe->len = len gth;347 sqe->len = len; 346 348 sqe->fadvise_advice = advice; 347 349 … … 374 376 sqe->addr = (uint64_t)pathname; 375 377 sqe->open_flags = flags; 376 sqe-> mode= mode;378 sqe->len = mode; 377 379 378 380 __submit_wait … … 442 444 __submit_prelude 443 445 444 (*sqe){ IORING_OP_SPLICE, fd_out, 0p, len, off_out }; 446 (*sqe){ IORING_OP_SPLICE, fd_out }; 447 if( off_out ) { 448 sqe->off = *off_out; 449 } 450 else { 451 sqe->off = (uint64_t)-1; 452 } 453 sqe->len = len; 445 454 sqe->splice_fd_in = fd_in; 446 sqe->splice_off_in = off_in; 455 if( off_in ) { 456 sqe->splice_off_in = *off_in; 457 } 458 else { 459 sqe->splice_off_in = (uint64_t)-1; 460 } 447 461 sqe->splice_flags = flags | (SPLICE_FLAGS & submit_flags); 448 462
Note:
See TracChangeset
for help on using the changeset viewer.