iob_addfile(3)
π iob_addfile(3) β Library Functions Manual π
okay bestie, welcome to the iob_addfile(3) page, we're in the Library Functions Manual section and honestly this one is short and sweet, which is iconic of it. let's go β¨
πΈ NAME πΈ
iob_addfile β add file region to I/O batch
π¦ SYNTAX π¦
#include <libowfat/iob.h>
int iob_addfile(io_batch* b,int64 fd,uint64 off,uint64 n);
π DESCRIPTION π
so the whole vibe of iob_addfile is: it schedules n bytes from the file descriptor fd, starting at offset off, to be written with the I/O batch b. that's it. that's the function. she's booked in, she'll get sent later π
β οΈ do NOT closefdbeforeiob_sendindicates it's done. like, for real. not a drill. that's the one rule and she's strict about it π
and if you're sitting there thinking "girl, I want that file descriptor to be closed automatically by iob_reset" β then you want iob_addfile_close instead. use that one. slay π
β RETURN VALUE β
- returns
1on success π«Ά - returns
0on failure π
π SEE ALSO π
okay that's the whole page, no cap π it's from the Library Functions Manual and the footer is literally just the page title again β iob_addfile(3) β so consider this your little sign-off, mwah, go schedule your file regions responsibly π§π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms