Skip to content

Commit a5cac55

Browse files
committed
Add wait and waitpid to libc.
1 parent f2e1a1b commit a5cac55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/liblibc/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -5722,6 +5722,9 @@ pub mod funcs {
57225722
pub fn tcgetpgrp(fd: c_int) -> pid_t;
57235723
pub fn ttyname(fd: c_int) -> *mut c_char;
57245724
pub fn unlink(c: *const c_char) -> c_int;
5725+
pub fn wait(status: *const c_int) -> pid_t;
5726+
pub fn waitpid(pid: pid_t, status: *const c_int, options: c_int)
5727+
-> pid_t;
57255728
pub fn write(fd: c_int, buf: *const c_void, count: size_t)
57265729
-> ssize_t;
57275730
pub fn pread(fd: c_int, buf: *mut c_void, count: size_t,
@@ -5773,6 +5776,9 @@ pub mod funcs {
57735776
pub fn sysconf(name: c_int) -> c_long;
57745777
pub fn ttyname(fd: c_int) -> *mut c_char;
57755778
pub fn unlink(c: *const c_char) -> c_int;
5779+
pub fn wait(status: *const c_int) -> pid_t;
5780+
pub fn waitpid(pid: pid_t, status: *const c_int, options: c_int)
5781+
-> pid_t;
57765782
pub fn write(fd: c_int, buf: *const c_void, count: size_t)
57775783
-> ssize_t;
57785784
pub fn pread(fd: c_int, buf: *mut c_void, count: size_t,

0 commit comments

Comments
 (0)