SETBLOCK(1)
π setblock(1) β the setblock program β¨
SYNOPSIS π¦
setblock [{+|-}fd ...] [: command arg ...]
DESCRIPTION π
okay so bestie, setblock is literally a tiny little fd vibe-flipper. It sets each given file descriptor to be blocking when you use +, or non-blocking when you use -. Then it execs the given command, if any. No cap.
A colon : is the separator between the file descriptors and the command. That's the whole divide, iykyk.
+fdβ set that given file descriptor to be blocking β¨-fdβ set that given file descriptor to be non-blocking π:β separates the file descriptors from the command πcommand arg ...β the command toexecafter the fd setup, if any π«Ά
For example, this command sets file descriptor 3 to be nonblocking and file descriptor 4 to be blocking:
setblock -3 +4
Heads up bestie: the example is literally doing fd3with-β nonblocking, and fd4with+β blocking. The vibes are opposite-sign, the facts are exact. π
source/version + date sign-off: the footer is just the program name again with empty () and everything, but no version and no date attached, so that's the entire page β periodt, bestie ππ
π¦ where this page comes from
- nixpkgs unstable: fdtools 2024.12.07
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms