Control the non-blocking state of the given file descriptor, according to nonblock
.
On most systems this uses o_nonblock, but on some older ones may use o_ndelay.
fd |
A file descriptor |
nonblock |
If true, set the descriptor to be non-blocking |
true if successful |