@@ -400,8 +400,8 @@ pub mod types {
400
400
pub type ssize_t = i64 ;
401
401
}
402
402
pub mod posix01 {
403
+ use libc:: types:: common:: c99:: { uint8_t, uint32_t, int32_t} ;
403
404
use libc:: types:: os:: arch:: c95:: { c_long, time_t} ;
404
- use libc:: types:: os:: arch:: c99:: { uint8_t, uint32_t, int32_t} ;
405
405
use libc:: types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
406
406
use libc:: types:: os:: arch:: posix88:: { mode_t, off_t} ;
407
407
use libc:: types:: os:: arch:: posix88:: { uid_t} ;
@@ -513,6 +513,10 @@ pub mod types {
513
513
pub mod bsd44 {
514
514
}
515
515
pub mod extra {
516
+ pub use libc:: types:: os:: arch:: c95:: { c_void, c_char, c_int,
517
+ c_ulong, wchar_t} ;
518
+ pub use libc:: types:: os:: arch:: c99:: { c_ulonglong} ;
519
+
516
520
pub type BOOL = c_int ;
517
521
pub type BYTE = u8 ;
518
522
pub type CCHAR = c_char ;
@@ -1131,6 +1135,9 @@ pub mod funcs {
1131
1135
#[ nolink]
1132
1136
#[ abi = "cdecl" ]
1133
1137
pub extern mod stat_ {
1138
+ use libc:: funcs:: posix88:: stat_:: stat;
1139
+ use libc:: types:: os:: arch:: c95:: { c_int, c_char} ;
1140
+
1134
1141
#[ link_name = "_chmod" ]
1135
1142
fn chmod ( path : * c_char , mode : c_int ) -> c_int ;
1136
1143
@@ -1147,6 +1154,9 @@ pub mod funcs {
1147
1154
#[ nolink]
1148
1155
#[ abi = "cdecl" ]
1149
1156
pub extern mod stdio {
1157
+ use libc:: types:: common:: c95:: FILE ;
1158
+ use libc:: types:: os:: arch:: c95:: { c_int, c_char} ;
1159
+
1150
1160
#[ link_name = "_popen" ]
1151
1161
fn popen ( command : * c_char , mode : * c_char ) -> * FILE ;
1152
1162
@@ -1163,6 +1173,8 @@ pub mod funcs {
1163
1173
#[ nolink]
1164
1174
#[ abi = "cdecl" ]
1165
1175
pub extern mod fcntl {
1176
+ use libc:: types:: os:: arch:: c95:: { c_int, c_char} ;
1177
+
1166
1178
#[ link_name = "_open" ]
1167
1179
fn open ( path : * c_char , oflag : c_int , mode : c_int ) -> c_int ;
1168
1180
@@ -1179,6 +1191,9 @@ pub mod funcs {
1179
1191
#[ nolink]
1180
1192
#[ abi = "cdecl" ]
1181
1193
pub extern mod unistd {
1194
+ use libc:: types:: os:: arch:: c95:: { c_int, c_uint, c_char,
1195
+ c_long, size_t, c_void} ;
1196
+
1182
1197
#[ link_name = "_access" ]
1183
1198
fn access ( path : * c_char , amode : c_int ) -> c_int ;
1184
1199
0 commit comments