|
1 | 1 | pub type c_char = i8; |
2 | 2 | pub type wchar_t = ::c_int; |
| 3 | +pub type stat64 = ::stat; |
3 | 4 |
|
4 | 5 | s! { |
5 | 6 | pub struct stat { |
|
13 | 14 | pub st_rdev: ::dev_t, |
14 | 15 | __st_padding2: [::c_long; 2], |
15 | 16 | pub st_size: ::off_t, |
16 | | - pub st_atime: ::time_t, |
17 | | - pub st_atime_nsec: ::c_long, |
18 | | - pub st_mtime: ::time_t, |
19 | | - pub st_mtime_nsec: ::c_long, |
20 | | - pub st_ctime: ::time_t, |
21 | | - pub st_ctime_nsec: ::c_long, |
| 17 | + __st_atime32: ::c_long, |
| 18 | + __st_atime32_nsec: ::c_long, |
| 19 | + __st_mtime32: ::c_long, |
| 20 | + __st_mtime32_nsec: ::c_long, |
| 21 | + __st_ctime32: ::c_long, |
| 22 | + __st_ctime32_nsec: ::c_long, |
22 | 23 | pub st_blksize: ::blksize_t, |
23 | 24 | __st_padding3: ::c_long, |
24 | 25 | pub st_blocks: ::blkcnt_t, |
25 | | - __st_padding4: [::c_long; 14], |
26 | | - } |
27 | | - |
28 | | - pub struct stat64 { |
29 | | - pub st_dev: ::dev_t, |
30 | | - __st_padding1: [::c_long; 2], |
31 | | - pub st_ino: ::ino64_t, |
32 | | - pub st_mode: ::mode_t, |
33 | | - pub st_nlink: ::nlink_t, |
34 | | - pub st_uid: ::uid_t, |
35 | | - pub st_gid: ::gid_t, |
36 | | - pub st_rdev: ::dev_t, |
37 | | - __st_padding2: [::c_long; 2], |
38 | | - pub st_size: ::off_t, |
39 | 26 | pub st_atime: ::time_t, |
40 | 27 | pub st_atime_nsec: ::c_long, |
| 28 | + __st_atime_nsec_padding: ::c_long, |
41 | 29 | pub st_mtime: ::time_t, |
42 | 30 | pub st_mtime_nsec: ::c_long, |
| 31 | + __st_mtime_nsec_padding: ::c_long, |
43 | 32 | pub st_ctime: ::time_t, |
44 | 33 | pub st_ctime_nsec: ::c_long, |
45 | | - pub st_blksize: ::blksize_t, |
46 | | - __st_padding3: ::c_long, |
47 | | - pub st_blocks: ::blkcnt64_t, |
48 | | - __st_padding4: [::c_long; 14], |
| 34 | + __st_ctime_nsec_padding: ::c_long, |
| 35 | + __st_padding4: [::c_long; 2], |
49 | 36 | } |
50 | 37 |
|
51 | 38 | pub struct stack_t { |
|
0 commit comments