Function openat [src]

Prototype

pub fn openat(dirfd: i32, path: [*:0]const u8, flags: O, mode: mode_t) usize

Parameters

dirfd: i32path: [*:0]const u8flags: Omode: mode_t

Source

pub fn openat(dirfd: i32, path: [*:0]const u8, flags: O, mode: mode_t) usize { // dirfd could be negative, for example AT.FDCWD is -100 return syscall4(.openat, @bitCast(@as(isize, dirfd)), @intFromPtr(path), @as(u32, @bitCast(flags)), mode); }