I have been looking at
sys::unix::fd extensively as I am forced to reimplement parts of it for a project.
One thing that stuck out to me is the use of ioctl FIONBIO to set nonblocking mode on Linux specifically.
From my understanding,
FIONBIO is old and was superceded by POSIX in the form of
This is counter to how
set_cloexec is implemented, which uses the newer (and POSIX)
Is there a rationale for this?