validate_fd

Function validate_fd 

Source
pub fn validate_fd(fd: RawFd) -> Result<()>
Expand description

Validate that a file descriptor is valid and open.

Uses fcntl(F_GETFL) to check if the fd is valid.