Skip to content

Commit 01fb15c

Browse files
committed
Android's stat is the same as stat64.
1 parent f544b27 commit 01fb15c

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

src/unix/notbsd/android/b32.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ s! {
1717
pub st_dev: ::c_ulonglong,
1818
__pad0: [::c_uchar; 4],
1919
__st_ino: ::ino_t,
20-
pub st_mode: ::mode_t,
21-
pub st_nlink: ::nlink_t,
20+
pub st_mode: ::c_uint,
21+
pub st_nlink: ::c_uint,
2222
pub st_uid: ::uid_t,
2323
pub st_gid: ::gid_t,
2424
pub st_rdev: ::c_ulonglong,
2525
__pad3: [::c_uchar; 4],
26-
pub st_size: ::off64_t,
26+
pub st_size: ::c_longlong,
2727
pub st_blksize: ::blksize_t,
2828
pub st_blocks: ::c_ulonglong,
2929
pub st_atime: ::c_ulong,

src/unix/notbsd/android/mod.rs

+1-22
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,9 @@ pub type fsfilcnt_t = ::c_ulong;
1919
pub type fsblkcnt_t = ::c_ulong;
2020
pub type nfds_t = ::c_uint;
2121
pub type rlim_t = ::c_ulong;
22+
pub type stat = ::stat64;
2223

2324
s! {
24-
pub struct stat {
25-
pub st_dev: ::c_ulonglong,
26-
__pad0: [::c_uchar; 4],
27-
__st_ino: ::ino_t,
28-
pub st_mode: ::mode_t,
29-
pub st_nlink: ::nlink_t,
30-
pub st_uid: ::uid_t,
31-
pub st_gid: ::gid_t,
32-
pub st_rdev: ::c_ulonglong,
33-
__pad3: [::c_uchar; 4],
34-
pub st_size: ::c_longlong,
35-
pub st_blksize: ::blksize_t,
36-
pub st_blocks: ::c_ulonglong,
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-
pub st_ino: ::c_ulonglong,
44-
}
45-
4625
pub struct dirent {
4726
pub d_ino: u64,
4827
pub d_off: i64,

0 commit comments

Comments
 (0)