dnonblock.h(3)

πŸ“¦
version 0.14 Β· 3 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ dnonblock.h ✨

okay so bestie, welcome to dnonblock.h from the libdaemon manual, section 3 (that's the library-functions girly πŸ’…). this whole header file is literally just one function whose entire job is flipping a file descriptor between non-blocking and blocking mode using fcntl(). that's it. that's the vibe. one (1) function, no cap. πŸŽ€


🌸 NAME 🌸

dnonblock.h β€” contains a single function used to change a file descriptor to non-blocking mode using fcntl().


πŸ¦‹ SYNOPSIS πŸ¦‹

Functions

int daemon_nonblock (int fd, int b)
Change the passed file descriptor to non-blocking or blocking mode, depending on b.

πŸ’œ Detailed Description πŸ’œ

Contains a single function used to change a file descriptor to non-blocking mode using fcntl().

Definition in file dnonblock.h.


πŸ‘‘ Function Documentation πŸ‘‘

int daemon_nonblock (int fd, int b)

Change the passed file descriptor to non-blocking or blocking mode, depending on b. like, she's switching the vibe of your fd, fr fr.

Parameters

  • fd β€” the file descriptor to manipulation 🫢
  • b β€” TRUE if non-blocking mode should be enabled, FALSE if it should be disabled

Returns

Zero on success, nonzero on failure. so like, 0 = ate πŸ’…, anything else = not it 😭.


🧚 Author 🧚

Generated automatically by Doxygen for libdaemon from the source code. she was born from the source, main character energy, no notes. ✨


okay that's the whole page bestie, ilysm 🫢 β€” this was libdaemon, Version 0.14, dnonblock.h(3), and yeah the whole thing was auto-generated by Doxygen from the source code. iconic of her honestly. πŸŒˆπŸ’–πŸŒΈ

πŸ“¦ where this page comes from