pub fn open<P: Arg>(path: P, flags: OFlags, mode: Mode) -> Result<OwnedFd>
Expand description
open(path, oflags, mode)
—Opens a file.
POSIX guarantees that open
will use the lowest unused file descriptor,
however it is not safe in general to rely on this, as file descriptors may
be unexpectedly allocated on other threads or in libraries.
The Mode
argument is only significant when creating a file.