Skip to content

Commit

Permalink
openbsd/netbsd sharing execvpe definition
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Oct 10, 2023
1 parent 78301e2 commit d0d846d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 5 additions & 0 deletions src/unix/bsd/netbsdlike/mod.rs
Expand Up @@ -736,6 +736,11 @@ extern "C" {
pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void;
pub fn shmdt(shmaddr: *const ::c_void) -> ::c_int;
pub fn shmctl(shmid: ::c_int, cmd: ::c_int, buf: *mut ::shmid_ds) -> ::c_int;
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
envp: *const *const ::c_char,
) -> ::c_int;
}

extern "C" {
Expand Down
6 changes: 0 additions & 6 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Expand Up @@ -2533,12 +2533,6 @@ extern "C" {
pub fn fchflags(fd: ::c_int, flags: ::c_ulong) -> ::c_int;
pub fn lchflags(path: *const ::c_char, flags: ::c_ulong) -> ::c_int;

pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
envp: *const *const ::c_char,
) -> ::c_int;

pub fn extattr_list_fd(
fd: ::c_int,
attrnamespace: ::c_int,
Expand Down
5 changes: 0 additions & 5 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Expand Up @@ -1779,11 +1779,6 @@ safe_f! {
extern "C" {
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int;
pub fn settimeofday(tp: *const ::timeval, tz: *const ::timezone) -> ::c_int;
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
envp: *const *const ::c_char,
) -> ::c_int;
pub fn pledge(promises: *const ::c_char, execpromises: *const ::c_char) -> ::c_int;
pub fn unveil(path: *const ::c_char, permissions: *const ::c_char) -> ::c_int;
pub fn strtonum(
Expand Down

0 comments on commit d0d846d

Please sign in to comment.