io_dontwantread(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_dontwantread(3) πŸ’–

okay bestie, so this one lives in the Library Functions Manual and it's literally called io_dontwantread β€” yes that's the whole vibe of the page, we're in the libowfat/io.h cinematic universe now πŸ¦‹


✨ NAME ✨

io_dontwantread β€” the little function that says "not right now, babe" to a descriptor πŸ’…


🌸 SYNTAX 🌸

#include <libowfat/io.h>

void io_dontwantread(int64 fd);

πŸŽ€ DESCRIPTION πŸŽ€

so io_dontwantread is you telling the next io_wait() that you do not want to read from this descriptor for now. like, respectfully, not today. πŸ™ˆ

changed your mind? iconic. just call io_wantread() again and we're so back πŸ’–

before any of this works tho, you have to have called io_fd on the descriptor first β€” and ngl, io_pipe and io_socketpair already do that for you, so they're the besties who handle it 🫢

⚠️ real talk: waiting on descriptors only works for sockets, fifos and pipes. it may also work on devices and TTYs, but that is platform dependent β€” you should not rely on that. no cap, don't build your whole personality on it πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie ✨ this was io_dontwantread(3) from the Library Functions Manual β€” slay, go tell your descriptors how you feel πŸ’…πŸŒΈπŸŽ€