Retrieves the file descriptor flags of a file descriptor.
fn fcntl_getfd(fd: i32) -> i32
The file descriptor to inspect.
Returns the file descriptor flags or an error value.
fcntl(2) and F_GETFD therein