| author | |
| committer | |
| log | 79207de4d29b7da5552bc52acd7443f8868404c4 |
| tree | 61b3bb351a68d7810336ab56d1b2e290bf9ab1b7 |
| parent | 8cd7493b530b23e91234124f056211a8b38ebbd2 |
| signature |
2 files changed, 6 insertions(+), 0 deletions(-)
mod.zig+5| ... | ... | @@ -3614,3 +3614,8 @@ pub fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) !noreturn |
| 3614 | 3614 | std.debug.assert(rc == -1); |
| 3615 | 3615 | return errno.fromInt(errno.fromLibC()); |
| 3616 | 3616 | } |
| 3617 | pub fn dup2(fildes: c_int, fildes2: c_int) !void { | |
| 3618 | const rc = libc.dup2(fildes, fildes2); | |
| 3619 | if (rc == -1) return errno.fromInt(errno.fromLibC()); | |
| 3620 | std.debug.assert(rc >= 0); | |
| 3621 | } |
test.zig+1| ... | ... | @@ -75,4 +75,5 @@ test { |
| 75 | 75 | _ = &linux.fork; |
| 76 | 76 | _ = &linux.fchdir; |
| 77 | 77 | _ = &linux.execvp; |
| 78 | _ = &linux.dup2; | |
| 78 | 79 | } |