Constant std::sys::unix::kernel_copy::INVALID_FD

source ·
const INVALID_FD: RawFd = -1;
Expand description

Invalid file descriptor.

Valid file descriptors are guaranteed to be positive numbers (see open() manpage) while negative values are used to indicate errors. Thus -1 will never be overlap with a valid open file.