summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-08-03 09:23:39 -0700
committerGitHub <noreply@github.com>2016-08-03 09:23:39 -0700
commit23b69f3e08bfe07b03e9fc0e387801867af9938c (patch)
treeb9c48c316c805d1bef03da943f651d06c76af6b2
parentd85f265099a5bbaca3d0d3286c21f63e74437892 (diff)
parent68dba7ab5abeaa28e53cba396246288bbc0fd7af (diff)
downloadrust-libc-23b69f3e08bfe07b03e9fc0e387801867af9938c.tar.gz
Merge pull request #346 from frewsxcv/pg
Add `getpgid`.
-rw-r--r--src/unix/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index d2ae4eaeb0..648a7aa6fe 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -381,6 +381,7 @@ extern {
link_name = "getopt$UNIX2003")]
pub fn getopt(argc: ::c_int, argv: *const *mut c_char,
optstr: *const c_char) -> ::c_int;
+ pub fn getpgid(pid: pid_t) -> pid_t;
pub fn getpgrp() -> pid_t;
pub fn getpid() -> pid_t;
pub fn getppid() -> pid_t;