Add shutdown, listen, and getpagesize

This commit is contained in:
Jeremy Soller
2018-12-26 19:26:38 -07:00
parent a321545fd0
commit 7aa789575a
8 changed files with 41 additions and 18 deletions
+4
View File
@@ -239,6 +239,10 @@ impl Pal for Sys {
e(unsafe { syscall!(GETGID) }) as gid_t
}
fn getpagesize() -> c_int {
e(unsafe { syscall!(GETPAGESIZE) }) as c_int
}
fn getpgid(pid: pid_t) -> pid_t {
e(unsafe { syscall!(GETPGID, pid) }) as pid_t
}