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