| ... | @@ -1271,6 +1271,10 @@ pub const libc = struct { | ... | @@ -1271,6 +1271,10 @@ pub const libc = struct { |
| 1271 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/erfl.html | 1271 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/erfl.html |
| 1272 | pub extern fn erfl(x: c_longdouble) c_longdouble; | 1272 | pub extern fn erfl(x: c_longdouble) c_longdouble; |
| 1273 | | 1273 | |
| | 1274 | /// int execvp(const char *file, char *const argv[]); |
| | 1275 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execvp.html |
| | 1276 | pub extern fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) c_int; |
| | 1277 | |
| 1274 | /// void exit(int status); | 1278 | /// void exit(int status); |
| 1275 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/exit.html | 1279 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/exit.html |
| 1276 | pub extern fn exit(status: c_int) noreturn; | 1280 | pub extern fn exit(status: c_int) noreturn; |
| ... | @@ -3605,3 +3609,8 @@ pub fn fchdir(fildes: c_int) !void { | ... | @@ -3605,3 +3609,8 @@ pub fn fchdir(fildes: c_int) !void { |
| 3605 | if (rc == -1) return errno.fromInt(errno.fromLibC()); | 3609 | if (rc == -1) return errno.fromInt(errno.fromLibC()); |
| 3606 | std.debug.assert(rc == 0); | 3610 | std.debug.assert(rc == 0); |
| 3607 | } | 3611 | } |
| | 3612 | pub fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) !noreturn { |
| | 3613 | const rc = libc.execvp(file, argv); |
| | 3614 | std.debug.assert(rc == -1); |
| | 3615 | return errno.fromInt(errno.fromLibC()); |
| | 3616 | } |