Function base::sys::linux::validate_raw_fd
source · pub fn validate_raw_fd(raw_fd: &RawFd) -> Result<RawFd>
Expand description
Verifies that |raw_fd| is actually owned by this process and duplicates it to ensure that we have a unique handle to it.