Add support for the accept4
system call for FreeBSD* & NetBSD*
This commit is contained in:
parent
05a2d19735
commit
23d4059546
@ -980,6 +980,8 @@ extern {
|
||||
base: ::locale_t) -> ::locale_t;
|
||||
pub fn uselocale(loc: ::locale_t) -> ::locale_t;
|
||||
pub fn querylocale(mask: ::c_int, loc: ::locale_t) -> *const ::c_char;
|
||||
pub fn accept4(s: ::c_int, addr: *mut ::sockaddr,
|
||||
addrlen: *mut ::socklen_t, flags: ::c_int) -> ::c_int;
|
||||
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
|
||||
pub fn pthread_attr_get_np(tid: ::pthread_t,
|
||||
attr: *mut ::pthread_attr_t) -> ::c_int;
|
||||
|
@ -26,3 +26,8 @@ s! {
|
||||
pub int_n_sign_posn: ::c_char,
|
||||
}
|
||||
}
|
||||
|
||||
extern {
|
||||
pub fn accept4(s: ::c_int, addr: *mut ::sockaddr,
|
||||
addrlen: *mut ::socklen_t, flags: ::c_int) -> ::c_int;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user