Skip to content

Commit 3fac855

Browse files
committed
Auto merge of #3286 - devnexen:stat_android_fix, r=JohnTitor
android 32 bits fix stat struct proposal. close #3285
2 parents 28ef7fe + 57bfcd8 commit 3fac855

File tree

1 file changed

+14
-15
lines changed
  • src/unix/linux_like/android/b32

1 file changed

+14
-15
lines changed

src/unix/linux_like/android/b32/mod.rs

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,24 @@ s! {
2424
}
2525

2626
pub struct stat {
27-
pub st_dev: ::c_ulonglong,
28-
__pad0: [::c_uchar; 4],
29-
__st_ino: ::ino_t,
30-
pub st_mode: ::c_uint,
27+
pub st_dev: ::c_ulong,
28+
pub st_ino: ::ino_t,
29+
pub st_mode: ::c_ushort,
3130
pub st_nlink: ::nlink_t,
3231
pub st_uid: ::uid_t,
3332
pub st_gid: ::gid_t,
34-
pub st_rdev: ::c_ulonglong,
35-
__pad3: [::c_uchar; 4],
36-
pub st_size: ::c_longlong,
33+
pub st_rdev: ::c_ulong,
34+
pub st_size: ::c_ulong,
3735
pub st_blksize: ::blksize_t,
38-
pub st_blocks: ::c_ulonglong,
39-
pub st_atime: ::c_long,
40-
pub st_atime_nsec: ::c_long,
41-
pub st_mtime: ::c_long,
42-
pub st_mtime_nsec: ::c_long,
43-
pub st_ctime: ::c_long,
44-
pub st_ctime_nsec: ::c_long,
45-
pub st_ino: ::c_ulonglong,
36+
pub st_blocks: ::c_ulong,
37+
pub st_atime: ::c_ulong,
38+
pub st_atime_nsec: ::c_ulong,
39+
pub st_mtime: ::c_ulong,
40+
pub st_mtime_nsec: ::c_ulong,
41+
pub st_ctime: ::c_ulong,
42+
pub st_ctime_nsec: ::c_ulong,
43+
__unused4: c_ulong,
44+
__unused5: c_ulong,
4645
}
4746

4847
pub struct stat64 {

0 commit comments

Comments
 (0)