Skip to content

Commit 94088a8

Browse files
committed
android 32 bits fix stat struct proposal.
close #3285
1 parent 247591b commit 94088a8

File tree

1 file changed

+22
-23
lines changed
  • src/unix/linux_like/android/b32

1 file changed

+22
-23
lines changed

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

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,47 +25,46 @@ s! {
2525
}
2626

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

4948
pub struct stat64 {
50-
pub st_dev: ::c_ulonglong,
49+
pub st_dev: ::dev_t,
5150
__pad0: [::c_uchar; 4],
5251
__st_ino: ::ino_t,
5352
pub st_mode: ::c_uint,
5453
pub st_nlink: ::nlink_t,
5554
pub st_uid: ::uid_t,
5655
pub st_gid: ::gid_t,
57-
pub st_rdev: ::c_ulonglong,
56+
pub st_rdev: ::dev_t,
5857
__pad3: [::c_uchar; 4],
59-
pub st_size: ::c_longlong,
58+
pub st_size: ::off_t,
6059
pub st_blksize: ::blksize_t,
61-
pub st_blocks: ::c_ulonglong,
62-
pub st_atime: ::c_long,
60+
pub st_blocks: ::blkcnt_t,
61+
pub st_atime: ::time_t,
6362
pub st_atime_nsec: ::c_long,
64-
pub st_mtime: ::c_long,
63+
pub st_mtime: ::time_t,
6564
pub st_mtime_nsec: ::c_long,
66-
pub st_ctime: ::c_long,
65+
pub st_ctime: ::time_t,
6766
pub st_ctime_nsec: ::c_long,
68-
pub st_ino: ::c_ulonglong,
67+
pub st_ino: ::dev_t,
6968
}
7069

7170
pub struct statfs64 {

0 commit comments

Comments
 (0)