@@ -466,18 +466,19 @@ pub mod types {
466
466
pub type off_t = i32 ;
467
467
pub type dev_t = u32 ;
468
468
pub type ino_t = u32 ;
469
+
469
470
pub type pid_t = i32 ;
470
471
pub type uid_t = u32 ;
471
472
pub type gid_t = u32 ;
472
473
pub type useconds_t = u32 ;
474
+
473
475
pub type mode_t = u16 ;
474
476
pub type ssize_t = i32 ;
475
477
}
476
- #[ cfg( any( target_arch = "x86" ,
478
+ #[ cfg( any( all( any( target_arch = "arm" , target_arch = "x86" ) ,
479
+ not( target_os = "android" ) ) ,
477
480
target_arch = "le32" ,
478
- target_arch = "powerpc" ,
479
- all( any( target_arch = "arm" , target_arch = "x86" ) ,
480
- not( target_os = "android" ) ) ) ) ]
481
+ target_arch = "powerpc" ) ) ]
481
482
pub mod posix01 {
482
483
use types:: os:: arch:: c95:: { c_short, c_long, time_t} ;
483
484
use types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
@@ -523,12 +524,13 @@ pub mod types {
523
524
pub __size : [ u32 ; 9 ]
524
525
}
525
526
}
527
+
526
528
#[ cfg( all( any( target_arch = "arm" , target_arch = "x86" ) ,
527
- target_os = "android" ) ) ]
529
+ target_os = "android" ) ) ]
528
530
pub mod posix01 {
529
- use types:: os:: arch:: c95:: { c_uchar, c_uint, c_ulong, time_t} ;
531
+ use types:: os:: arch:: c95:: { c_uchar, c_uint, c_ulong, c_long , time_t} ;
530
532
use types:: os:: arch:: c99:: { c_longlong, c_ulonglong} ;
531
- use types:: os:: arch:: posix88:: { uid_t, gid_t, ino_t } ;
533
+ use types:: os:: arch:: posix88:: { uid_t, gid_t} ;
532
534
533
535
pub type nlink_t = u16 ;
534
536
pub type blksize_t = u32 ;
@@ -538,15 +540,15 @@ pub mod types {
538
540
#[ derive( Copy , Clone ) ] pub struct stat {
539
541
pub st_dev : c_ulonglong ,
540
542
pub __pad0 : [ c_uchar ; 4 ] ,
541
- pub __st_ino : ino_t ,
543
+ pub __st_ino : c_long ,
542
544
pub st_mode : c_uint ,
543
545
pub st_nlink : c_uint ,
544
546
pub st_uid : uid_t ,
545
547
pub st_gid : gid_t ,
546
548
pub st_rdev : c_ulonglong ,
547
549
pub __pad3 : [ c_uchar ; 4 ] ,
548
550
pub st_size : c_longlong ,
549
- pub st_blksize : blksize_t ,
551
+ pub st_blksize : c_ulong ,
550
552
pub st_blocks : c_ulonglong ,
551
553
pub st_atime : time_t ,
552
554
pub st_atime_nsec : c_ulong ,
@@ -568,6 +570,7 @@ pub mod types {
568
570
pub __size : [ u32 ; 9 ]
569
571
}
570
572
}
573
+
571
574
#[ cfg( any( target_arch = "mips" ,
572
575
target_arch = "mipsel" ) ) ]
573
576
pub mod posix01 {
0 commit comments