Skip to main content

open_path

Function open_path 

Source
pub fn open_path(path: &CStr, flags: c_int, mode: c_uint) -> Option<RawFd>
Expand description

open(path, flags, mode) — prefers libc over std::fs::OpenOptions so directories open with O_RDONLY (archive walks) and we avoid extra syscalls.