pub fn fcntl_getfd<Fd: AsFd>(fd: Fd) -> Result<FdFlags>
fcntl(fd, F_GETFD)—Returns a file descriptor’s flags.
fcntl(fd, F_GETFD)