iom_abort(3)
π iom_abort(3) π
okay so bestie, you're in the Library Functions Manual section, and this little cutie is called iom_abort. she's giving β¨main characterβ¨ energy for your event loop, fr fr.
πΈ NAME πΈ
iom_abort β abort all pending iom_wait calls
like. ALL of them. no cap. π
π SYNTAX π
#include <libowfat/io.h>
int iom_abort(iomux_t* c);
one function, one pointer, no drama. the c is your iomux_t* and she is NOT optional, periodt. π¦
β¨ DESCRIPTION β¨
okay so here's the tea, bestie: iom_abort will cause all currently running instances of iom_wait to return immediately with return value -2.
that's it. that's the whole vibe. every single iom_wait that's currently hanging out, waiting, being patient, doing its little wait thing β iom_abort walks in and is like "girls, we're LEAVING" and they all come back with -2. iconic behaviour honestly. π₯
so if you've got stuff blocked in iom_wait and you need them to just. stop. waiting. right now β this is your girl. π
π LINKING π
heads up bestie, you may have to add -lpthread to the command line in the linking step. don't skip this, i'm literally begging you, the linker will be so mad at you and it's such an avoidable situation. π
β RETURN VALUE β
iom_abortreturns0on success π- and
-1on error, settingerrno
so like, check your errno if you get the -1, okay? she's telling you something. don't ignore her. π
π«Ά SEE ALSO π«Ά
iom_initiom_addiom_wait
the whole friend group honestly. go read them too, they're all slaying in their own ways. π§
okay bye bestie, this was iom_abort(3) from the Library Functions Manual β that's the source and version vibe right there, and she's dated as ever (manpages don't age, they just get more iconic π). love you, go write some non-blocking code, mwah. ππβ¨
π¦ 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