@@ -257,6 +257,8 @@ pub mod types {
257
257
pub type intptr_t = int ;
258
258
pub type uintptr_t = uint ;
259
259
}
260
+ #[ cfg( target_arch = "x86" ) ]
261
+ #[ cfg( target_arch = "mips" ) ]
260
262
pub mod posix88 {
261
263
pub type off_t = i32 ;
262
264
pub type dev_t = u64 ;
@@ -268,6 +270,20 @@ pub mod types {
268
270
pub type mode_t = u32 ;
269
271
pub type ssize_t = i32 ;
270
272
}
273
+ #[ cfg( target_arch = "arm" ) ]
274
+ pub mod posix88 {
275
+ pub type off_t = i32 ;
276
+ pub type dev_t = u32 ;
277
+ pub type ino_t = u32 ;
278
+ pub type pid_t = i32 ;
279
+ pub type uid_t = u32 ;
280
+ pub type gid_t = u32 ;
281
+ pub type useconds_t = u32 ;
282
+ pub type mode_t = u16 ;
283
+ pub type ssize_t = i32 ;
284
+ }
285
+ #[ cfg( target_arch = "x86" ) ]
286
+ #[ cfg( target_arch = "mips" ) ]
271
287
pub mod posix01 {
272
288
use libc:: types:: os:: arch:: c95:: { c_short, c_long, c_ulong, time_t} ;
273
289
use libc:: types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
@@ -279,7 +295,6 @@ pub mod types {
279
295
pub type blkcnt_t = i32 ;
280
296
281
297
#[ cfg( target_arch = "x86" ) ]
282
- #[ cfg( target_arch = "arm" ) ]
283
298
pub struct stat {
284
299
st_dev : dev_t ,
285
300
__pad1 : c_short ,
@@ -327,6 +342,39 @@ pub mod types {
327
342
st_pad5 : [ c_long , ..14 ] ,
328
343
}
329
344
}
345
+ #[ cfg( target_arch = "arm" ) ]
346
+ pub mod posix01 {
347
+ use libc:: types:: os:: arch:: c95:: { c_uchar, c_uint, c_ulong, time_t} ;
348
+ use libc:: types:: os:: arch:: c99:: { c_longlong, c_ulonglong} ;
349
+ use libc:: types:: os:: arch:: posix88:: { uid_t, gid_t, ino_t} ;
350
+ use libc:: types:: os:: arch:: posix88:: { uid_t} ;
351
+
352
+ pub type nlink_t = u16 ;
353
+ pub type blksize_t = u32 ;
354
+ pub type blkcnt_t = u32 ;
355
+
356
+ pub struct stat {
357
+ st_dev : c_ulonglong ,
358
+ __pad0 : [ c_uchar , ..4 ] ,
359
+ __st_ino : ino_t ,
360
+ st_mode : c_uint ,
361
+ st_nlink : c_uint ,
362
+ st_uid : uid_t ,
363
+ st_gid : gid_t ,
364
+ st_rdev : c_ulonglong ,
365
+ __pad3 : [ c_uchar , ..4 ] ,
366
+ st_size : c_longlong ,
367
+ st_blksize : blksize_t ,
368
+ st_blocks : c_ulonglong ,
369
+ st_atime : time_t ,
370
+ st_atime_nsec : c_ulong ,
371
+ st_mtime : time_t ,
372
+ st_mtime_nsec : c_ulong ,
373
+ st_ctime : time_t ,
374
+ st_ctime_nsec : c_ulong ,
375
+ st_ino : c_ulonglong
376
+ }
377
+ }
330
378
pub mod posix08 { }
331
379
pub mod bsd44 { }
332
380
pub mod extra { }
0 commit comments