Skip to main content

is_descriptor_alias

Function is_descriptor_alias 

Source
pub fn is_descriptor_alias(p: &Path) -> bool
Expand description

true for a path that names an open descriptor rather than a file: /dev/stdin, /dev/stdout, /dev/stderr, /dev/fd/N (process substitution, <(...)) and /proc/<pid>/fd/N. Its file name is a descriptor number chosen by the shell, so it names nothing (D45: such inputs are named like standard input).