io_timeouted(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– io_timeouted(3) β€” like, the timeout check-in page πŸ’–

okay bestie, so this is a page from the Library Functions Manual and it's all about io_timeouted(3), one lil function that goes and finds your overdue file descriptors for you. she's giving hall monitor energy but in a cute way πŸŽ€


✨ NAME ✨

io_timeouted β€” return a file descriptor over deadline πŸ•


🌸 SYNTAX 🌸

#include <libowfat/io.h>

int64 io_timeouted();

literally that's it. one include, one call, no arguments, we love a low-maintenance icon πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• io_timeouted returns the next file descriptor that is past it's deadline. like, the one that's late, the one that ghosted its own timer, that one πŸ“…

and if no descriptors are past their deadlines? she returns -1. no drama, just -1 πŸ’€

okay this next part MATTERS, bestie, don't skip it πŸ™ˆ

after io_timeouted() has returned -1, you should wait a second before calling it again. like, actually pause. breathe. touch some grass 🌱

why tho? because checking for connections past their deadline involves walking through the whole data structure πŸšΆβ™€οΈ and that can thrash the CPU cache needlessly. no cap. it's giving expensive. so treat it as an expensive operation β€” because it literally is one πŸ’Έ


πŸ’… SEE ALSO πŸ’…

go read those too, they're the besties of this page fr fr 🫢


and that's the whole vibe, my love πŸ’œ this was io_timeouted(3) from the Library Functions Manual β€” that's the footer, that's the sign-off, and yes she really does appear on both the top and the bottom of the page because she's the main character of her own manpage ✨ periodt πŸ’–