]>
Commit | Line | Data |
---|---|---|
476ff2be SL |
1 | //! AArch64-specific definitions for 64-bit linux-like values |
2 | ||
3 | pub type c_char = u8; | |
4 | pub type wchar_t = u32; | |
5 | pub type nlink_t = u32; | |
6 | pub type blksize_t = i32; | |
8bb4bdeb | 7 | pub type suseconds_t = i64; |
041b39d2 | 8 | pub type __u64 = ::c_ulonglong; |
476ff2be SL |
9 | |
10 | s! { | |
11 | pub struct stat { | |
12 | pub st_dev: ::dev_t, | |
13 | pub st_ino: ::ino_t, | |
14 | pub st_mode: ::mode_t, | |
15 | pub st_nlink: ::nlink_t, | |
16 | pub st_uid: ::uid_t, | |
17 | pub st_gid: ::gid_t, | |
18 | pub st_rdev: ::dev_t, | |
19 | __pad1: ::dev_t, | |
20 | pub st_size: ::off_t, | |
21 | pub st_blksize: ::blksize_t, | |
22 | __pad2: ::c_int, | |
23 | pub st_blocks: ::blkcnt_t, | |
24 | pub st_atime: ::time_t, | |
25 | pub st_atime_nsec: ::c_long, | |
26 | pub st_mtime: ::time_t, | |
27 | pub st_mtime_nsec: ::c_long, | |
28 | pub st_ctime: ::time_t, | |
29 | pub st_ctime_nsec: ::c_long, | |
30 | __unused: [::c_int; 2], | |
31 | } | |
32 | ||
33 | pub struct stat64 { | |
34 | pub st_dev: ::dev_t, | |
35 | pub st_ino: ::ino_t, | |
36 | pub st_mode: ::mode_t, | |
37 | pub st_nlink: ::nlink_t, | |
38 | pub st_uid: ::uid_t, | |
39 | pub st_gid: ::gid_t, | |
40 | pub st_rdev: ::dev_t, | |
41 | __pad1: ::dev_t, | |
42 | pub st_size: ::off64_t, | |
43 | pub st_blksize: ::blksize_t, | |
44 | __pad2: ::c_int, | |
45 | pub st_blocks: ::blkcnt64_t, | |
46 | pub st_atime: ::time_t, | |
47 | pub st_atime_nsec: ::c_long, | |
48 | pub st_mtime: ::time_t, | |
49 | pub st_mtime_nsec: ::c_long, | |
50 | pub st_ctime: ::time_t, | |
51 | pub st_ctime_nsec: ::c_long, | |
52 | __unused: [::c_int; 2], | |
53 | } | |
54 | ||
ea8adc8c XL |
55 | pub struct statfs64 { |
56 | pub f_type: ::__fsword_t, | |
57 | pub f_bsize: ::__fsword_t, | |
58 | pub f_blocks: u64, | |
59 | pub f_bfree: u64, | |
60 | pub f_bavail: u64, | |
61 | pub f_files: u64, | |
62 | pub f_ffree: u64, | |
63 | pub f_fsid: ::fsid_t, | |
64 | pub f_namelen: ::__fsword_t, | |
65 | pub f_frsize: ::__fsword_t, | |
66 | pub f_flags: ::__fsword_t, | |
67 | pub f_spare: [::__fsword_t; 4], | |
68 | } | |
69 | ||
70 | pub struct statvfs64 { | |
71 | pub f_bsize: ::c_ulong, | |
72 | pub f_frsize: ::c_ulong, | |
73 | pub f_blocks: u64, | |
74 | pub f_bfree: u64, | |
75 | pub f_bavail: u64, | |
76 | pub f_files: u64, | |
77 | pub f_ffree: u64, | |
78 | pub f_favail: u64, | |
79 | pub f_fsid: ::c_ulong, | |
80 | pub f_flag: ::c_ulong, | |
81 | pub f_namemax: ::c_ulong, | |
82 | __f_spare: [::c_int; 6], | |
83 | } | |
84 | ||
476ff2be SL |
85 | pub struct pthread_attr_t { |
86 | __size: [u64; 8] | |
87 | } | |
88 | ||
89 | pub struct ipc_perm { | |
90 | pub __key: ::key_t, | |
91 | pub uid: ::uid_t, | |
92 | pub gid: ::gid_t, | |
93 | pub cuid: ::uid_t, | |
94 | pub cgid: ::gid_t, | |
95 | pub mode: ::c_uint, | |
96 | pub __seq: ::c_ushort, | |
97 | __pad1: ::c_ushort, | |
98 | __unused1: ::c_ulong, | |
99 | __unused2: ::c_ulong | |
100 | } | |
101 | ||
102 | pub struct shmid_ds { | |
103 | pub shm_perm: ::ipc_perm, | |
104 | pub shm_segsz: ::size_t, | |
105 | pub shm_atime: ::time_t, | |
106 | pub shm_dtime: ::time_t, | |
107 | pub shm_ctime: ::time_t, | |
108 | pub shm_cpid: ::pid_t, | |
109 | pub shm_lpid: ::pid_t, | |
110 | pub shm_nattch: ::shmatt_t, | |
111 | __unused4: ::c_ulong, | |
112 | __unused5: ::c_ulong | |
113 | } | |
114 | } | |
115 | ||
8bb4bdeb XL |
116 | pub const TIOCGSOFTCAR: ::c_ulong = 0x5419; |
117 | pub const TIOCSSOFTCAR: ::c_ulong = 0x541A; | |
118 | ||
119 | pub const RLIMIT_NOFILE: ::c_int = 7; | |
120 | pub const RLIMIT_NPROC: ::c_int = 6; | |
121 | ||
122 | pub const O_APPEND: ::c_int = 1024; | |
123 | pub const O_CREAT: ::c_int = 64; | |
124 | pub const O_EXCL: ::c_int = 128; | |
125 | pub const O_NOCTTY: ::c_int = 256; | |
126 | pub const O_NONBLOCK: ::c_int = 2048; | |
127 | pub const O_SYNC: ::c_int = 1052672; | |
128 | pub const O_RSYNC: ::c_int = 1052672; | |
129 | pub const O_DSYNC: ::c_int = 4096; | |
130 | pub const O_FSYNC: ::c_int = 0x101000; | |
3b2f2976 XL |
131 | pub const O_NOATIME: ::c_int = 0o1000000; |
132 | pub const O_PATH: ::c_int = 0o10000000; | |
8bb4bdeb XL |
133 | |
134 | pub const MAP_GROWSDOWN: ::c_int = 0x0100; | |
135 | ||
136 | pub const EDEADLK: ::c_int = 35; | |
137 | pub const ENAMETOOLONG: ::c_int = 36; | |
138 | pub const ENOLCK: ::c_int = 37; | |
139 | pub const ENOSYS: ::c_int = 38; | |
140 | pub const ENOTEMPTY: ::c_int = 39; | |
141 | pub const ELOOP: ::c_int = 40; | |
142 | pub const ENOMSG: ::c_int = 42; | |
143 | pub const EIDRM: ::c_int = 43; | |
144 | pub const ECHRNG: ::c_int = 44; | |
145 | pub const EL2NSYNC: ::c_int = 45; | |
146 | pub const EL3HLT: ::c_int = 46; | |
147 | pub const EL3RST: ::c_int = 47; | |
148 | pub const ELNRNG: ::c_int = 48; | |
149 | pub const EUNATCH: ::c_int = 49; | |
150 | pub const ENOCSI: ::c_int = 50; | |
151 | pub const EL2HLT: ::c_int = 51; | |
152 | pub const EBADE: ::c_int = 52; | |
153 | pub const EBADR: ::c_int = 53; | |
154 | pub const EXFULL: ::c_int = 54; | |
155 | pub const ENOANO: ::c_int = 55; | |
156 | pub const EBADRQC: ::c_int = 56; | |
157 | pub const EBADSLT: ::c_int = 57; | |
158 | pub const EMULTIHOP: ::c_int = 72; | |
159 | pub const EOVERFLOW: ::c_int = 75; | |
160 | pub const ENOTUNIQ: ::c_int = 76; | |
161 | pub const EBADFD: ::c_int = 77; | |
162 | pub const EBADMSG: ::c_int = 74; | |
163 | pub const EREMCHG: ::c_int = 78; | |
164 | pub const ELIBACC: ::c_int = 79; | |
165 | pub const ELIBBAD: ::c_int = 80; | |
166 | pub const ELIBSCN: ::c_int = 81; | |
167 | pub const ELIBMAX: ::c_int = 82; | |
168 | pub const ELIBEXEC: ::c_int = 83; | |
169 | pub const EILSEQ: ::c_int = 84; | |
170 | pub const ERESTART: ::c_int = 85; | |
171 | pub const ESTRPIPE: ::c_int = 86; | |
172 | pub const EUSERS: ::c_int = 87; | |
173 | pub const ENOTSOCK: ::c_int = 88; | |
174 | pub const EDESTADDRREQ: ::c_int = 89; | |
175 | pub const EMSGSIZE: ::c_int = 90; | |
176 | pub const EPROTOTYPE: ::c_int = 91; | |
177 | pub const ENOPROTOOPT: ::c_int = 92; | |
178 | pub const EPROTONOSUPPORT: ::c_int = 93; | |
179 | pub const ESOCKTNOSUPPORT: ::c_int = 94; | |
180 | pub const EOPNOTSUPP: ::c_int = 95; | |
181 | pub const EPFNOSUPPORT: ::c_int = 96; | |
182 | pub const EAFNOSUPPORT: ::c_int = 97; | |
183 | pub const EADDRINUSE: ::c_int = 98; | |
184 | pub const EADDRNOTAVAIL: ::c_int = 99; | |
185 | pub const ENETDOWN: ::c_int = 100; | |
186 | pub const ENETUNREACH: ::c_int = 101; | |
187 | pub const ENETRESET: ::c_int = 102; | |
188 | pub const ECONNABORTED: ::c_int = 103; | |
189 | pub const ECONNRESET: ::c_int = 104; | |
190 | pub const ENOBUFS: ::c_int = 105; | |
191 | pub const EISCONN: ::c_int = 106; | |
192 | pub const ENOTCONN: ::c_int = 107; | |
193 | pub const ESHUTDOWN: ::c_int = 108; | |
194 | pub const ETOOMANYREFS: ::c_int = 109; | |
195 | pub const ETIMEDOUT: ::c_int = 110; | |
196 | pub const ECONNREFUSED: ::c_int = 111; | |
197 | pub const EHOSTDOWN: ::c_int = 112; | |
198 | pub const EHOSTUNREACH: ::c_int = 113; | |
199 | pub const EALREADY: ::c_int = 114; | |
200 | pub const EINPROGRESS: ::c_int = 115; | |
201 | pub const ESTALE: ::c_int = 116; | |
202 | pub const EDQUOT: ::c_int = 122; | |
203 | pub const ENOMEDIUM: ::c_int = 123; | |
204 | pub const EMEDIUMTYPE: ::c_int = 124; | |
205 | pub const ECANCELED: ::c_int = 125; | |
206 | pub const ENOKEY: ::c_int = 126; | |
207 | pub const EKEYEXPIRED: ::c_int = 127; | |
208 | pub const EKEYREVOKED: ::c_int = 128; | |
209 | pub const EKEYREJECTED: ::c_int = 129; | |
210 | pub const EOWNERDEAD: ::c_int = 130; | |
211 | pub const ENOTRECOVERABLE: ::c_int = 131; | |
212 | pub const EHWPOISON: ::c_int = 133; | |
213 | pub const ERFKILL: ::c_int = 132; | |
214 | ||
215 | pub const SOL_SOCKET: ::c_int = 1; | |
216 | ||
217 | pub const SO_REUSEADDR: ::c_int = 2; | |
218 | pub const SO_TYPE: ::c_int = 3; | |
219 | pub const SO_ERROR: ::c_int = 4; | |
220 | pub const SO_DONTROUTE: ::c_int = 5; | |
221 | pub const SO_BROADCAST: ::c_int = 6; | |
222 | pub const SO_SNDBUF: ::c_int = 7; | |
223 | pub const SO_RCVBUF: ::c_int = 8; | |
224 | pub const SO_SNDBUFFORCE: ::c_int = 32; | |
225 | pub const SO_RCVBUFFORCE: ::c_int = 33; | |
226 | pub const SO_KEEPALIVE: ::c_int = 9; | |
227 | pub const SO_OOBINLINE: ::c_int = 10; | |
228 | pub const SO_NO_CHECK: ::c_int = 11; | |
229 | pub const SO_PRIORITY: ::c_int = 12; | |
230 | pub const SO_LINGER: ::c_int = 13; | |
231 | pub const SO_BSDCOMPAT: ::c_int = 14; | |
232 | pub const SO_REUSEPORT: ::c_int = 15; | |
233 | pub const SO_PASSCRED: ::c_int = 16; | |
234 | pub const SO_PEERCRED: ::c_int = 17; | |
235 | pub const SO_RCVLOWAT: ::c_int = 18; | |
236 | pub const SO_SNDLOWAT: ::c_int = 19; | |
237 | pub const SO_RCVTIMEO: ::c_int = 20; | |
238 | pub const SO_SNDTIMEO: ::c_int = 21; | |
239 | pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22; | |
240 | pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23; | |
241 | pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24; | |
242 | pub const SO_BINDTODEVICE: ::c_int = 25; | |
243 | pub const SO_ATTACH_FILTER: ::c_int = 26; | |
244 | pub const SO_DETACH_FILTER: ::c_int = 27; | |
245 | pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER; | |
246 | pub const SO_PEERNAME: ::c_int = 28; | |
247 | pub const SO_TIMESTAMP: ::c_int = 29; | |
8bb4bdeb XL |
248 | pub const SO_ACCEPTCONN: ::c_int = 30; |
249 | pub const SO_PEERSEC: ::c_int = 31; | |
250 | pub const SO_PASSSEC: ::c_int = 34; | |
251 | pub const SO_TIMESTAMPNS: ::c_int = 35; | |
252 | pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS; | |
253 | pub const SO_MARK: ::c_int = 36; | |
254 | pub const SO_TIMESTAMPING: ::c_int = 37; | |
255 | pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING; | |
256 | pub const SO_PROTOCOL: ::c_int = 38; | |
257 | pub const SO_DOMAIN: ::c_int = 39; | |
258 | pub const SO_RXQ_OVFL: ::c_int = 40; | |
259 | pub const SO_WIFI_STATUS: ::c_int = 41; | |
260 | pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS; | |
261 | pub const SO_PEEK_OFF: ::c_int = 42; | |
262 | pub const SO_NOFCS: ::c_int = 43; | |
263 | pub const SO_LOCK_FILTER: ::c_int = 44; | |
264 | pub const SO_SELECT_ERR_QUEUE: ::c_int = 45; | |
265 | pub const SO_BUSY_POLL: ::c_int = 46; | |
266 | pub const SO_MAX_PACING_RATE: ::c_int = 47; | |
267 | pub const SO_BPF_EXTENSIONS: ::c_int = 48; | |
268 | pub const SO_INCOMING_CPU: ::c_int = 49; | |
269 | pub const SO_ATTACH_BPF: ::c_int = 50; | |
270 | pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER; | |
271 | ||
272 | pub const SA_ONSTACK: ::c_int = 0x08000000; | |
273 | pub const SA_SIGINFO: ::c_int = 0x00000004; | |
274 | pub const SA_NOCLDWAIT: ::c_int = 0x00000002; | |
275 | ||
276 | pub const SIGCHLD: ::c_int = 17; | |
277 | pub const SIGBUS: ::c_int = 7; | |
278 | pub const SIGUSR1: ::c_int = 10; | |
279 | pub const SIGUSR2: ::c_int = 12; | |
280 | pub const SIGCONT: ::c_int = 18; | |
281 | pub const SIGSTOP: ::c_int = 19; | |
282 | pub const SIGTSTP: ::c_int = 20; | |
283 | pub const SIGURG: ::c_int = 23; | |
284 | pub const SIGIO: ::c_int = 29; | |
285 | pub const SIGSYS: ::c_int = 31; | |
286 | pub const SIGSTKFLT: ::c_int = 16; | |
287 | pub const SIGUNUSED: ::c_int = 31; | |
288 | pub const SIGPOLL: ::c_int = 29; | |
289 | pub const SIGPWR: ::c_int = 30; | |
290 | pub const SIG_SETMASK: ::c_int = 2; | |
291 | pub const SIG_BLOCK: ::c_int = 0x000000; | |
292 | pub const SIG_UNBLOCK: ::c_int = 0x01; | |
293 | ||
294 | pub const POLLWRNORM: ::c_short = 0x100; | |
295 | pub const POLLWRBAND: ::c_short = 0x200; | |
296 | ||
297 | pub const O_ASYNC: ::c_int = 0x2000; | |
298 | pub const O_NDELAY: ::c_int = 0x800; | |
299 | ||
300 | pub const PTRACE_DETACH: ::c_uint = 17; | |
301 | ||
302 | pub const EFD_NONBLOCK: ::c_int = 0x800; | |
303 | ||
304 | pub const F_GETLK: ::c_int = 5; | |
305 | pub const F_GETOWN: ::c_int = 9; | |
306 | pub const F_SETOWN: ::c_int = 8; | |
307 | pub const F_SETLK: ::c_int = 6; | |
308 | pub const F_SETLKW: ::c_int = 7; | |
309 | ||
310 | pub const SFD_NONBLOCK: ::c_int = 0x0800; | |
311 | ||
312 | pub const TIOCEXCL: ::c_ulong = 0x540C; | |
313 | pub const TIOCNXCL: ::c_ulong = 0x540D; | |
314 | pub const TIOCSCTTY: ::c_ulong = 0x540E; | |
315 | pub const TIOCSTI: ::c_ulong = 0x5412; | |
316 | pub const TIOCMGET: ::c_ulong = 0x5415; | |
317 | pub const TIOCMBIS: ::c_ulong = 0x5416; | |
318 | pub const TIOCMBIC: ::c_ulong = 0x5417; | |
319 | pub const TIOCMSET: ::c_ulong = 0x5418; | |
320 | pub const TIOCCONS: ::c_ulong = 0x541D; | |
321 | ||
8bb4bdeb XL |
322 | pub const SFD_CLOEXEC: ::c_int = 0x080000; |
323 | ||
324 | pub const NCCS: usize = 32; | |
325 | ||
326 | pub const O_TRUNC: ::c_int = 512; | |
327 | ||
328 | pub const O_CLOEXEC: ::c_int = 0x80000; | |
329 | ||
330 | pub const EBFONT: ::c_int = 59; | |
331 | pub const ENOSTR: ::c_int = 60; | |
332 | pub const ENODATA: ::c_int = 61; | |
333 | pub const ETIME: ::c_int = 62; | |
334 | pub const ENOSR: ::c_int = 63; | |
335 | pub const ENONET: ::c_int = 64; | |
336 | pub const ENOPKG: ::c_int = 65; | |
337 | pub const EREMOTE: ::c_int = 66; | |
338 | pub const ENOLINK: ::c_int = 67; | |
339 | pub const EADV: ::c_int = 68; | |
340 | pub const ESRMNT: ::c_int = 69; | |
341 | pub const ECOMM: ::c_int = 70; | |
342 | pub const EPROTO: ::c_int = 71; | |
343 | pub const EDOTDOT: ::c_int = 73; | |
344 | ||
345 | pub const SA_NODEFER: ::c_int = 0x40000000; | |
346 | pub const SA_RESETHAND: ::c_int = 0x80000000; | |
347 | pub const SA_RESTART: ::c_int = 0x10000000; | |
348 | pub const SA_NOCLDSTOP: ::c_int = 0x00000001; | |
349 | ||
350 | pub const EPOLL_CLOEXEC: ::c_int = 0x80000; | |
351 | ||
352 | pub const EFD_CLOEXEC: ::c_int = 0x80000; | |
353 | ||
476ff2be SL |
354 | pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 8; |
355 | pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 48; | |
356 | pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 8; | |
357 | ||
358 | pub const O_DIRECT: ::c_int = 0x10000; | |
359 | pub const O_DIRECTORY: ::c_int = 0x4000; | |
360 | pub const O_NOFOLLOW: ::c_int = 0x8000; | |
361 | ||
362 | pub const MAP_LOCKED: ::c_int = 0x02000; | |
363 | pub const MAP_NORESERVE: ::c_int = 0x04000; | |
364 | ||
365 | pub const EDEADLOCK: ::c_int = 35; | |
366 | ||
476ff2be SL |
367 | pub const FIOCLEX: ::c_ulong = 0x5451; |
368 | pub const FIONBIO: ::c_ulong = 0x5421; | |
369 | ||
ea8adc8c | 370 | pub const SYS_pivot_root: ::c_long = 41; |
476ff2be SL |
371 | pub const SYS_gettid: ::c_long = 178; |
372 | pub const SYS_perf_event_open: ::c_long = 241; | |
ea8adc8c | 373 | pub const SYS_memfd_create: ::c_long = 279; |
476ff2be SL |
374 | |
375 | pub const MCL_CURRENT: ::c_int = 0x0001; | |
376 | pub const MCL_FUTURE: ::c_int = 0x0002; | |
377 | ||
378 | pub const SIGSTKSZ: ::size_t = 16384; | |
7cac9316 | 379 | pub const MINSIGSTKSZ: ::size_t = 5120; |
476ff2be SL |
380 | pub const CBAUD: ::tcflag_t = 0o0010017; |
381 | pub const TAB1: ::c_int = 0x00000800; | |
382 | pub const TAB2: ::c_int = 0x00001000; | |
383 | pub const TAB3: ::c_int = 0x00001800; | |
384 | pub const CR1: ::c_int = 0x00000200; | |
385 | pub const CR2: ::c_int = 0x00000400; | |
386 | pub const CR3: ::c_int = 0x00000600; | |
387 | pub const FF1: ::c_int = 0x00008000; | |
388 | pub const BS1: ::c_int = 0x00002000; | |
389 | pub const VT1: ::c_int = 0x00004000; | |
390 | pub const VWERASE: usize = 14; | |
391 | pub const VREPRINT: usize = 12; | |
392 | pub const VSUSP: usize = 10; | |
393 | pub const VSTART: usize = 8; | |
394 | pub const VSTOP: usize = 9; | |
395 | pub const VDISCARD: usize = 13; | |
396 | pub const VTIME: usize = 5; | |
397 | pub const IXON: ::tcflag_t = 0x00000400; | |
398 | pub const IXOFF: ::tcflag_t = 0x00001000; | |
399 | pub const ONLCR: ::tcflag_t = 0x4; | |
400 | pub const CSIZE: ::tcflag_t = 0x00000030; | |
401 | pub const CS6: ::tcflag_t = 0x00000010; | |
402 | pub const CS7: ::tcflag_t = 0x00000020; | |
403 | pub const CS8: ::tcflag_t = 0x00000030; | |
404 | pub const CSTOPB: ::tcflag_t = 0x00000040; | |
405 | pub const CREAD: ::tcflag_t = 0x00000080; | |
406 | pub const PARENB: ::tcflag_t = 0x00000100; | |
407 | pub const PARODD: ::tcflag_t = 0x00000200; | |
408 | pub const HUPCL: ::tcflag_t = 0x00000400; | |
409 | pub const CLOCAL: ::tcflag_t = 0x00000800; | |
410 | pub const ECHOKE: ::tcflag_t = 0x00000800; | |
411 | pub const ECHOE: ::tcflag_t = 0x00000010; | |
412 | pub const ECHOK: ::tcflag_t = 0x00000020; | |
413 | pub const ECHONL: ::tcflag_t = 0x00000040; | |
414 | pub const ECHOPRT: ::tcflag_t = 0x00000400; | |
415 | pub const ECHOCTL: ::tcflag_t = 0x00000200; | |
416 | pub const ISIG: ::tcflag_t = 0x00000001; | |
417 | pub const ICANON: ::tcflag_t = 0x00000002; | |
418 | pub const PENDIN: ::tcflag_t = 0x00004000; | |
419 | pub const NOFLSH: ::tcflag_t = 0x00000080; | |
041b39d2 XL |
420 | pub const CIBAUD: ::tcflag_t = 0o02003600000; |
421 | pub const CBAUDEX: ::tcflag_t = 0o010000; | |
422 | pub const VSWTC: usize = 7; | |
423 | pub const OLCUC: ::tcflag_t = 0o000002; | |
424 | pub const NLDLY: ::tcflag_t = 0o000400; | |
425 | pub const CRDLY: ::tcflag_t = 0o003000; | |
426 | pub const TABDLY: ::tcflag_t = 0o014000; | |
427 | pub const BSDLY: ::tcflag_t = 0o020000; | |
428 | pub const FFDLY: ::tcflag_t = 0o100000; | |
429 | pub const VTDLY: ::tcflag_t = 0o040000; | |
430 | pub const XTABS: ::tcflag_t = 0o014000; | |
476ff2be | 431 | |
8bb4bdeb XL |
432 | pub const B0: ::speed_t = 0o000000; |
433 | pub const B50: ::speed_t = 0o000001; | |
434 | pub const B75: ::speed_t = 0o000002; | |
435 | pub const B110: ::speed_t = 0o000003; | |
436 | pub const B134: ::speed_t = 0o000004; | |
437 | pub const B150: ::speed_t = 0o000005; | |
438 | pub const B200: ::speed_t = 0o000006; | |
439 | pub const B300: ::speed_t = 0o000007; | |
440 | pub const B600: ::speed_t = 0o000010; | |
441 | pub const B1200: ::speed_t = 0o000011; | |
442 | pub const B1800: ::speed_t = 0o000012; | |
443 | pub const B2400: ::speed_t = 0o000013; | |
444 | pub const B4800: ::speed_t = 0o000014; | |
445 | pub const B9600: ::speed_t = 0o000015; | |
446 | pub const B19200: ::speed_t = 0o000016; | |
447 | pub const B38400: ::speed_t = 0o000017; | |
448 | pub const EXTA: ::speed_t = B19200; | |
449 | pub const EXTB: ::speed_t = B38400; | |
450 | pub const B57600: ::speed_t = 0o010001; | |
451 | pub const B115200: ::speed_t = 0o010002; | |
452 | pub const B230400: ::speed_t = 0o010003; | |
453 | pub const B460800: ::speed_t = 0o010004; | |
454 | pub const B500000: ::speed_t = 0o010005; | |
455 | pub const B576000: ::speed_t = 0o010006; | |
456 | pub const B921600: ::speed_t = 0o010007; | |
457 | pub const B1000000: ::speed_t = 0o010010; | |
458 | pub const B1152000: ::speed_t = 0o010011; | |
459 | pub const B1500000: ::speed_t = 0o010012; | |
460 | pub const B2000000: ::speed_t = 0o010013; | |
461 | pub const B2500000: ::speed_t = 0o010014; | |
462 | pub const B3000000: ::speed_t = 0o010015; | |
463 | pub const B3500000: ::speed_t = 0o010016; | |
464 | pub const B4000000: ::speed_t = 0o010017; | |
465 | ||
476ff2be SL |
466 | pub const VEOL: usize = 11; |
467 | pub const VEOL2: usize = 16; | |
468 | pub const VMIN: usize = 6; | |
469 | pub const IEXTEN: ::tcflag_t = 0x00008000; | |
470 | pub const TOSTOP: ::tcflag_t = 0x00000100; | |
471 | pub const FLUSHO: ::tcflag_t = 0x00001000; | |
472 | pub const EXTPROC: ::tcflag_t = 0x00010000; | |
473 | pub const TCGETS: ::c_ulong = 0x5401; | |
474 | pub const TCSETS: ::c_ulong = 0x5402; | |
475 | pub const TCSETSW: ::c_ulong = 0x5403; | |
476 | pub const TCSETSF: ::c_ulong = 0x5404; | |
477 | pub const TCGETA: ::c_ulong = 0x5405; | |
478 | pub const TCSETA: ::c_ulong = 0x5406; | |
479 | pub const TCSETAW: ::c_ulong = 0x5407; | |
480 | pub const TCSETAF: ::c_ulong = 0x5408; | |
481 | pub const TCSBRK: ::c_ulong = 0x5409; | |
482 | pub const TCXONC: ::c_ulong = 0x540A; | |
483 | pub const TCFLSH: ::c_ulong = 0x540B; | |
484 | pub const TIOCINQ: ::c_ulong = 0x541B; | |
485 | pub const TIOCGPGRP: ::c_ulong = 0x540F; | |
486 | pub const TIOCSPGRP: ::c_ulong = 0x5410; | |
487 | pub const TIOCOUTQ: ::c_ulong = 0x5411; | |
488 | pub const TIOCGWINSZ: ::c_ulong = 0x5413; | |
489 | pub const TIOCSWINSZ: ::c_ulong = 0x5414; | |
490 | pub const FIONREAD: ::c_ulong = 0x541B; |