diff options
| author | Mike Sampson <mike@sambodata.com> | 2015-05-12 19:57:09 +1000 |
|---|---|---|
| committer | Mike Sampson <mike@sambodata.com> | 2015-05-12 19:57:09 +1000 |
| commit | a5cac55be451a32a5956339009c49ac4fcaaef5c (patch) | |
| tree | 36564d4fbff229b692aaa5a8cfa7e4576dd648ee | |
| parent | f2e1a1b50eee3dd98bbd760d71ae7b5fce360165 (diff) | |
| download | rust-a5cac55be451a32a5956339009c49ac4fcaaef5c.tar.gz rust-a5cac55be451a32a5956339009c49ac4fcaaef5c.zip | |
Add wait and waitpid to libc.
| -rw-r--r-- | src/liblibc/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 55934da00a3..69ab34fee5a 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -5722,6 +5722,9 @@ pub mod funcs { pub fn tcgetpgrp(fd: c_int) -> pid_t; pub fn ttyname(fd: c_int) -> *mut c_char; pub fn unlink(c: *const c_char) -> c_int; + pub fn wait(status: *const c_int) -> pid_t; + pub fn waitpid(pid: pid_t, status: *const c_int, options: c_int) + -> pid_t; pub fn write(fd: c_int, buf: *const c_void, count: size_t) -> ssize_t; pub fn pread(fd: c_int, buf: *mut c_void, count: size_t, @@ -5773,6 +5776,9 @@ pub mod funcs { pub fn sysconf(name: c_int) -> c_long; pub fn ttyname(fd: c_int) -> *mut c_char; pub fn unlink(c: *const c_char) -> c_int; + pub fn wait(status: *const c_int) -> pid_t; + pub fn waitpid(pid: pid_t, status: *const c_int, options: c_int) + -> pid_t; pub fn write(fd: c_int, buf: *const c_void, count: size_t) -> ssize_t; pub fn pread(fd: c_int, buf: *mut c_void, count: size_t, |
