|
1 |
| -pub type wchar_t = i32; |
2 | 1 | pub type c_long = i64;
|
3 | 2 | pub type c_ulong = u64;
|
4 |
| -pub type nlink_t = u64; |
5 | 3 |
|
6 | 4 | s! {
|
7 |
| - pub struct stat { |
8 |
| - pub st_dev: ::dev_t, |
9 |
| - pub st_ino: ::ino_t, |
10 |
| - pub st_nlink: ::nlink_t, |
11 |
| - pub st_mode: ::mode_t, |
12 |
| - pub st_uid: ::uid_t, |
13 |
| - pub st_gid: ::gid_t, |
14 |
| - __pad0: ::c_int, |
15 |
| - pub st_rdev: ::dev_t, |
16 |
| - pub st_size: ::off_t, |
17 |
| - pub st_blksize: ::blksize_t, |
18 |
| - pub st_blocks: ::blkcnt_t, |
19 |
| - pub st_atime: ::time_t, |
20 |
| - pub st_atime_nsec: ::c_long, |
21 |
| - pub st_mtime: ::time_t, |
22 |
| - pub st_mtime_nsec: ::c_long, |
23 |
| - pub st_ctime: ::time_t, |
24 |
| - pub st_ctime_nsec: ::c_long, |
25 |
| - __unused: [::c_long; 3], |
26 |
| - } |
27 |
| - |
28 |
| - pub struct stat64 { |
29 |
| - pub st_dev: ::dev_t, |
30 |
| - pub st_ino: ::ino64_t, |
31 |
| - pub st_nlink: ::nlink_t, |
32 |
| - pub st_mode: ::mode_t, |
33 |
| - pub st_uid: ::uid_t, |
34 |
| - pub st_gid: ::gid_t, |
35 |
| - __pad0: ::c_int, |
36 |
| - pub st_rdev: ::dev_t, |
37 |
| - pub st_size: ::off_t, |
38 |
| - pub st_blksize: ::blksize_t, |
39 |
| - pub st_blocks: ::blkcnt64_t, |
40 |
| - pub st_atime: ::time_t, |
41 |
| - pub st_atime_nsec: ::c_long, |
42 |
| - pub st_mtime: ::time_t, |
43 |
| - pub st_mtime_nsec: ::c_long, |
44 |
| - pub st_ctime: ::time_t, |
45 |
| - pub st_ctime_nsec: ::c_long, |
46 |
| - __reserved: [::c_long; 3], |
47 |
| - } |
48 |
| - |
49 | 5 | pub struct statfs64 {
|
50 | 6 | pub f_type: ::c_ulong,
|
51 | 7 | pub f_bsize: ::c_ulong,
|
@@ -167,11 +123,7 @@ s! {
|
167 | 123 | pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
|
168 | 124 | pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
|
169 | 125 |
|
170 |
| -pub const O_DIRECT: ::c_int = 0x4000; |
171 |
| -pub const O_DIRECTORY: ::c_int = 0x10000; |
172 |
| -pub const O_NOFOLLOW: ::c_int = 0x20000; |
173 | 126 | pub const O_ASYNC: ::c_int = 0x2000;
|
174 |
| -pub const O_LARGEFILE: ::c_int = 0; |
175 | 127 |
|
176 | 128 | pub const FIOCLEX: ::c_int = 0x5451;
|
177 | 129 | pub const FIONBIO: ::c_int = 0x5421;
|
@@ -202,7 +154,6 @@ pub const MAP_NORESERVE: ::c_int = 0x04000;
|
202 | 154 | pub const MAP_POPULATE: ::c_int = 0x08000;
|
203 | 155 | pub const MAP_NONBLOCK: ::c_int = 0x010000;
|
204 | 156 | pub const MAP_STACK: ::c_int = 0x020000;
|
205 |
| -pub const MAP_32BIT: ::c_int = 0x0040; |
206 | 157 |
|
207 | 158 | pub const SOCK_STREAM: ::c_int = 1;
|
208 | 159 | pub const SOCK_DGRAM: ::c_int = 2;
|
|
0 commit comments