Skip to content

Commit cefa53b

Browse files
committed
adding exect/execvP for FreeBSD/DragonflyBSD
1 parent 78301e2 commit cefa53b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,8 @@ eui64_aton
12871287
eui64_hostton
12881288
eui64_ntoa
12891289
eui64_ntohost
1290+
exect
1291+
execvP
12901292
exit_status
12911293
explicit_bzero
12921294
faccessat

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,8 @@ eui64_aton
17701770
eui64_hostton
17711771
eui64_ntoa
17721772
eui64_ntohost
1773+
exect
1774+
execvP
17731775
explicit_bzero
17741776
extattr_delete_fd
17751777
extattr_delete_file

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,6 +1772,17 @@ extern "C" {
17721772
len: ::c_int,
17731773
) -> ::c_int;
17741774
pub fn reboot(howto: ::c_int) -> ::c_int;
1775+
1776+
pub fn exect(
1777+
path: *const ::c_char,
1778+
argv: *const *mut ::c_char,
1779+
envp: *const *mut ::c_char,
1780+
) -> ::c_int;
1781+
pub fn execvP(
1782+
file: *const ::c_char,
1783+
search_path: *const ::c_char,
1784+
argv: *const *mut ::c_char,
1785+
) -> ::c_int;
17751786
}
17761787

17771788
#[link(name = "rt")]

0 commit comments

Comments
 (0)