AIO_RETURN(2)
π AIO_RETURN(2) π β the System Calls Manual one, bestie
okay so welcome to the manual page for aio_return, and yes it lives in section 2 of the System Calls Manual which is giving very "the grown-ups' section" energy and honestly? deserved. π
β¨ NAME β¨
aio_return β retrieve return status of asynchronous I/O operation (REALTIME)
π LIBRARY π
Standard C Library (libc, -lc)
π¦ SYNOPSIS π¦
#include <aio.h>
ssize_t
aio_return(struct aiocb *iocb);
πΈ DESCRIPTION πΈ
so the aio_return() system call hands you back the final status of the asynchronous I/O request that's tied to the structure that iocb points at. that's it. that's the whole vibe. π
IMPORTANT: you callaio_return()only once, bestie. one time. to grab the final status of an async I/O operation after it's already done β and by "done" we meanaio_error(2)is returning something that is notEINPROGRESS. if you're still seeingEINPROGRESS, the operation is lowkey still cooking and you do NOT have permission to collect. β³
π«Ά RETURN VALUES π«Ά
if the asynchronous I/O request has completed, the status comes back exactly as described in read(2), write(2), or fsync(2). β¨
otherwise, aio_return() returns -1 and sets errno to point at whatever the error condition is. sad girl hours. π
π ERRORS π
the aio_return() system call will fail if:
[EINVAL]β theiocbargument does not reference a completed asynchronous I/O request. like. it's not done. stop asking. π
π SEE ALSO π
aio_cancel(2), aio_error(2), aio_suspend(2), aio_waitcomplete(2), aio_write(2), fsync(2), read(2), write(2), aio(4)
π STANDARDS π
the aio_return() system call is expected to conform to the IEEE Std 1003.1 (βPOSIX.1β) standard. iconic behavior, no notes. β
π§ HISTORY π§
the aio_return() system call first appeared in FreeBSD 3.0. vintage. a classic. π
π AUTHORS π
this manual page was written by Wes Peters <wes@softweyr.com>. king behavior, we love a credited author. π
and that's the whole page bestie, mwah π β brought to you by Debian, March 21, 2016, aka the footer that gets the last word. periodt. πβ¨
π¦ 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