Skip to content

Commit

Permalink
Merge pull request #1656 from darcyliu/bsd-wait4
Browse files Browse the repository at this point in the history
Add wait4 for macOS and FreeBSD
  • Loading branch information
JohnTitor authored Mar 8, 2020
2 parents 23fdf42 + 6885600 commit 8ba9ba2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/unix/bsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,20 @@ extern "C" {
value: *mut ::c_void,
) -> ::c_int;
pub fn acct(filename: *const ::c_char) -> ::c_int;
#[cfg_attr(
all(target_os = "macos", target_arch = "x86"),
link_name = "wait4$UNIX2003"
)]
#[cfg_attr(
all(target_os = "freebsd", any(freebsd12, freebsd11, freebsd10)),
link_name = "wait4@FBSD_1.0"
)]
pub fn wait4(
pid: ::pid_t,
status: *mut ::c_int,
options: ::c_int,
rusage: *mut ::rusage,
) -> ::pid_t;
}

cfg_if! {
Expand Down

0 comments on commit 8ba9ba2

Please sign in to comment.