Skip to content

Commit 6f0857d

Browse files
committed
DragonFly 6.0 introduced fexecve()
Ignore fexecve signature mismatch, as with other execv variants.
1 parent 6172388 commit 6f0857d

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

libc-test/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ fn test_dragonflybsd(target: &str) {
13361336
// skip those that are manually verified
13371337
match name {
13381338
// FIXME: https://github.com/rust-lang/libc/issues/1272
1339-
"execv" | "execve" | "execvp" => true,
1339+
"execv" | "execve" | "execvp" | "fexecve" => true,
13401340

13411341
"getrlimit" | "getrlimit64" | // non-int in 1st arg
13421342
"setrlimit" | "setrlimit64" | // non-int in 1st arg

libc-test/semver/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,7 @@ faccessat
12271227
fchdir
12281228
fchflags
12291229
fdopendir
1230+
fexecve
12301231
fmemopen
12311232
forkpty
12321233
fparseln

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,11 +1702,6 @@ extern "C" {
17021702
msgflg: ::c_int,
17031703
) -> ::c_int;
17041704
pub fn cfmakesane(termios: *mut ::termios);
1705-
pub fn fexecve(
1706-
fd: ::c_int,
1707-
argv: *const *const ::c_char,
1708-
envp: *const *const ::c_char,
1709-
) -> ::c_int;
17101705

17111706
pub fn pdfork(fdp: *mut ::c_int, flags: ::c_int) -> ::pid_t;
17121707
pub fn pdgetpid(fd: ::c_int, pidp: *mut ::pid_t) -> ::c_int;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,11 @@ extern "C" {
14411441
pub fn duplocale(base: ::locale_t) -> ::locale_t;
14421442
pub fn endutxent();
14431443
pub fn fchflags(fd: ::c_int, flags: ::c_ulong) -> ::c_int;
1444+
pub fn fexecve(
1445+
fd: ::c_int,
1446+
argv: *const *const ::c_char,
1447+
envp: *const *const ::c_char,
1448+
) -> ::c_int;
14441449
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
14451450
pub fn getdomainname(name: *mut ::c_char, len: ::c_int) -> ::c_int;
14461451
pub fn getgrent_r(

0 commit comments

Comments
 (0)