Skip to content

Commit c00686f

Browse files
committed
Auto merge of #670 - Susurrus:execvpe, r=alexcrichton
Add execvpe for support *nix platforms
2 parents 8e5152a + fef784e commit c00686f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/unix/bsd/netbsdlike/openbsdlike/openbsd.rs

+2
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ s! {
3030
extern {
3131
pub fn accept4(s: ::c_int, addr: *mut ::sockaddr,
3232
addrlen: *mut ::socklen_t, flags: ::c_int) -> ::c_int;
33+
pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char,
34+
envp: *const *const ::c_char) -> ::c_int;
3335
}

src/unix/haiku/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,8 @@ extern {
855855
flags: ::c_int) -> ::ssize_t;
856856
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
857857
-> ::ssize_t;
858+
pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char,
859+
environment: *const *const ::c_char) -> ::c_int;
858860
}
859861

860862
cfg_if! {

src/unix/notbsd/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,8 @@ extern {
10361036
name: *mut ::c_char,
10371037
termp: *const termios,
10381038
winp: *const ::winsize) -> ::pid_t;
1039+
pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char,
1040+
envp: *const *const ::c_char) -> ::c_int;
10391041
}
10401042

10411043
cfg_if! {

0 commit comments

Comments
 (0)