Skip to content

Commit a9d80d6

Browse files
committed
No fexecve() on DragonFly
This was not caught by libc-test, as checks for the execv functions are disabled.
1 parent 62ac76c commit a9d80d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,9 @@ extern {
861861
pub fn msgsnd(msqid: ::c_int, msgp: *const ::c_void, msgsz: ::size_t,
862862
msgflg: ::c_int) -> ::c_int;
863863
pub fn cfmakesane(termios: *mut ::termios);
864+
pub fn fexecve(fd: ::c_int, argv: *const *const ::c_char,
865+
envp: *const *const ::c_char)
866+
-> ::c_int;
864867
}
865868

866869
cfg_if! {

src/unix/bsd/freebsdlike/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1105,9 +1105,6 @@ extern {
11051105
timeout: *const ::timespec,
11061106
sigmask: *const sigset_t) -> ::c_int;
11071107
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
1108-
pub fn fexecve(fd: ::c_int, argv: *const *const ::c_char,
1109-
envp: *const *const ::c_char)
1110-
-> ::c_int;
11111108
}
11121109

11131110
cfg_if! {

0 commit comments

Comments
 (0)