Skip to content

Commit 20a1175

Browse files
devnexentgross35
authored andcommitted
freebsd adding execvpe support from 14.1 release
(backport <#3745>) [resolve conflicts - Trevor] (cherry picked from commit 67d062f)
1 parent 3f102f3 commit 20a1175

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,6 +2575,7 @@ fn test_freebsd(target: &str) {
25752575
// skip those that are manually verified
25762576
match name {
25772577
// FIXME: https://github.com/rust-lang/libc/issues/1272
2578+
// Also, `execvpe` is introduced in FreeBSD 14.1
25782579
"execv" | "execve" | "execvp" | "execvpe" | "fexecve" => true,
25792580

25802581
// The `uname` function in the `utsname.h` FreeBSD header is a C

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,6 +1870,7 @@ eui64_hostton
18701870
eui64_ntoa
18711871
eui64_ntohost
18721872
exect
1873+
execvpe
18731874
execvP
18741875
explicit_bzero
18751876
extattr_delete_fd

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5648,6 +5648,12 @@ extern "C" {
56485648
) -> ::c_int;
56495649
pub fn closefrom(lowfd: ::c_int);
56505650
pub fn close_range(lowfd: ::c_uint, highfd: ::c_uint, flags: ::c_int) -> ::c_int;
5651+
5652+
pub fn execvpe(
5653+
file: *const ::c_char,
5654+
argv: *const *const ::c_char,
5655+
envp: *const *const ::c_char,
5656+
) -> ::c_int;
56515657
}
56525658

56535659
#[link(name = "memstat")]

0 commit comments

Comments
 (0)