aiocb(3type)

πŸ’– aiocb(3type) β€” bestie, it's the async I/O control block ✨

okay so you're in the <aio.h> section 3type girlies and you found this lil struct called aiocb β€” that's asynchronous I/O control block for the uninitiated β€” and it's genuinely the blueprint for every async read/write you're gonna do. no cap, this is the whole personality of POSIX async I/O right here. let's get into it πŸ¦‹


πŸ“š LIBRARY

Standard C library (libc) β€” she's built in, you don't gotta install anything, periodt πŸ’…


✨ SYNOPSIS ✨

#include <aio.h>

struct aiocb {
    int             aio_fildes;     /* File descriptor */
    off_t           aio_offset;     /* File offset */
    volatile void  *aio_buf;        /* Location of buffer */
    size_t          aio_nbytes;     /* Length of transfer */
    int             aio_reqprio;    /* Request priority offset */
    struct sigevent aio_sigevent;   /* Signal number and value */
    int             aio_lio_opcode; /* Operation to be performed */
};

look at her. seven fields. every single one of them doing its little job. iconic behavior fr fr πŸ‘‘


🌸 DESCRIPTION

so if you want the actual tea about this structure β€” what it does, how it behaves, all the lore β€” go read aio(7). she's the main character page, this one is just the supporting cast introduction. iykyk 🫢


πŸ“ STANDARDS

POSIX.1-2024. that's her pedigree bestie, she's official ✨


πŸ•°οΈ HISTORY

she's been around since POSIX.1-1996 β€” a true vintage queen, older than most of the internet πŸ’œ


πŸ‘€ SEE ALSO

all her besties, all linked, all worth a read πŸ’–


and that's the whole vibe ✨ this one's from Linux man-pages 6.20, dated 2026-02-08 β€” go off, read the struct, write some async I/O, slay πŸ’…πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms