authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-26 18:00:45 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-26 18:00:45 -07:00
log5e5d932303e3076e4e64f1a715080b0ba28ab618
treec7c5a55b330cac44af8ae62b3fdd4ef1e23b26aa
parentb04e8a1fb618f69289d6782e8686610dad06423d
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add fchdir


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

mod.zig+5
......@@ -3600,3 +3600,8 @@ pub fn fork() !pid_t {
36003600 std.debug.assert(rc >= 0);
36013601 return rc;
36023602}
3603pub fn fchdir(fildes: c_int) !void {
3604 const rc = libc.fchdir(fildes);
3605 if (rc == -1) return errno.fromInt(errno.fromLibC());
3606 std.debug.assert(rc == 0);
3607}
test.zig+1
......@@ -73,4 +73,5 @@ test {
7373 _ = &linux.pipe2;
7474 _ = &linux.kill;
7575 _ = &linux.fork;
76 _ = &linux.fchdir;
7677}