iob_addfile_close(3)
π iob_addfile_close β from the libowfat crew, section 3 of the Library Functions Manual π
okay bestie, buckle up, we're doing a syscall-adjacent glow-up π¦
β¨ NAME β¨
iob_addfile_close β add a file region to your I/O batch π
β¨ SYNTAX β¨
#include <libowfat/iob.h>
int iob_addfile_close(io_batch* b,int64 fd,uint64 off,uint64 n);
β¨ DESCRIPTION β¨
so basically iob_addfile_close is the queen who schedules n bytes from the file descriptor fd, starting at offset off, to be written with the I/O batch b. she's putting it on the calendar, not doing it right this second. main character scheduling energy π
π¨ IMPORTANT, NO CAP: you may not closefdbeforeiob_sendindicates it is done. do NOT do it. the vibe check will fail and you will be sad π
also, heads up: iob_reset will call io_close(fd). so the cleanup is handled, but likeβ¦ on iob_reset's terms, iykyk π
β¨ RETURN VALUE β¨
1β success, slay, we ate β¨0β failure. and in the failure case, the file descriptor has been closed already. so like, don't double-close it, that's a whole thing π
β¨ SEE ALSO β¨
go read them, they're all part of the same little friend group π«Ά
and that's the whole page, bestie!! this one lives in the Library Functions Manual, section 3, and the footer at the bottom is just iob_addfile_close(3) echoing the name back at you like a little mirror selfie πͺ β no version number, no date, just vibes and a (3). stay batched, stay unclosed-until-iob_send-says-so, and drink some water ππ§π
π¦ 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