Skip to content

Commit 4e38256

Browse files
authored
Merge pull request #3745 from devnexen/fbsd_execvpe
freebsd adding execvpe support from 14.1 release
2 parents 0f4fa73 + 67d062f commit 4e38256

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,8 @@ fn test_freebsd(target: &str) {
24942494
cfg.skip_fn(move |name| {
24952495
// skip those that are manually verified
24962496
match name {
2497+
// This is introduced in FreeBSD 14.1
2498+
"execvpe" => true,
24972499
// The `uname` function in the `utsname.h` FreeBSD header is a C
24982500
// inline function (has no symbol) that calls the `__xuname` symbol.
24992501
// Therefore the function pointer comparison does not make sense for it.

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,7 @@ eui64_hostton
18731873
eui64_ntoa
18741874
eui64_ntohost
18751875
exect
1876+
execvpe
18761877
execvP
18771878
explicit_bzero
18781879
extattr_delete_fd

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5597,6 +5597,12 @@ extern "C" {
55975597
idx1: ::c_ulong,
55985598
idx2: ::c_ulong,
55995599
) -> ::c_int;
5600+
5601+
pub fn execvpe(
5602+
file: *const ::c_char,
5603+
argv: *const *const ::c_char,
5604+
envp: *const *const ::c_char,
5605+
) -> ::c_int;
56005606
}
56015607

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

0 commit comments

Comments
 (0)