AIO_ERROR(2)
π AIO_ERROR(2) π
okay bestie, we're in the System Calls Manual and today's main character is aio_error β the little guy who tells you how your async I/O request is doing. no cap, this is a realtime situation. π¦
β¨ 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 basically, the aio_error() system call returns the error status of the asynchronous I/O request that's associated with the structure pointed to by iocb. that's it. that's the whole vibe. you hand it a pointer, it tells you what's up with your request. π
β RETURN VALUES β
okay this is the part where you find out what you got:
- if your asynchronous I/O request completed successfully,
aio_error()returns0. slay. π - if the request has not yet completed, you get
EINPROGRESS. it's giving "not me waiting on my own I/O" energy. β³ - if the request completed unsuccessfully, the error status is returned as described in
read(2),write(2), orfsync(2). go look those up, bestie, they have the receipts. π - and 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, that pointer isn't pointing at anything currently in flight, bestie. π
π SEE ALSO π
aio_cancel(2), aio_read(2), aio_return(2), aio_suspend(2), aio_write(2), fsync(2), read(2), write(2), aio(4)
π STANDARDS π
the aio_error() system call is expected to conform to the IEEE Std 1003.1 (βPOSIX.1β) standard. iconic behavior honestly. π
π¦ HISTORY π¦
the aio_error() system call first appeared in FreeBSD 3.0. a true elder. π
π 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!! this one came from the Debian crew, dated June 2, 1999, and it lives under AIO_ERROR(2) in the System Calls Manual. go forth and check your async errors, mwah πβ¨
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1999 Softweyr LLC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms