Function open

Source
pub unsafe fn open(
    pathname: *const char,
    flags: int,
    mode: mode_t,
) -> Result<int>
Expand description

Open a file.

Warning: This function is not available on architectures recently added to the kernel. Use openat instead (using crate::AT_FDCWD as dirfd) for better portability.