mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Add wait and waitpid to libc.
This commit is contained in:
@@ -5722,6 +5722,9 @@ pub fn nanosleep(rqtp: *const timespec,
|
||||
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 fn nanosleep(rqtp: *const timespec,
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user