authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-08 00:29:18 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-08 00:29:18 -07:00
logd5644cedf60338f1dc23e33c7167112a46ede854
tree741cba50399fbc95a74321db7c5c29e5a044343c
parentb49fdea61f8a48c7b677a6187b3c3c19e7f2f862
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add faccessat


2 files changed, 6 insertions(+), 0 deletions(-)

mod.zig+5
...@@ -3517,3 +3517,8 @@ pub fn futimens(fd: c_int, times: [2]struct_timespec) !void {...@@ -3517,3 +3517,8 @@ pub fn futimens(fd: c_int, times: [2]struct_timespec) !void {
3517 if (rc == -1) return errno.fromInt(errno.fromLibC());3517 if (rc == -1) return errno.fromInt(errno.fromLibC());
3518 std.debug.assert(rc == 0);3518 std.debug.assert(rc == 0);
3519}3519}
3520pub fn faccessat(fd: c_int, path: [*:0]const u8, amode: c_int, flag: c_int) !void {
3521 const rc = libc.faccessat(fd, path, amode, flag);
3522 if (rc == -1) return errno.fromInt(errno.fromLibC());
3523 std.debug.assert(rc == 0);
3524}
test.zig+1
...@@ -62,4 +62,5 @@ test {...@@ -62,4 +62,5 @@ test {
62 _ = &linux.getrandom;62 _ = &linux.getrandom;
63 _ = &linux.flock;63 _ = &linux.flock;
64 _ = &linux.futimens;64 _ = &linux.futimens;
65 _ = &linux.faccessat;
65}66}