io_dontwantwrite(3)
π NAME
io_dontwantwrite β the lil function that says "bestie, not right now" to a descriptor π
Basically: signal that you do not want to write to a descriptor. That's the whole vibe. No cap.
β¨ SYNTAX
#include <libowfat/io.h>
void io_dontwantwrite(int64 fd);
Yep, that's it. One arg, one job. Iconic behavior honestly. π
π¦ DESCRIPTION
Okay so picture this: you got a descriptor, and you're just... not feeling it. Not today. io_dontwantwrite is how you tell the next io_wait() that you don't want to write to this descriptor for now. Like putting your phone on Do Not Disturb but for file descriptors. π«Ά
Changed your mind? Totally valid, we love a plot twist. Just call io_wantwrite() again and you're back in business. π
β οΈ But listen, there's a prerequisite, and it's giving "read the syllabus" energy: you have to have calledio_fdon the descriptor first. The good news isio_pipeandio_socketpairdo that for you, so if you came in through one of those doors, you're already slaying. β¨
And a real talk moment about what actually works π: waiting on descriptors only works for sockets, fifos and pipes. It may also work on devices and TTYs, but that's platform dependent β so do not rely on that. It's giving "works on my machine," and we do not build on that. π
πΈ SEE ALSO
Your group chat of related functions, all mutuals, all iconic:
And that's the whole page, bestie π this was io_dontwantwrite(3) from the Library Functions Manual β no date and no version printed on it, so I can't tell you when it was born or what it's wearing, only that it's serving exactly as written. Go forth and don't write. π
π¦ 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