diff --git a/src/unix/bsd/netbsdlike/openbsdlike/openbsd.rs b/src/unix/bsd/netbsdlike/openbsdlike/openbsd.rs index 8b36ee5ce6bd6..5c804473adec2 100644 --- a/src/unix/bsd/netbsdlike/openbsdlike/openbsd.rs +++ b/src/unix/bsd/netbsdlike/openbsdlike/openbsd.rs @@ -30,4 +30,6 @@ s! { extern { pub fn accept4(s: ::c_int, addr: *mut ::sockaddr, addrlen: *mut ::socklen_t, flags: ::c_int) -> ::c_int; + pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char, + envp: *const *const ::c_char) -> ::c_int; } diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index 88ae261701dae..4fb68ca051600 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -855,6 +855,8 @@ extern { flags: ::c_int) -> ::ssize_t; pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int) -> ::ssize_t; + pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char, + environment: *const *const ::c_char) -> ::c_int; } cfg_if! { diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index e4e780097c9cc..c684f1e5bf74d 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs @@ -1036,6 +1036,8 @@ extern { name: *mut ::c_char, termp: *const termios, winp: *const ::winsize) -> ::pid_t; + pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char, + envp: *const *const ::c_char) -> ::c_int; } cfg_if! {