Skip to content

Commit

Permalink
Auto merge of #3381 - devnexen:execvP_dflybsd, r=JohnTitor
Browse files Browse the repository at this point in the history
adding exect/execvP for FreeBSD/DragonflyBSD
  • Loading branch information
bors committed Oct 14, 2023
2 parents 9a3842f + cefa53b commit f0a9334
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
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
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
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 *mut ::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 f0a9334

Please sign in to comment.