| author | |
| committer | |
| log | 5e5d932303e3076e4e64f1a715080b0ba28ab618 |
| tree | c7c5a55b330cac44af8ae62b3fdd4ef1e23b26aa |
| parent | b04e8a1fb618f69289d6782e8686610dad06423d |
| signature |
2 files changed, 6 insertions(+), 0 deletions(-)
mod.zig+5| ... | ... | @@ -3600,3 +3600,8 @@ pub fn fork() !pid_t { |
| 3600 | 3600 | std.debug.assert(rc >= 0); |
| 3601 | 3601 | return rc; |
| 3602 | 3602 | } |
| 3603 | pub 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 { |
| 73 | 73 | _ = &linux.pipe2; |
| 74 | 74 | _ = &linux.kill; |
| 75 | 75 | _ = &linux.fork; |
| 76 | _ = &linux.fchdir; | |
| 76 | 77 | } |