@@ -2005,7 +2005,7 @@ pub mod types {
20052005 use types:: common:: c95:: { c_void} ;
20062006 use types:: os:: arch:: c95:: { c_char, c_int, c_uint} ;
20072007
2008- pub type socklen_t = c_int ;
2008+ pub type socklen_t = u32 ;
20092009 pub type sa_family_t = u8 ;
20102010 pub type in_port_t = u16 ;
20112011 pub type in_addr_t = u32 ;
@@ -2114,8 +2114,8 @@ pub mod types {
21142114 pub type c_double = f64 ;
21152115 pub type size_t = u32 ;
21162116 pub type ptrdiff_t = i32 ;
2117- pub type clock_t = u32 ;
2118- pub type time_t = i32 ;
2117+ pub type clock_t = c_ulong ;
2118+ pub type time_t = c_long ;
21192119 pub type suseconds_t = i32 ;
21202120 pub type wchar_t = i32 ;
21212121 }
@@ -2128,6 +2128,8 @@ pub mod types {
21282128 pub type uintmax_t = u64 ;
21292129 }
21302130 pub mod posix88 {
2131+ use types:: os:: arch:: c95:: c_long;
2132+
21312133 pub type off_t = i64 ;
21322134 pub type dev_t = i32 ;
21332135 pub type ino_t = u64 ;
@@ -2136,7 +2138,7 @@ pub mod types {
21362138 pub type gid_t = u32 ;
21372139 pub type useconds_t = u32 ;
21382140 pub type mode_t = u16 ;
2139- pub type ssize_t = i32 ;
2141+ pub type ssize_t = c_long ;
21402142 }
21412143 pub mod posix01 {
21422144 use types:: common:: c99:: { int32_t, int64_t, uint32_t} ;
@@ -2145,8 +2147,8 @@ pub mod types {
21452147 mode_t, off_t, uid_t} ;
21462148
21472149 pub type nlink_t = u16 ;
2148- pub type blksize_t = i64 ;
2149- pub type blkcnt_t = i32 ;
2150+ pub type blksize_t = i32 ;
2151+ pub type blkcnt_t = i64 ;
21502152
21512153 #[ repr( C ) ]
21522154 #[ derive( Copy ) ] pub struct stat {
@@ -2217,8 +2219,8 @@ pub mod types {
22172219 pub type c_double = f64 ;
22182220 pub type size_t = u64 ;
22192221 pub type ptrdiff_t = i64 ;
2220- pub type clock_t = u64 ;
2221- pub type time_t = i64 ;
2222+ pub type clock_t = c_ulong ;
2223+ pub type time_t = c_long ;
22222224 pub type suseconds_t = i32 ;
22232225 pub type wchar_t = i32 ;
22242226 }
@@ -2231,6 +2233,8 @@ pub mod types {
22312233 pub type uintmax_t = u64 ;
22322234 }
22332235 pub mod posix88 {
2236+ use types:: os:: arch:: c95:: c_long;
2237+
22342238 pub type off_t = i64 ;
22352239 pub type dev_t = i32 ;
22362240 pub type ino_t = u64 ;
@@ -2239,7 +2243,7 @@ pub mod types {
22392243 pub type gid_t = u32 ;
22402244 pub type useconds_t = u32 ;
22412245 pub type mode_t = u16 ;
2242- pub type ssize_t = i64 ;
2246+ pub type ssize_t = c_long ;
22432247 }
22442248 pub mod posix01 {
22452249 use types:: common:: c99:: { int32_t, int64_t} ;
@@ -2249,8 +2253,8 @@ pub mod types {
22492253 use types:: os:: arch:: posix88:: { mode_t, off_t, uid_t} ;
22502254
22512255 pub type nlink_t = u16 ;
2252- pub type blksize_t = i64 ;
2253- pub type blkcnt_t = i32 ;
2256+ pub type blksize_t = i32 ;
2257+ pub type blkcnt_t = i64 ;
22542258
22552259 #[ repr( C ) ]
22562260 #[ derive( Copy ) ] pub struct stat {
0 commit comments