Add shutdown, listen, and getpagesize
This commit is contained in:
@@ -75,6 +75,8 @@ pub trait Pal {
|
||||
|
||||
fn getgid() -> gid_t;
|
||||
|
||||
fn getpagesize() -> c_int;
|
||||
|
||||
fn getpgid(pid: pid_t) -> pid_t;
|
||||
|
||||
fn getpid() -> pid_t;
|
||||
|
||||
@@ -29,6 +29,8 @@ pub trait PalSocket: Pal {
|
||||
option_len: *mut socklen_t,
|
||||
) -> c_int;
|
||||
|
||||
fn listen(socket: c_int, backlog: c_int) -> c_int;
|
||||
|
||||
unsafe fn recvfrom(
|
||||
socket: c_int,
|
||||
buf: *mut c_void,
|
||||
@@ -55,5 +57,7 @@ pub trait PalSocket: Pal {
|
||||
option_len: socklen_t,
|
||||
) -> c_int;
|
||||
|
||||
fn shutdown(socket: c_int, how: c_int) -> c_int;
|
||||
|
||||
unsafe fn socket(domain: c_int, kind: c_int, protocol: c_int) -> c_int;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user