#include <__aio.h> #include #include #include #include int aio_fsync(int op, struct aiocb *aiocbp) { int opcode; struct aio_request *req; req = __aio_lookup(aiocbp); if (req == NULL) { errno = EINVAL; return -1; } if (op == O_DSYNC) { opcode = IORING_OP_FSYNC | IORING_FSYNC_DATASYNC; } else { opcode = IORING_OP_FSYNC; } return __aio_request(req, opcode); }