Skip to content

Commit 67d062f

Browse files
committed
freebsd adding execvpe support from 14.1 release
1 parent e209061 commit 67d062f

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
@@ -2489,6 +2489,8 @@ fn test_freebsd(target: &str) {
24892489
cfg.skip_fn(move |name| {
24902490
// skip those that are manually verified
24912491
match name {
2492+
// This is introduced in FreeBSD 14.1
2493+
"execvpe" => true,
24922494
// The `uname` function in the `utsname.h` FreeBSD header is a C
24932495
// inline function (has no symbol) that calls the `__xuname` symbol.
24942496
// 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
@@ -5534,6 +5534,12 @@ extern "C" {
55345534
idx1: ::c_ulong,
55355535
idx2: ::c_ulong,
55365536
) -> ::c_int;
5537+
5538+
pub fn execvpe(
5539+
file: *const ::c_char,
5540+
argv: *const *const ::c_char,
5541+
envp: *const *const ::c_char,
5542+
) -> ::c_int;
55375543
}
55385544

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

0 commit comments

Comments
 (0)