Skip to content

Commit

Permalink
add execveat for glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Oct 5, 2023
1 parent 6e02a32 commit d3910f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/linux-gnu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -664,3 +664,4 @@ gnu_basename
getmntent_r
putpwent
putgrent
execveat
8 changes: 8 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,14 @@ extern "C" {
buf: *mut ::c_char,
buflen: ::c_int,
) -> *mut ::mntent;

pub fn execveat(
dirfd: ::c_int,
pathname: *const ::c_char,
argv: *const *mut c_char,
envp: *const *mut c_char,
flags: ::c_int,
) -> ::c_int;
}

cfg_if! {
Expand Down

0 comments on commit d3910f6

Please sign in to comment.