summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Neumann <mneumann@ntecs.de>2017-11-17 12:50:18 +0100
committerMichael Neumann <mneumann@ntecs.de>2017-11-17 12:50:18 +0100
commita9d80d645208ac4d04f005f66da48fdd23207aab (patch)
treed653712076d7f600c7c3162e8177f79c38b74e0c
parent62ac76cbd5c149ea51e04025386cee1f17eae654 (diff)
downloadrust-libc-a9d80d645208ac4d04f005f66da48fdd23207aab.tar.gz
No fexecve() on DragonFly
This was not caught by libc-test, as checks for the execv functions are disabled.
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/mod.rs3
-rw-r--r--src/unix/bsd/freebsdlike/mod.rs3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs
index d910a11162..c9cd17666a 100644
--- a/src/unix/bsd/freebsdlike/freebsd/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs
@@ -861,6 +861,9 @@ extern {
pub fn msgsnd(msqid: ::c_int, msgp: *const ::c_void, msgsz: ::size_t,
msgflg: ::c_int) -> ::c_int;
pub fn cfmakesane(termios: *mut ::termios);
+ pub fn fexecve(fd: ::c_int, argv: *const *const ::c_char,
+ envp: *const *const ::c_char)
+ -> ::c_int;
}
cfg_if! {
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs
index 2fb1520a87..5703e073b7 100644
--- a/src/unix/bsd/freebsdlike/mod.rs
+++ b/src/unix/bsd/freebsdlike/mod.rs
@@ -1105,9 +1105,6 @@ extern {
timeout: *const ::timespec,
sigmask: *const sigset_t) -> ::c_int;
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
- pub fn fexecve(fd: ::c_int, argv: *const *const ::c_char,
- envp: *const *const ::c_char)
- -> ::c_int;
}
cfg_if! {