Skip to content

Commit

Permalink
adding exect/execvP for FreeBSD/DragonflyBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Oct 10, 2023
1 parent 78301e2 commit 76d3473
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,8 @@ eui64_aton
eui64_hostton
eui64_ntoa
eui64_ntohost
exect
execvP
exit_status
explicit_bzero
faccessat
Expand Down
2 changes: 2 additions & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,8 @@ eui64_aton
eui64_hostton
eui64_ntoa
eui64_ntohost
exect
execvP
explicit_bzero
extattr_delete_fd
extattr_delete_file
Expand Down
11 changes: 11 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,17 @@ extern "C" {
len: ::c_int,
) -> ::c_int;
pub fn reboot(howto: ::c_int) -> ::c_int;

pub fn exect(
path: *const ::c_char,
argv: *const *const ::c_char,
envp: *const *mut ::c_char,
) -> ::c_int;
pub fn execvP(
file: *const ::c_char,
search_path: *const ::c_char,
argv: *const *mut ::c_char,
) -> ::c_int;
}

#[link(name = "rt")]
Expand Down

0 comments on commit 76d3473

Please sign in to comment.