io_timeout(3)
β¨ NAME β¨
io_timeout β set a time limit on a descriptor β°π
π SYNTAX π
#include <libowfat/io.h>
void io_timeout(int64 fd,tai6464 deadline);
π¦ DESCRIPTION π¦
okay so listen, bestie π«Ά the io library is out here keeping track of an optional "timeout" for every single descriptor. and a timeout isn't like, a countdown in seconds or whatever β it's a very specific moment in time, and it lives in a tai6464 variable. so fancy, so precise, we love that for us β¨
io_timeout(d,t) just sets the timeout for descriptor d to t. that's it. that's the whole job. queen behavior, honestly π
and here's the part where she has no return value β she always succeeds, no cap. the space to store that timeout was already allocated as part of the descriptor, so there's literally nothing that can go wrong here. π
also! if d is not the number of a descriptor, this function just has no effect. no error, no drama, just nothing. it's giving unbothered πΈ
but wait, there's a catch bestie π β setting a timeout does not magically notify you when it happens. you have to call io_timeouted to actually get notified about timeouts, just like you're calling io_canread or io_canwrite for read and write notification. same energy, different function. iykyk π«
π SEE ALSO π
and that's the whole page, bestie, you ate it up πβ¨ that was io_timeout(3) coming to you straight from the Library Functions Manual β mwah, xoxo, go set some deadlines πππ¦
π¦ 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