diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-08-03 09:23:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-03 09:23:39 -0700 |
commit | 23b69f3e08bfe07b03e9fc0e387801867af9938c (patch) | |
tree | b9c48c316c805d1bef03da943f651d06c76af6b2 | |
parent | d85f265099a5bbaca3d0d3286c21f63e74437892 (diff) | |
parent | 68dba7ab5abeaa28e53cba396246288bbc0fd7af (diff) | |
download | rust-libc-23b69f3e08bfe07b03e9fc0e387801867af9938c.tar.gz |
Merge pull request #346 from frewsxcv/pg
Add `getpgid`.
-rw-r--r-- | src/unix/mod.rs | 1 |
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; |