13263abd4f
* xlat/aio_iocb_flags.in: New file. * defs.h (pollflags, rwf_flags): New declarations. * configure.ac: Check for the presence of aio_rw_flags field of the struct iocb. * aio.c: Include "xlat/aio_iocb_flags.h". (AIO_RW_FLAGS_FIELD): New macro definition, defined based on the presence of HAVE_STRUCT_IOCB_AIO_RW_FLAGS macro. (iocb_sub): Add SUB_POLL. (tprint_lio_opcode): Change IOCB_CMD_POLL subtype to SUB_POLL. [!IOCB_FLAG_RESFD] (print_common_flags): Remove IOCB_FLAG_RESFD presence check, as it is now provided via xlat. (print_common_flags): Print aio_flags using aio_iocb_flags xlat. (print_iocb_header): Always print aio_data. Print aio_rw_flags if it is non-zero. Print aio_reqprio based on the presence of IOCB_FLAG_IOPRIO flag in aio_flags (us print_ioprio if it set and print as a signed integer otherwise). (print_iocb): Decode SUB_POLL subtype. * tests/aio.c: Update expected output.
3 lines
38 B
Plaintext
3 lines
38 B
Plaintext
IOCB_FLAG_RESFD 1
|
|
IOCB_FLAG_IOPRIO 2
|