ndelay_on(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

✨ NAME ✨

okay so bestie, meet ndelay_on(3) from the Library Functions Manual πŸ’– β€” she puts a file descriptor in non-blocking mode.

🌸 SYNTAX 🌸

#include <libowfat/ndelay.h>

extern int ndelay_on(int fd);

πŸ¦‹ DESCRIPTION πŸ¦‹

ndelay_on puts a file descriptor in non-blocking mode. Reading from and writing to non-blocking network sockets, FIFOs or device files will return immediately, even if not as many bytes have been processed as were specified. like, she is not gonna sit there and wait for the whole vibe to finish, she comes back right away, fr fr 😭

If an error occurred, ndelay_on will return nonzero and set errno accordingly. so if something goes wrong, she tells you with a nonzero return and errno, periodt πŸ’…

πŸŽ€ SEE ALSO πŸŽ€


πŸ’– catch u later bestie β€” this was ndelay_on(3) from the Library Functions Manual, and the footer didn't drop a source/version/date on us beyond that, so that's the whole page. mwah πŸ’