@@ -6,8 +6,6 @@ pub type blkcnt_t = i64;
66pub type socklen_t = u32 ;
77pub type sa_family_t = u8 ;
88pub type pthread_t = :: uintptr_t ;
9- pub type fsblkcnt_t = :: c_uint ;
10- pub type fsfilcnt_t = :: c_uint ;
119
1210s ! {
1311 pub struct sockaddr {
1614 pub sa_data: [ :: c_char; 14 ] ,
1715 }
1816
19- pub struct sockaddr_in {
20- pub sin_len: u8 ,
21- pub sin_family: sa_family_t,
22- pub sin_port: :: in_port_t,
23- pub sin_addr: :: in_addr,
24- pub sin_zero: [ :: c_char; 8 ] ,
25- }
26-
2717 pub struct sockaddr_in6 {
2818 pub sin6_len: u8 ,
2919 pub sin6_family: sa_family_t,
5141 pub pw_shell: * mut :: c_char,
5242 pub pw_expire: :: time_t,
5343
54- #[ cfg( not( any( target_os = "macos" , target_os = "ios" ) ) ) ]
44+ #[ cfg( not( any( target_os = "macos" ,
45+ target_os = "ios" ,
46+ target_os = "netbsd" ) ) ) ]
5547 pub pw_fields: :: c_int,
5648 }
5749
@@ -102,10 +94,7 @@ pub const SIG_SETMASK: ::c_int = 3;
10294pub const IPV6_MULTICAST_LOOP : :: c_int = 11 ;
10395pub const IPV6_V6ONLY : :: c_int = 27 ;
10496
105- pub const FD_SETSIZE : usize = 1024 ;
106-
10797pub const ST_RDONLY : :: c_ulong = 1 ;
108- pub const ST_NOSUID : :: c_ulong = 2 ;
10998
11099pub const NI_MAXHOST : :: socklen_t = 1025 ;
111100
@@ -147,12 +136,6 @@ f! {
147136}
148137
149138extern {
150- pub fn mincore ( addr : * const :: c_void , len : :: size_t ,
151- vec : * mut c_char ) -> :: c_int ;
152- pub fn sysctlnametomib ( name : * const c_char ,
153- mibp : * mut :: c_int ,
154- sizep : * mut :: size_t )
155- -> :: c_int ;
156139 pub fn setgroups ( ngroups : :: c_int ,
157140 ptr : * const :: gid_t ) -> :: c_int ;
158141 pub fn ioctl ( fd : :: c_int , request : :: c_ulong , ...) -> :: c_int ;
0 commit comments