Function base::sys::unix::add_fd_flags

source ·
pub fn add_fd_flags(fd: RawFd, set_flags: c_int) -> Result<()>
Expand description

Performs a logical OR of the given flags with the FD’s flags, setting the given bits for the FD.

Returns an error if the OS indicates the flags can’t be retrieved or set.