blob: 8c19b0713dc5e72c920172b10399455f01d20805 [file] [log] [blame]
Anton Blanchardc4f676b2015-12-29 06:37:06 +00001//! PowerPC64-specific definitions for 64-bit linux-like values
2
3pub type c_char = u8;
Anton Blanchard9e1a38e2016-01-21 15:47:02 +00004pub type wchar_t = i32;
Anton Blanchardc4f676b2015-12-29 06:37:06 +00005pub type nlink_t = u64;
6pub type blksize_t = i64;
Jorge Aparicio540d1402016-12-31 16:40:13 -05007pub type suseconds_t = i64;
Anton Blanchardc4f676b2015-12-29 06:37:06 +00008
Anton Blanchardc4f676b2015-12-29 06:37:06 +00009s! {
10 pub struct stat {
11 pub st_dev: ::dev_t,
12 pub st_ino: ::ino_t,
13 pub st_nlink: ::nlink_t,
14 pub st_mode: ::mode_t,
15 pub st_uid: ::uid_t,
16 pub st_gid: ::gid_t,
17 __pad0: ::c_int,
18 pub st_rdev: ::dev_t,
19 pub st_size: ::off_t,
20 pub st_blksize: ::blksize_t,
21 pub st_blocks: ::blkcnt_t,
22 pub st_atime: ::time_t,
23 pub st_atime_nsec: ::c_long,
24 pub st_mtime: ::time_t,
25 pub st_mtime_nsec: ::c_long,
26 pub st_ctime: ::time_t,
27 pub st_ctime_nsec: ::c_long,
28 __unused: [::c_long; 3],
29 }
30
31 pub struct stat64 {
32 pub st_dev: ::dev_t,
33 pub st_ino: ::ino64_t,
34 pub st_nlink: ::nlink_t,
35 pub st_mode: ::mode_t,
36 pub st_uid: ::uid_t,
37 pub st_gid: ::gid_t,
38 __pad0: ::c_int,
39 pub st_rdev: ::dev_t,
40 pub st_size: ::off64_t,
41 pub st_blksize: ::blksize_t,
42 pub st_blocks: ::blkcnt64_t,
43 pub st_atime: ::time_t,
44 pub st_atime_nsec: ::c_long,
45 pub st_mtime: ::time_t,
46 pub st_mtime_nsec: ::c_long,
47 pub st_ctime: ::time_t,
48 pub st_ctime_nsec: ::c_long,
49 __reserved: [::c_long; 3],
50 }
51
52 pub struct pthread_attr_t {
53 __size: [u64; 7]
54 }
Alex Crichtona6b1c2d2016-08-26 23:11:45 -070055
56 pub struct ipc_perm {
57 pub __key: ::key_t,
58 pub uid: ::uid_t,
59 pub gid: ::gid_t,
60 pub cuid: ::uid_t,
61 pub cgid: ::gid_t,
62 pub mode: ::mode_t,
63 pub __seq: ::uint32_t,
64 __pad1: ::uint32_t,
65 __unused1: ::uint64_t,
66 __unused2: ::c_ulong,
67 }
68
69 pub struct shmid_ds {
70 pub shm_perm: ::ipc_perm,
71 pub shm_atime: ::time_t,
72 pub shm_dtime: ::time_t,
73 pub shm_ctime: ::time_t,
74 pub shm_segsz: ::size_t,
75 pub shm_cpid: ::pid_t,
76 pub shm_lpid: ::pid_t,
77 pub shm_nattch: ::shmatt_t,
78 __unused4: ::c_ulong,
79 __unused5: ::c_ulong
80 }
Anton Blanchardc4f676b2015-12-29 06:37:06 +000081}
Alex Crichton8a8bc662016-02-29 23:02:36 -080082
Jorge Aparicio67615b42016-12-31 20:00:49 -050083pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
84pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
85
Jorge Aparicio540d1402016-12-31 16:40:13 -050086pub const RLIMIT_NOFILE: ::c_int = 7;
87pub const RLIMIT_NPROC: ::c_int = 6;
88
89pub const O_APPEND: ::c_int = 1024;
90pub const O_CREAT: ::c_int = 64;
91pub const O_EXCL: ::c_int = 128;
92pub const O_NOCTTY: ::c_int = 256;
93pub const O_NONBLOCK: ::c_int = 2048;
94pub const O_SYNC: ::c_int = 1052672;
95pub const O_RSYNC: ::c_int = 1052672;
96pub const O_DSYNC: ::c_int = 4096;
97pub const O_FSYNC: ::c_int = 0x101000;
98
99pub const MAP_GROWSDOWN: ::c_int = 0x0100;
100
101pub const EDEADLK: ::c_int = 35;
102pub const ENAMETOOLONG: ::c_int = 36;
103pub const ENOLCK: ::c_int = 37;
104pub const ENOSYS: ::c_int = 38;
105pub const ENOTEMPTY: ::c_int = 39;
106pub const ELOOP: ::c_int = 40;
107pub const ENOMSG: ::c_int = 42;
108pub const EIDRM: ::c_int = 43;
109pub const ECHRNG: ::c_int = 44;
110pub const EL2NSYNC: ::c_int = 45;
111pub const EL3HLT: ::c_int = 46;
112pub const EL3RST: ::c_int = 47;
113pub const ELNRNG: ::c_int = 48;
114pub const EUNATCH: ::c_int = 49;
115pub const ENOCSI: ::c_int = 50;
116pub const EL2HLT: ::c_int = 51;
117pub const EBADE: ::c_int = 52;
118pub const EBADR: ::c_int = 53;
119pub const EXFULL: ::c_int = 54;
120pub const ENOANO: ::c_int = 55;
121pub const EBADRQC: ::c_int = 56;
122pub const EBADSLT: ::c_int = 57;
123pub const EMULTIHOP: ::c_int = 72;
124pub const EOVERFLOW: ::c_int = 75;
125pub const ENOTUNIQ: ::c_int = 76;
126pub const EBADFD: ::c_int = 77;
127pub const EBADMSG: ::c_int = 74;
128pub const EREMCHG: ::c_int = 78;
129pub const ELIBACC: ::c_int = 79;
130pub const ELIBBAD: ::c_int = 80;
131pub const ELIBSCN: ::c_int = 81;
132pub const ELIBMAX: ::c_int = 82;
133pub const ELIBEXEC: ::c_int = 83;
134pub const EILSEQ: ::c_int = 84;
135pub const ERESTART: ::c_int = 85;
136pub const ESTRPIPE: ::c_int = 86;
137pub const EUSERS: ::c_int = 87;
138pub const ENOTSOCK: ::c_int = 88;
139pub const EDESTADDRREQ: ::c_int = 89;
140pub const EMSGSIZE: ::c_int = 90;
141pub const EPROTOTYPE: ::c_int = 91;
142pub const ENOPROTOOPT: ::c_int = 92;
143pub const EPROTONOSUPPORT: ::c_int = 93;
144pub const ESOCKTNOSUPPORT: ::c_int = 94;
145pub const EOPNOTSUPP: ::c_int = 95;
146pub const EPFNOSUPPORT: ::c_int = 96;
147pub const EAFNOSUPPORT: ::c_int = 97;
148pub const EADDRINUSE: ::c_int = 98;
149pub const EADDRNOTAVAIL: ::c_int = 99;
150pub const ENETDOWN: ::c_int = 100;
151pub const ENETUNREACH: ::c_int = 101;
152pub const ENETRESET: ::c_int = 102;
153pub const ECONNABORTED: ::c_int = 103;
154pub const ECONNRESET: ::c_int = 104;
155pub const ENOBUFS: ::c_int = 105;
156pub const EISCONN: ::c_int = 106;
157pub const ENOTCONN: ::c_int = 107;
158pub const ESHUTDOWN: ::c_int = 108;
159pub const ETOOMANYREFS: ::c_int = 109;
160pub const ETIMEDOUT: ::c_int = 110;
161pub const ECONNREFUSED: ::c_int = 111;
162pub const EHOSTDOWN: ::c_int = 112;
163pub const EHOSTUNREACH: ::c_int = 113;
164pub const EALREADY: ::c_int = 114;
165pub const EINPROGRESS: ::c_int = 115;
166pub const ESTALE: ::c_int = 116;
167pub const EDQUOT: ::c_int = 122;
168pub const ENOMEDIUM: ::c_int = 123;
169pub const EMEDIUMTYPE: ::c_int = 124;
170pub const ECANCELED: ::c_int = 125;
171pub const ENOKEY: ::c_int = 126;
172pub const EKEYEXPIRED: ::c_int = 127;
173pub const EKEYREVOKED: ::c_int = 128;
174pub const EKEYREJECTED: ::c_int = 129;
175pub const EOWNERDEAD: ::c_int = 130;
176pub const ENOTRECOVERABLE: ::c_int = 131;
177pub const EHWPOISON: ::c_int = 133;
178pub const ERFKILL: ::c_int = 132;
179
180pub const SOL_SOCKET: ::c_int = 1;
181
182pub const SO_REUSEADDR: ::c_int = 2;
183pub const SO_TYPE: ::c_int = 3;
184pub const SO_ERROR: ::c_int = 4;
185pub const SO_DONTROUTE: ::c_int = 5;
186pub const SO_BROADCAST: ::c_int = 6;
187pub const SO_SNDBUF: ::c_int = 7;
188pub const SO_RCVBUF: ::c_int = 8;
Zac Berkowitz1479ea82017-02-28 03:59:17 +0000189pub const SO_SNDBUFFORCE: ::c_int = 32;
190pub const SO_RCVBUFFORCE: ::c_int = 33;
Jorge Aparicio540d1402016-12-31 16:40:13 -0500191pub const SO_KEEPALIVE: ::c_int = 9;
192pub const SO_OOBINLINE: ::c_int = 10;
Zac Berkowitz1479ea82017-02-28 03:59:17 +0000193pub const SO_NO_CHECK: ::c_int = 11;
194pub const SO_PRIORITY: ::c_int = 12;
Jorge Aparicio540d1402016-12-31 16:40:13 -0500195pub const SO_LINGER: ::c_int = 13;
Zac Berkowitz1479ea82017-02-28 03:59:17 +0000196pub const SO_BSDCOMPAT: ::c_int = 14;
Jorge Aparicio540d1402016-12-31 16:40:13 -0500197pub const SO_REUSEPORT: ::c_int = 15;
Zac Berkowitz1479ea82017-02-28 03:59:17 +0000198pub const SO_PASSCRED: ::c_int = 20;
199pub const SO_PEERCRED: ::c_int = 21;
200pub const SO_RCVLOWAT: ::c_int = 16;
201pub const SO_SNDLOWAT: ::c_int = 17;
202pub const SO_RCVTIMEO: ::c_int = 18;
203pub const SO_SNDTIMEO: ::c_int = 19;
204pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22;
205pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23;
206pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24;
207pub const SO_BINDTODEVICE: ::c_int = 25;
208pub const SO_ATTACH_FILTER: ::c_int = 26;
209pub const SO_DETACH_FILTER: ::c_int = 27;
210pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER;
211pub const SO_PEERNAME: ::c_int = 28;
212pub const SO_TIMESTAMP: ::c_int = 29;
213pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
Jorge Aparicio540d1402016-12-31 16:40:13 -0500214pub const SO_ACCEPTCONN: ::c_int = 30;
Zac Berkowitz1479ea82017-02-28 03:59:17 +0000215pub const SO_PEERSEC: ::c_int = 31;
216pub const SO_PASSSEC: ::c_int = 34;
217pub const SO_TIMESTAMPNS: ::c_int = 35;
218pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS;
219pub const SO_MARK: ::c_int = 36;
220pub const SO_TIMESTAMPING: ::c_int = 37;
221pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
222pub const SO_PROTOCOL: ::c_int = 38;
223pub const SO_DOMAIN: ::c_int = 39;
224pub const SO_RXQ_OVFL: ::c_int = 40;
225pub const SO_WIFI_STATUS: ::c_int = 41;
226pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS;
227pub const SO_PEEK_OFF: ::c_int = 42;
228pub const SO_NOFCS: ::c_int = 43;
229pub const SO_LOCK_FILTER: ::c_int = 44;
230pub const SO_SELECT_ERR_QUEUE: ::c_int = 45;
231pub const SO_BUSY_POLL: ::c_int = 46;
232pub const SO_MAX_PACING_RATE: ::c_int = 47;
233pub const SO_BPF_EXTENSIONS: ::c_int = 48;
234pub const SO_INCOMING_CPU: ::c_int = 49;
235pub const SO_ATTACH_BPF: ::c_int = 50;
236pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
Jorge Aparicio540d1402016-12-31 16:40:13 -0500237
238pub const SA_ONSTACK: ::c_int = 0x08000000;
239pub const SA_SIGINFO: ::c_int = 0x00000004;
240pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
241
242pub const SIGCHLD: ::c_int = 17;
243pub const SIGBUS: ::c_int = 7;
244pub const SIGUSR1: ::c_int = 10;
245pub const SIGUSR2: ::c_int = 12;
246pub const SIGCONT: ::c_int = 18;
247pub const SIGSTOP: ::c_int = 19;
248pub const SIGTSTP: ::c_int = 20;
249pub const SIGURG: ::c_int = 23;
250pub const SIGIO: ::c_int = 29;
251pub const SIGSYS: ::c_int = 31;
252pub const SIGSTKFLT: ::c_int = 16;
253pub const SIGUNUSED: ::c_int = 31;
254pub const SIGPOLL: ::c_int = 29;
255pub const SIGPWR: ::c_int = 30;
256pub const SIG_SETMASK: ::c_int = 2;
257pub const SIG_BLOCK: ::c_int = 0x000000;
258pub const SIG_UNBLOCK: ::c_int = 0x01;
259
260pub const POLLWRNORM: ::c_short = 0x100;
261pub const POLLWRBAND: ::c_short = 0x200;
262
263pub const O_ASYNC: ::c_int = 0x2000;
264pub const O_NDELAY: ::c_int = 0x800;
265
266pub const PTRACE_DETACH: ::c_uint = 17;
267
268pub const EFD_NONBLOCK: ::c_int = 0x800;
269
270pub const F_GETLK: ::c_int = 5;
271pub const F_GETOWN: ::c_int = 9;
272pub const F_SETOWN: ::c_int = 8;
273pub const F_SETLK: ::c_int = 6;
274pub const F_SETLKW: ::c_int = 7;
275
276pub const SFD_NONBLOCK: ::c_int = 0x0800;
277
278pub const TIOCEXCL: ::c_ulong = 0x540C;
279pub const TIOCNXCL: ::c_ulong = 0x540D;
280pub const TIOCSCTTY: ::c_ulong = 0x540E;
281pub const TIOCSTI: ::c_ulong = 0x5412;
282pub const TIOCMGET: ::c_ulong = 0x5415;
283pub const TIOCMBIS: ::c_ulong = 0x5416;
284pub const TIOCMBIC: ::c_ulong = 0x5417;
285pub const TIOCMSET: ::c_ulong = 0x5418;
286pub const TIOCCONS: ::c_ulong = 0x541D;
287
288pub const CLONE_NEWCGROUP: ::c_int = 0x02000000;
289
290pub const SFD_CLOEXEC: ::c_int = 0x080000;
291
292pub const NCCS: usize = 32;
293
294pub const O_TRUNC: ::c_int = 512;
295
296pub const O_CLOEXEC: ::c_int = 0x80000;
297
298pub const EBFONT: ::c_int = 59;
299pub const ENOSTR: ::c_int = 60;
300pub const ENODATA: ::c_int = 61;
301pub const ETIME: ::c_int = 62;
302pub const ENOSR: ::c_int = 63;
303pub const ENONET: ::c_int = 64;
304pub const ENOPKG: ::c_int = 65;
305pub const EREMOTE: ::c_int = 66;
306pub const ENOLINK: ::c_int = 67;
307pub const EADV: ::c_int = 68;
308pub const ESRMNT: ::c_int = 69;
309pub const ECOMM: ::c_int = 70;
310pub const EPROTO: ::c_int = 71;
311pub const EDOTDOT: ::c_int = 73;
312
313pub const SA_NODEFER: ::c_int = 0x40000000;
314pub const SA_RESETHAND: ::c_int = 0x80000000;
315pub const SA_RESTART: ::c_int = 0x10000000;
316pub const SA_NOCLDSTOP: ::c_int = 0x00000001;
317
318pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
319
320pub const EFD_CLOEXEC: ::c_int = 0x80000;
321
Tomasz MiÄ…skocb644852016-07-20 07:31:48 +0200322pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4;
Alex Crichton8a8bc662016-02-29 23:02:36 -0800323pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
324pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
325
326pub const O_DIRECTORY: ::c_int = 0x4000;
327pub const O_NOFOLLOW: ::c_int = 0x8000;
328pub const O_DIRECT: ::c_int = 0x20000;
329
330pub const MAP_LOCKED: ::c_int = 0x00080;
331pub const MAP_NORESERVE: ::c_int = 0x00040;
332
333pub const EDEADLOCK: ::c_int = 58;
334
Alex Crichton8a8bc662016-02-29 23:02:36 -0800335pub const FIOCLEX: ::c_ulong = 0x20006601;
336pub const FIONBIO: ::c_ulong = 0x8004667e;
Alex Crichton518e09f2016-03-06 11:22:42 -0800337
Dave Hylands0b0a17d2016-03-06 13:00:32 -0800338pub const SYS_gettid: ::c_long = 207;
Kamal Marhubia63cd452016-03-09 15:36:51 -0500339pub const SYS_perf_event_open: ::c_long = 319;
Alex Crichtona6b1c2d2016-08-26 23:11:45 -0700340
341pub const MCL_CURRENT: ::c_int = 0x2000;
342pub const MCL_FUTURE: ::c_int = 0x4000;
343
344pub const SIGSTKSZ: ::size_t = 0x4000;
Anatol Pomozovde75eb62017-04-04 13:26:32 -0700345pub const MINSIGSTKSZ: ::size_t = 4096;
Alex Crichtona6b1c2d2016-08-26 23:11:45 -0700346pub const CBAUD: ::tcflag_t = 0xff;
347pub const TAB1: ::c_int = 0x400;
348pub const TAB2: ::c_int = 0x800;
349pub const TAB3: ::c_int = 0xc00;
350pub const CR1: ::c_int = 0x1000;
351pub const CR2: ::c_int = 0x2000;
352pub const CR3: ::c_int = 0x3000;
353pub const FF1: ::c_int = 0x4000;
354pub const BS1: ::c_int = 0x8000;
355pub const VT1: ::c_int = 0x10000;
356pub const VWERASE: usize = 0xa;
357pub const VREPRINT: usize = 0xb;
358pub const VSUSP: usize = 0xc;
359pub const VSTART: usize = 0xd;
360pub const VSTOP: usize = 0xe;
361pub const VDISCARD: usize = 0x10;
362pub const VTIME: usize = 0x7;
363pub const IXON: ::tcflag_t = 0x200;
364pub const IXOFF: ::tcflag_t = 0x400;
365pub const ONLCR: ::tcflag_t = 0x2;
366pub const CSIZE: ::tcflag_t = 0x300;
367pub const CS6: ::tcflag_t = 0x100;
368pub const CS7: ::tcflag_t = 0x200;
369pub const CS8: ::tcflag_t = 0x300;
370pub const CSTOPB: ::tcflag_t = 0x400;
371pub const CREAD: ::tcflag_t = 0x800;
372pub const PARENB: ::tcflag_t = 0x1000;
373pub const PARODD: ::tcflag_t = 0x2000;
374pub const HUPCL: ::tcflag_t = 0x4000;
375pub const CLOCAL: ::tcflag_t = 0x8000;
376pub const ECHOKE: ::tcflag_t = 0x1;
377pub const ECHOE: ::tcflag_t = 0x2;
378pub const ECHOK: ::tcflag_t = 0x4;
379pub const ECHONL: ::tcflag_t = 0x10;
380pub const ECHOPRT: ::tcflag_t = 0x20;
381pub const ECHOCTL: ::tcflag_t = 0x40;
382pub const ISIG: ::tcflag_t = 0x80;
383pub const ICANON: ::tcflag_t = 0x100;
384pub const PENDIN: ::tcflag_t = 0x20000000;
385pub const NOFLSH: ::tcflag_t = 0x80000000;
386
Zac Berkowitz43e85572017-02-21 00:41:26 +0000387pub const B0: ::speed_t = 0o000000;
388pub const B50: ::speed_t = 0o000001;
389pub const B75: ::speed_t = 0o000002;
390pub const B110: ::speed_t = 0o000003;
391pub const B134: ::speed_t = 0o000004;
392pub const B150: ::speed_t = 0o000005;
393pub const B200: ::speed_t = 0o000006;
394pub const B300: ::speed_t = 0o000007;
395pub const B600: ::speed_t = 0o000010;
396pub const B1200: ::speed_t = 0o000011;
397pub const B1800: ::speed_t = 0o000012;
398pub const B2400: ::speed_t = 0o000013;
399pub const B4800: ::speed_t = 0o000014;
400pub const B9600: ::speed_t = 0o000015;
401pub const B19200: ::speed_t = 0o000016;
402pub const B38400: ::speed_t = 0o000017;
403pub const EXTA: ::speed_t = B19200;
404pub const EXTB: ::speed_t = B38400;
Zac Berkowitz62ec26a2017-02-24 18:17:22 +0000405pub const CBAUDEX: ::speed_t = 0o000020;
Zac Berkowitz43e85572017-02-21 00:41:26 +0000406pub const B57600: ::speed_t = 0o0020;
407pub const B115200: ::speed_t = 0o0021;
408pub const B230400: ::speed_t = 0o0022;
409pub const B460800: ::speed_t = 0o0023;
410pub const B500000: ::speed_t = 0o0024;
411pub const B576000: ::speed_t = 0o0025;
412pub const B921600: ::speed_t = 0o0026;
413pub const B1000000: ::speed_t = 0o0027;
414pub const B1152000: ::speed_t = 0o0030;
415pub const B1500000: ::speed_t = 0o0031;
416pub const B2000000: ::speed_t = 0o0032;
417pub const B2500000: ::speed_t = 0o0033;
418pub const B3000000: ::speed_t = 0o0034;
419pub const B3500000: ::speed_t = 0o0035;
420pub const B4000000: ::speed_t = 0o0036;
Zac Berkowitz43e85572017-02-21 00:41:26 +0000421
Alex Crichtona6b1c2d2016-08-26 23:11:45 -0700422pub const VEOL: usize = 6;
423pub const VEOL2: usize = 8;
424pub const VMIN: usize = 5;
425pub const IEXTEN: ::tcflag_t = 0x400;
426pub const TOSTOP: ::tcflag_t = 0x400000;
427pub const FLUSHO: ::tcflag_t = 0x800000;
428pub const EXTPROC: ::tcflag_t = 0x10000000;
429pub const TCGETS: ::c_ulong = 0x403c7413;
430pub const TCSETS: ::c_ulong = 0x803c7414;
431pub const TCSETSW: ::c_ulong = 0x803c7415;
432pub const TCSETSF: ::c_ulong = 0x803c7416;
433pub const TCGETA: ::c_ulong = 0x40147417;
434pub const TCSETA: ::c_ulong = 0x80147418;
435pub const TCSETAW: ::c_ulong = 0x80147419;
436pub const TCSETAF: ::c_ulong = 0x8014741c;
437pub const TCSBRK: ::c_ulong = 0x2000741d;
438pub const TCXONC: ::c_ulong = 0x2000741e;
439pub const TCFLSH: ::c_ulong = 0x2000741f;
440pub const TIOCINQ: ::c_ulong = 0x4004667f;
441pub const TIOCGPGRP: ::c_ulong = 0x40047477;
442pub const TIOCSPGRP: ::c_ulong = 0x80047476;
443pub const TIOCOUTQ: ::c_ulong = 0x40047473;
444pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
445pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
446pub const FIONREAD: ::c_ulong = 0x4004667f;