io_trywritetimeout(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_trywritetimeout(3) β€” Library Functions Manual πŸ¦‹βœ¨


✨ NAME ✨

io_trywritetimeout β€” write to a descriptor without blocking πŸ’…

🌸 SYNTAX 🌸

#include <libowfat/io.h>

int io_trywritetimeout(int64 fd,const char* buf,int64 len);

πŸ’– DESCRIPTION πŸ’–

Okay bestie, listen: io_trywritetimeout is identical to io_trywrite, with one specific exception, and it's giving timeout drama. If all of these are true:

  • io_trywrite returns -1 (the descriptor is not ready for writing), and
  • the descriptor has a timeout, and
  • the write attempt was after the descriptor's timeout,

then io_trywritetimeout instead returns -2, with errno set to ETIMEDOUT. No cap. 🫢

πŸŽ€ SEE ALSO πŸŽ€


That's the whole vibe, bestie β€” signing off from the Library Functions Manual as io_trywritetimeout(3) πŸ’–βœ¨ with no date in sight, just timeless iconic energy πŸ‘‘