AIO_ERROR(2)
β¨ AIO_ERROR(2) β¨
okay so bestie, welcome to the AIO_ERROR(2) page π
this one lives in the System Calls Manual and it's about checking up on your async I/O like the nosy best friend you are π«Ά
πΈ NAME πΈ
aio_error β retrieve error status of asynchronous I/O operation (REALTIME) β°β¨
π LIBRARY π
Standard C Library (libc, -lc) ππ
π¦ SYNOPSIS π¦
#include <aio.h>
int
aio_error(const struct aiocb *iocb);
π DESCRIPTION π
So here's the vibe: the aio_error() system call returns the error status of the asynchronous I/O request that's attached to the structure pointed to by iocb πβ¨ like it literally just peeks at your request and tells you what's up with it. main character energy honestly π
π₯ RETURN VALUES π₯
Okay so the tea β:
- If the asynchronous I/O request has completed successfully,
aio_error()returns0β slay, no notes π - If the request has not yet completed,
EINPROGRESSis returned β it's giving "girl, be patient" β³π - If the request has completed unsuccessfully, the error status is returned as described in
read(2),readv(2),write(2),writev(2), orfsync(2)π (iykyk) - On failure,
aio_error()returns-1and setserrnoto indicate the error condition π
π ERRORS π
The aio_error() system call will fail if:
[EINVAL]β Theiocbargument does not reference an outstanding asynchronous I/O request π« like bestie that's not even a real pending request, what are you doing
β SEE ALSO β
aio_cancel(2), aio_read(2), aio_readv(2), aio_return(2), aio_suspend(2), aio_write(2), aio_writev(2), fsync(2), read(2), write(2), aio(4) β the whole friend group, go say hi π«Άπ
π STANDARDS π
The aio_error() system call is expected to conform to the IEEE Std 1003.1 (βPOSIX.1β) standard πβ¨ periodt.
π§ HISTORY π§
The aio_error() system call first appeared in FreeBSD 3.0 β a certified classic, an icon, a legend honestly π
π AUTHORS π
This manual page was written by Wes Peters <wes@softweyr.com> β thank you for your service king π«‘π
and that's the whole page bestie, no cap π
this was the Debian version, dated January 2, 2021, and you just read the AIO_ERROR(2) page from the System Calls Manual β go forth and check your async statuses responsibly πΈβ¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1999 Softweyr LLC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms