| ... | @@ -3614,3 +3614,8 @@ pub fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) !noreturn | ... | @@ -3614,3 +3614,8 @@ pub fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) !noreturn |
| 3614 | std.debug.assert(rc == -1); | 3614 | std.debug.assert(rc == -1); |
| 3615 | return errno.fromInt(errno.fromLibC()); | 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 | } |