POSIX Asynchronous I/O option.
More...
|
| #define | unsigned signed /* parasoft-suppress MISRAC2012-RULE_20_4-a MISRAC2012-RULE_20_4-b */ |
| | Signed size type.
|
| |
|
| typedef long | off_t |
| | File offset type.
|
| |
|
| int | aio_cancel (int fildes, struct aiocb *aiocbp) |
| | Cancel an outstanding asynchronous I/O request.
|
| |
| int | aio_error (const struct aiocb *aiocbp) |
| | Retrieve the error status of an asynchronous I/O request.
|
| |
| int | aio_fsync (int filedes, struct aiocb *aiocbp) |
| | Asynchronously synchronise a file's data and metadata to storage.
|
| |
| int | aio_read (struct aiocb *aiocbp) |
| | Enqueue an asynchronous read operation.
|
| |
| ssize_t | aio_return (struct aiocb *aiocbp) |
| | Retrieve the return status of a completed asynchronous I/O request.
|
| |
| int | aio_suspend (const struct aiocb *const list[], int nent, const struct timespec *timeout) |
| | Wait for one or more asynchronous I/O requests to complete.
|
| |
| int | aio_write (struct aiocb *aiocbp) |
| | Enqueue an asynchronous write operation.
|
| |
| int | lio_listio (int mode, struct aiocb *const ZRESTRICT list[], int nent, struct sigevent *ZRESTRICT sig) |
| | Initiate a list of asynchronous I/O requests.
|
| |
POSIX Asynchronous I/O option.
◆ unsigned
| #define unsigned signed /* parasoft-suppress MISRAC2012-RULE_20_4-a MISRAC2012-RULE_20_4-b */ |
Signed size type.
Definition at line 47 of file aio.h.
◆ off_t
File offset type.
Definition at line 36 of file aio.h.
◆ aio_cancel()
| int aio_cancel |
( |
int |
fildes, |
|
|
struct aiocb * |
aiocbp |
|
) |
| |
◆ aio_error()
| int aio_error |
( |
const struct aiocb * |
aiocbp | ) |
|
◆ aio_fsync()
| int aio_fsync |
( |
int |
filedes, |
|
|
struct aiocb * |
aiocbp |
|
) |
| |
◆ aio_read()
| int aio_read |
( |
struct aiocb * |
aiocbp | ) |
|
◆ aio_return()
| ssize_t aio_return |
( |
struct aiocb * |
aiocbp | ) |
|
◆ aio_suspend()
| int aio_suspend |
( |
const struct aiocb *const |
list[], |
|
|
int |
nent, |
|
|
const struct timespec * |
timeout |
|
) |
| |
◆ aio_write()
| int aio_write |
( |
struct aiocb * |
aiocbp | ) |
|
◆ lio_listio()
| int lio_listio |
( |
int |
mode, |
|
|
struct aiocb *const ZRESTRICT |
list[], |
|
|
int |
nent, |
|
|
struct sigevent *ZRESTRICT |
sig |
|
) |
| |
Initiate a list of asynchronous I/O requests.
- Parameters
-
| mode | LIO_WAIT (block until all complete) or LIO_NOWAIT (return immediately). |
| list | Array of control block pointers (LIO_NOP entries are skipped). |
| nent | Number of entries in list. |
| sig | Notification on completion (only for LIO_NOWAIT), or NULL. |
- Returns
- 0 on success, or -1 with errno set on failure.
- See also
- https://pubs.opengroup.org/onlinepubs/9699919799/functions/lio_listio.html