|
25 | 25 | }
|
26 | 26 |
|
27 | 27 | 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, |
32 | 31 | pub st_nlink: ::nlink_t,
|
33 | 32 | pub st_uid: ::uid_t,
|
34 | 33 | 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, |
38 | 36 | 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, |
47 | 46 | }
|
48 | 47 |
|
49 | 48 | pub struct stat64 {
|
50 |
| - pub st_dev: ::c_ulonglong, |
| 49 | + pub st_dev: ::dev_t, |
51 | 50 | __pad0: [::c_uchar; 4],
|
52 | 51 | __st_ino: ::ino_t,
|
53 | 52 | pub st_mode: ::c_uint,
|
54 | 53 | pub st_nlink: ::nlink_t,
|
55 | 54 | pub st_uid: ::uid_t,
|
56 | 55 | pub st_gid: ::gid_t,
|
57 |
| - pub st_rdev: ::c_ulonglong, |
| 56 | + pub st_rdev: ::dev_t, |
58 | 57 | __pad3: [::c_uchar; 4],
|
59 |
| - pub st_size: ::c_longlong, |
| 58 | + pub st_size: ::off_t, |
60 | 59 | 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, |
63 | 62 | pub st_atime_nsec: ::c_long,
|
64 |
| - pub st_mtime: ::c_long, |
| 63 | + pub st_mtime: ::time_t, |
65 | 64 | pub st_mtime_nsec: ::c_long,
|
66 |
| - pub st_ctime: ::c_long, |
| 65 | + pub st_ctime: ::time_t, |
67 | 66 | pub st_ctime_nsec: ::c_long,
|
68 |
| - pub st_ino: ::c_ulonglong, |
| 67 | + pub st_ino: ::dev_t, |
69 | 68 | }
|
70 | 69 |
|
71 | 70 | pub struct statfs64 {
|
|
0 commit comments