diff options
author | bors <bors@rust-lang.org> | 2018-01-13 18:01:39 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2018-01-13 18:01:39 +0000 |
commit | 3ccb0750ff8677fca8e2813c9d0df38e6e7a52b4 (patch) | |
tree | 9147543eef8af18bf33485e840d900c8a1949a67 /src/unix/mod.rs | |
parent | 1e80d9380026f3d28fa49f5b7141296281383778 (diff) | |
parent | a2f948dd617d6acb80a955fc9468e9bec1cd622c (diff) | |
download | rust-libc-3ccb0750ff8677fca8e2813c9d0df38e6e7a52b4.tar.gz |
Auto merge of #879 - SanchayanMaity:kill, r=alexcrichton
Add killpg
Diffstat (limited to 'src/unix/mod.rs')
-rw-r--r-- | src/unix/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 57067e02c8..74d5bac37d 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -562,6 +562,9 @@ extern { #[cfg_attr(all(target_os = "macos", target_arch = "x86"), link_name = "kill$UNIX2003")] pub fn kill(pid: pid_t, sig: ::c_int) -> ::c_int; + #[cfg_attr(all(target_os = "macos", target_arch = "x86"), + link_name = "killpg$UNIX2003")] + pub fn killpg(pgrp: pid_t, sig: ::c_int) -> ::c_int; pub fn mlock(addr: *const ::c_void, len: ::size_t) -> ::c_int; pub fn munlock(addr: *const ::c_void, len: ::size_t) -> ::c_int; |