Function base::sys::linux::safe_descriptor_from_path

source ·
pub fn safe_descriptor_from_path<P: AsRef<Path>>(
    path: P,
) -> Result<Option<SafeDescriptor>>
Expand description

If the given path is of the form /proc/self/fd/N for some N, returns Ok(Some(N)). Otherwise returns Ok(None).