Skip to main content

libc_interface/unix/notbsd/linux/other/b64/
aarch64.rs

1//! AArch64-specific definitions for 64-bit linux-like values
2
3use pthread_mutex_t;
4
5pub type c_long = i64;
6pub type c_ulong = u64;
7pub type c_char = u8;
8pub type wchar_t = u32;
9pub type nlink_t = u32;
10pub type blksize_t = i32;
11pub type suseconds_t = i64;
12pub type __u64 = ::c_ulonglong;
13
14s! {
15    pub struct stat {
16        pub st_dev: ::dev_t,
17        pub st_ino: ::ino_t,
18        pub st_mode: ::mode_t,
19        pub st_nlink: ::nlink_t,
20        pub st_uid: ::uid_t,
21        pub st_gid: ::gid_t,
22        pub st_rdev: ::dev_t,
23        __pad1: ::dev_t,
24        pub st_size: ::off_t,
25        pub st_blksize: ::blksize_t,
26        __pad2: ::c_int,
27        pub st_blocks: ::blkcnt_t,
28        pub st_atime: ::time_t,
29        pub st_atime_nsec: ::c_long,
30        pub st_mtime: ::time_t,
31        pub st_mtime_nsec: ::c_long,
32        pub st_ctime: ::time_t,
33        pub st_ctime_nsec: ::c_long,
34        __unused: [::c_int; 2],
35    }
36
37    pub struct stat64 {
38        pub st_dev: ::dev_t,
39        pub st_ino: ::ino_t,
40        pub st_mode: ::mode_t,
41        pub st_nlink: ::nlink_t,
42        pub st_uid: ::uid_t,
43        pub st_gid: ::gid_t,
44        pub st_rdev: ::dev_t,
45        __pad1: ::dev_t,
46        pub st_size: ::off64_t,
47        pub st_blksize: ::blksize_t,
48        __pad2: ::c_int,
49        pub st_blocks: ::blkcnt64_t,
50        pub st_atime: ::time_t,
51        pub st_atime_nsec: ::c_long,
52        pub st_mtime: ::time_t,
53        pub st_mtime_nsec: ::c_long,
54        pub st_ctime: ::time_t,
55        pub st_ctime_nsec: ::c_long,
56        __unused: [::c_int; 2],
57    }
58
59    pub struct statfs64 {
60        pub f_type: ::__fsword_t,
61        pub f_bsize: ::__fsword_t,
62        pub f_blocks: u64,
63        pub f_bfree: u64,
64        pub f_bavail: u64,
65        pub f_files: u64,
66        pub f_ffree: u64,
67        pub f_fsid: ::fsid_t,
68        pub f_namelen: ::__fsword_t,
69        pub f_frsize: ::__fsword_t,
70        pub f_flags: ::__fsword_t,
71        pub f_spare: [::__fsword_t; 4],
72    }
73
74    pub struct statvfs {
75        pub f_bsize: ::c_ulong,
76        pub f_frsize: ::c_ulong,
77        pub f_blocks: ::fsblkcnt_t,
78        pub f_bfree: ::fsblkcnt_t,
79        pub f_bavail: ::fsblkcnt_t,
80        pub f_files: ::fsfilcnt_t,
81        pub f_ffree: ::fsfilcnt_t,
82        pub f_favail: ::fsfilcnt_t,
83        pub f_fsid: ::c_ulong,
84        pub f_flag: ::c_ulong,
85        pub f_namemax: ::c_ulong,
86        __f_spare: [::c_int; 6],
87    }
88
89    pub struct statvfs64 {
90        pub f_bsize: ::c_ulong,
91        pub f_frsize: ::c_ulong,
92        pub f_blocks: u64,
93        pub f_bfree: u64,
94        pub f_bavail: u64,
95        pub f_files: u64,
96        pub f_ffree: u64,
97        pub f_favail: u64,
98        pub f_fsid: ::c_ulong,
99        pub f_flag: ::c_ulong,
100        pub f_namemax: ::c_ulong,
101        __f_spare: [::c_int; 6],
102    }
103
104    pub struct pthread_attr_t {
105        __size: [u64; 8]
106    }
107
108    pub struct ipc_perm {
109        pub __key: ::key_t,
110        pub uid: ::uid_t,
111        pub gid: ::gid_t,
112        pub cuid: ::uid_t,
113        pub cgid: ::gid_t,
114        pub mode: ::c_uint,
115        pub __seq: ::c_ushort,
116        __pad1: ::c_ushort,
117        __unused1: ::c_ulong,
118        __unused2: ::c_ulong
119    }
120
121    pub struct shmid_ds {
122        pub shm_perm: ::ipc_perm,
123        pub shm_segsz: ::size_t,
124        pub shm_atime: ::time_t,
125        pub shm_dtime: ::time_t,
126        pub shm_ctime: ::time_t,
127        pub shm_cpid: ::pid_t,
128        pub shm_lpid: ::pid_t,
129        pub shm_nattch: ::shmatt_t,
130        __unused4: ::c_ulong,
131        __unused5: ::c_ulong
132    }
133
134    pub struct termios2 {
135        pub c_iflag: ::tcflag_t,
136        pub c_oflag: ::tcflag_t,
137        pub c_cflag: ::tcflag_t,
138        pub c_lflag: ::tcflag_t,
139        pub c_line: ::cc_t,
140        pub c_cc: [::cc_t; 19],
141        pub c_ispeed: ::speed_t,
142        pub c_ospeed: ::speed_t,
143    }
144}
145
146pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
147
148pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
149pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
150
151pub const RLIMIT_NOFILE: ::c_int = 7;
152pub const RLIMIT_NPROC: ::c_int = 6;
153
154pub const O_APPEND: ::c_int = 1024;
155pub const O_CREAT: ::c_int = 64;
156pub const O_EXCL: ::c_int = 128;
157pub const O_NOCTTY: ::c_int = 256;
158pub const O_NONBLOCK: ::c_int = 2048;
159pub const O_SYNC: ::c_int = 1052672;
160pub const O_RSYNC: ::c_int = 1052672;
161pub const O_DSYNC: ::c_int = 4096;
162pub const O_FSYNC: ::c_int = 0x101000;
163pub const O_NOATIME: ::c_int = 0o1000000;
164pub const O_PATH: ::c_int = 0o10000000;
165pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
166
167pub const MAP_GROWSDOWN: ::c_int = 0x0100;
168
169pub const EDEADLK: ::c_int = 35;
170pub const ENAMETOOLONG: ::c_int = 36;
171pub const ENOLCK: ::c_int = 37;
172pub const ENOSYS: ::c_int = 38;
173pub const ENOTEMPTY: ::c_int = 39;
174pub const ELOOP: ::c_int = 40;
175pub const ENOMSG: ::c_int = 42;
176pub const EIDRM: ::c_int = 43;
177pub const ECHRNG: ::c_int = 44;
178pub const EL2NSYNC: ::c_int = 45;
179pub const EL3HLT: ::c_int = 46;
180pub const EL3RST: ::c_int = 47;
181pub const ELNRNG: ::c_int = 48;
182pub const EUNATCH: ::c_int = 49;
183pub const ENOCSI: ::c_int = 50;
184pub const EL2HLT: ::c_int = 51;
185pub const EBADE: ::c_int = 52;
186pub const EBADR: ::c_int = 53;
187pub const EXFULL: ::c_int = 54;
188pub const ENOANO: ::c_int = 55;
189pub const EBADRQC: ::c_int = 56;
190pub const EBADSLT: ::c_int = 57;
191pub const EMULTIHOP: ::c_int = 72;
192pub const EOVERFLOW: ::c_int = 75;
193pub const ENOTUNIQ: ::c_int = 76;
194pub const EBADFD: ::c_int = 77;
195pub const EBADMSG: ::c_int = 74;
196pub const EREMCHG: ::c_int = 78;
197pub const ELIBACC: ::c_int = 79;
198pub const ELIBBAD: ::c_int = 80;
199pub const ELIBSCN: ::c_int = 81;
200pub const ELIBMAX: ::c_int = 82;
201pub const ELIBEXEC: ::c_int = 83;
202pub const EILSEQ: ::c_int = 84;
203pub const ERESTART: ::c_int = 85;
204pub const ESTRPIPE: ::c_int = 86;
205pub const EUSERS: ::c_int = 87;
206pub const ENOTSOCK: ::c_int = 88;
207pub const EDESTADDRREQ: ::c_int = 89;
208pub const EMSGSIZE: ::c_int = 90;
209pub const EPROTOTYPE: ::c_int = 91;
210pub const ENOPROTOOPT: ::c_int = 92;
211pub const EPROTONOSUPPORT: ::c_int = 93;
212pub const ESOCKTNOSUPPORT: ::c_int = 94;
213pub const EOPNOTSUPP: ::c_int = 95;
214pub const EPFNOSUPPORT: ::c_int = 96;
215pub const EAFNOSUPPORT: ::c_int = 97;
216pub const EADDRINUSE: ::c_int = 98;
217pub const EADDRNOTAVAIL: ::c_int = 99;
218pub const ENETDOWN: ::c_int = 100;
219pub const ENETUNREACH: ::c_int = 101;
220pub const ENETRESET: ::c_int = 102;
221pub const ECONNABORTED: ::c_int = 103;
222pub const ECONNRESET: ::c_int = 104;
223pub const ENOBUFS: ::c_int = 105;
224pub const EISCONN: ::c_int = 106;
225pub const ENOTCONN: ::c_int = 107;
226pub const ESHUTDOWN: ::c_int = 108;
227pub const ETOOMANYREFS: ::c_int = 109;
228pub const ETIMEDOUT: ::c_int = 110;
229pub const ECONNREFUSED: ::c_int = 111;
230pub const EHOSTDOWN: ::c_int = 112;
231pub const EHOSTUNREACH: ::c_int = 113;
232pub const EALREADY: ::c_int = 114;
233pub const EINPROGRESS: ::c_int = 115;
234pub const ESTALE: ::c_int = 116;
235pub const EDQUOT: ::c_int = 122;
236pub const ENOMEDIUM: ::c_int = 123;
237pub const EMEDIUMTYPE: ::c_int = 124;
238pub const ECANCELED: ::c_int = 125;
239pub const ENOKEY: ::c_int = 126;
240pub const EKEYEXPIRED: ::c_int = 127;
241pub const EKEYREVOKED: ::c_int = 128;
242pub const EKEYREJECTED: ::c_int = 129;
243pub const EOWNERDEAD: ::c_int = 130;
244pub const ENOTRECOVERABLE: ::c_int = 131;
245pub const EHWPOISON: ::c_int = 133;
246pub const ERFKILL: ::c_int = 132;
247
248pub const SOL_SOCKET: ::c_int = 1;
249
250pub const SO_REUSEADDR: ::c_int = 2;
251pub const SO_TYPE: ::c_int = 3;
252pub const SO_ERROR: ::c_int = 4;
253pub const SO_DONTROUTE: ::c_int = 5;
254pub const SO_BROADCAST: ::c_int = 6;
255pub const SO_SNDBUF: ::c_int = 7;
256pub const SO_RCVBUF: ::c_int = 8;
257pub const SO_SNDBUFFORCE: ::c_int = 32;
258pub const SO_RCVBUFFORCE: ::c_int = 33;
259pub const SO_KEEPALIVE: ::c_int = 9;
260pub const SO_OOBINLINE: ::c_int = 10;
261pub const SO_NO_CHECK: ::c_int = 11;
262pub const SO_PRIORITY: ::c_int = 12;
263pub const SO_LINGER: ::c_int = 13;
264pub const SO_BSDCOMPAT: ::c_int = 14;
265pub const SO_REUSEPORT: ::c_int = 15;
266pub const SO_PASSCRED: ::c_int = 16;
267pub const SO_PEERCRED: ::c_int = 17;
268pub const SO_RCVLOWAT: ::c_int = 18;
269pub const SO_SNDLOWAT: ::c_int = 19;
270pub const SO_RCVTIMEO: ::c_int = 20;
271pub const SO_SNDTIMEO: ::c_int = 21;
272pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22;
273pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23;
274pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24;
275pub const SO_BINDTODEVICE: ::c_int = 25;
276pub const SO_ATTACH_FILTER: ::c_int = 26;
277pub const SO_DETACH_FILTER: ::c_int = 27;
278pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER;
279pub const SO_PEERNAME: ::c_int = 28;
280pub const SO_TIMESTAMP: ::c_int = 29;
281pub const SO_ACCEPTCONN: ::c_int = 30;
282pub const SO_PEERSEC: ::c_int = 31;
283pub const SO_PASSSEC: ::c_int = 34;
284pub const SO_TIMESTAMPNS: ::c_int = 35;
285pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS;
286pub const SO_MARK: ::c_int = 36;
287pub const SO_TIMESTAMPING: ::c_int = 37;
288pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
289pub const SO_PROTOCOL: ::c_int = 38;
290pub const SO_DOMAIN: ::c_int = 39;
291pub const SO_RXQ_OVFL: ::c_int = 40;
292pub const SO_WIFI_STATUS: ::c_int = 41;
293pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS;
294pub const SO_PEEK_OFF: ::c_int = 42;
295pub const SO_NOFCS: ::c_int = 43;
296pub const SO_LOCK_FILTER: ::c_int = 44;
297pub const SO_SELECT_ERR_QUEUE: ::c_int = 45;
298pub const SO_BUSY_POLL: ::c_int = 46;
299pub const SO_MAX_PACING_RATE: ::c_int = 47;
300pub const SO_BPF_EXTENSIONS: ::c_int = 48;
301pub const SO_INCOMING_CPU: ::c_int = 49;
302pub const SO_ATTACH_BPF: ::c_int = 50;
303pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
304
305pub const SA_ONSTACK: ::c_int = 0x08000000;
306pub const SA_SIGINFO: ::c_int = 0x00000004;
307pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
308
309pub const SIGCHLD: ::c_int = 17;
310pub const SIGBUS: ::c_int = 7;
311pub const SIGUSR1: ::c_int = 10;
312pub const SIGUSR2: ::c_int = 12;
313pub const SIGCONT: ::c_int = 18;
314pub const SIGSTOP: ::c_int = 19;
315pub const SIGTSTP: ::c_int = 20;
316pub const SIGURG: ::c_int = 23;
317pub const SIGIO: ::c_int = 29;
318pub const SIGSYS: ::c_int = 31;
319pub const SIGSTKFLT: ::c_int = 16;
320pub const SIGUNUSED: ::c_int = 31;
321pub const SIGPOLL: ::c_int = 29;
322pub const SIGPWR: ::c_int = 30;
323pub const SIG_SETMASK: ::c_int = 2;
324pub const SIG_BLOCK: ::c_int = 0x000000;
325pub const SIG_UNBLOCK: ::c_int = 0x01;
326
327pub const POLLWRNORM: ::c_short = 0x100;
328pub const POLLWRBAND: ::c_short = 0x200;
329
330pub const O_ASYNC: ::c_int = 0x2000;
331pub const O_NDELAY: ::c_int = 0x800;
332
333pub const PTRACE_DETACH: ::c_uint = 17;
334
335pub const EFD_NONBLOCK: ::c_int = 0x800;
336
337pub const F_GETLK: ::c_int = 5;
338pub const F_GETOWN: ::c_int = 9;
339pub const F_SETOWN: ::c_int = 8;
340pub const F_SETLK: ::c_int = 6;
341pub const F_SETLKW: ::c_int = 7;
342
343pub const SFD_NONBLOCK: ::c_int = 0x0800;
344
345pub const TIOCEXCL: ::c_ulong = 0x540C;
346pub const TIOCNXCL: ::c_ulong = 0x540D;
347pub const TIOCSCTTY: ::c_ulong = 0x540E;
348pub const TIOCSTI: ::c_ulong = 0x5412;
349pub const TIOCMGET: ::c_ulong = 0x5415;
350pub const TIOCMBIS: ::c_ulong = 0x5416;
351pub const TIOCMBIC: ::c_ulong = 0x5417;
352pub const TIOCMSET: ::c_ulong = 0x5418;
353pub const TIOCCONS: ::c_ulong = 0x541D;
354
355pub const SFD_CLOEXEC: ::c_int = 0x080000;
356
357pub const NCCS: usize = 32;
358
359pub const O_TRUNC: ::c_int = 512;
360
361pub const O_CLOEXEC: ::c_int = 0x80000;
362
363pub const EBFONT: ::c_int = 59;
364pub const ENOSTR: ::c_int = 60;
365pub const ENODATA: ::c_int = 61;
366pub const ETIME: ::c_int = 62;
367pub const ENOSR: ::c_int = 63;
368pub const ENONET: ::c_int = 64;
369pub const ENOPKG: ::c_int = 65;
370pub const EREMOTE: ::c_int = 66;
371pub const ENOLINK: ::c_int = 67;
372pub const EADV: ::c_int = 68;
373pub const ESRMNT: ::c_int = 69;
374pub const ECOMM: ::c_int = 70;
375pub const EPROTO: ::c_int = 71;
376pub const EDOTDOT: ::c_int = 73;
377
378pub const SA_NODEFER: ::c_int = 0x40000000;
379pub const SA_RESETHAND: ::c_int = 0x80000000;
380pub const SA_RESTART: ::c_int = 0x10000000;
381pub const SA_NOCLDSTOP: ::c_int = 0x00000001;
382
383pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
384
385pub const EFD_CLOEXEC: ::c_int = 0x80000;
386
387pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 8;
388pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 48;
389pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 8;
390
391align_const! {
392    pub const PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP: ::pthread_mutex_t =
393        pthread_mutex_t {
394            size: [
395                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
396                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
397                0, 0, 0, 0, 0, 0,
398            ],
399        };
400    pub const PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP: ::pthread_mutex_t =
401        pthread_mutex_t {
402            size: [
403                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0,
404                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
405                0, 0, 0, 0, 0, 0,
406            ],
407        };
408    pub const PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP: ::pthread_mutex_t =
409        pthread_mutex_t {
410            size: [
411                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0,
412                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
413                0, 0, 0, 0, 0, 0,
414            ],
415        };
416}
417
418pub const O_DIRECT: ::c_int = 0x10000;
419pub const O_DIRECTORY: ::c_int = 0x4000;
420pub const O_NOFOLLOW: ::c_int = 0x8000;
421
422pub const MAP_LOCKED: ::c_int = 0x02000;
423pub const MAP_NORESERVE: ::c_int = 0x04000;
424
425pub const EDEADLOCK: ::c_int = 35;
426
427pub const FIOCLEX: ::c_ulong = 0x5451;
428pub const FIONBIO: ::c_ulong = 0x5421;
429
430pub const MCL_CURRENT: ::c_int = 0x0001;
431pub const MCL_FUTURE: ::c_int = 0x0002;
432
433pub const SIGSTKSZ: ::size_t = 16384;
434pub const MINSIGSTKSZ: ::size_t = 5120;
435pub const CBAUD: ::tcflag_t = 0o0010017;
436pub const TAB1: ::c_int = 0x00000800;
437pub const TAB2: ::c_int = 0x00001000;
438pub const TAB3: ::c_int = 0x00001800;
439pub const CR1: ::c_int  = 0x00000200;
440pub const CR2: ::c_int  = 0x00000400;
441pub const CR3: ::c_int  = 0x00000600;
442pub const FF1: ::c_int  = 0x00008000;
443pub const BS1: ::c_int  = 0x00002000;
444pub const VT1: ::c_int  = 0x00004000;
445pub const VWERASE: usize = 14;
446pub const VREPRINT: usize = 12;
447pub const VSUSP: usize = 10;
448pub const VSTART: usize = 8;
449pub const VSTOP: usize = 9;
450pub const VDISCARD: usize = 13;
451pub const VTIME: usize = 5;
452pub const IXON: ::tcflag_t = 0x00000400;
453pub const IXOFF: ::tcflag_t = 0x00001000;
454pub const ONLCR: ::tcflag_t = 0x4;
455pub const CSIZE: ::tcflag_t = 0x00000030;
456pub const CS6: ::tcflag_t = 0x00000010;
457pub const CS7: ::tcflag_t = 0x00000020;
458pub const CS8: ::tcflag_t = 0x00000030;
459pub const CSTOPB: ::tcflag_t = 0x00000040;
460pub const CREAD: ::tcflag_t = 0x00000080;
461pub const PARENB: ::tcflag_t = 0x00000100;
462pub const PARODD: ::tcflag_t = 0x00000200;
463pub const HUPCL: ::tcflag_t = 0x00000400;
464pub const CLOCAL: ::tcflag_t = 0x00000800;
465pub const ECHOKE: ::tcflag_t = 0x00000800;
466pub const ECHOE: ::tcflag_t = 0x00000010;
467pub const ECHOK: ::tcflag_t = 0x00000020;
468pub const ECHONL: ::tcflag_t = 0x00000040;
469pub const ECHOPRT: ::tcflag_t = 0x00000400;
470pub const ECHOCTL: ::tcflag_t = 0x00000200;
471pub const ISIG: ::tcflag_t = 0x00000001;
472pub const ICANON: ::tcflag_t = 0x00000002;
473pub const PENDIN: ::tcflag_t = 0x00004000;
474pub const NOFLSH: ::tcflag_t = 0x00000080;
475pub const CIBAUD: ::tcflag_t = 0o02003600000;
476pub const CBAUDEX: ::tcflag_t = 0o010000;
477pub const VSWTC: usize = 7;
478pub const OLCUC:  ::tcflag_t = 0o000002;
479pub const NLDLY:  ::tcflag_t = 0o000400;
480pub const CRDLY:  ::tcflag_t = 0o003000;
481pub const TABDLY: ::tcflag_t = 0o014000;
482pub const BSDLY:  ::tcflag_t = 0o020000;
483pub const FFDLY:  ::tcflag_t = 0o100000;
484pub const VTDLY:  ::tcflag_t = 0o040000;
485pub const XTABS:  ::tcflag_t = 0o014000;
486
487pub const B0: ::speed_t = 0o000000;
488pub const B50: ::speed_t = 0o000001;
489pub const B75: ::speed_t = 0o000002;
490pub const B110: ::speed_t = 0o000003;
491pub const B134: ::speed_t = 0o000004;
492pub const B150: ::speed_t = 0o000005;
493pub const B200: ::speed_t = 0o000006;
494pub const B300: ::speed_t = 0o000007;
495pub const B600: ::speed_t = 0o000010;
496pub const B1200: ::speed_t = 0o000011;
497pub const B1800: ::speed_t = 0o000012;
498pub const B2400: ::speed_t = 0o000013;
499pub const B4800: ::speed_t = 0o000014;
500pub const B9600: ::speed_t = 0o000015;
501pub const B19200: ::speed_t = 0o000016;
502pub const B38400: ::speed_t = 0o000017;
503pub const EXTA: ::speed_t = B19200;
504pub const EXTB: ::speed_t = B38400;
505pub const BOTHER: ::speed_t = 0o010000;
506pub const B57600: ::speed_t = 0o010001;
507pub const B115200: ::speed_t = 0o010002;
508pub const B230400: ::speed_t = 0o010003;
509pub const B460800: ::speed_t = 0o010004;
510pub const B500000: ::speed_t = 0o010005;
511pub const B576000: ::speed_t = 0o010006;
512pub const B921600: ::speed_t = 0o010007;
513pub const B1000000: ::speed_t = 0o010010;
514pub const B1152000: ::speed_t = 0o010011;
515pub const B1500000: ::speed_t = 0o010012;
516pub const B2000000: ::speed_t = 0o010013;
517pub const B2500000: ::speed_t = 0o010014;
518pub const B3000000: ::speed_t = 0o010015;
519pub const B3500000: ::speed_t = 0o010016;
520pub const B4000000: ::speed_t = 0o010017;
521
522pub const VEOL: usize = 11;
523pub const VEOL2: usize = 16;
524pub const VMIN: usize = 6;
525pub const IEXTEN: ::tcflag_t = 0x00008000;
526pub const TOSTOP: ::tcflag_t = 0x00000100;
527pub const FLUSHO: ::tcflag_t = 0x00001000;
528pub const EXTPROC: ::tcflag_t = 0x00010000;
529pub const TCGETS: ::c_ulong = 0x5401;
530pub const TCSETS: ::c_ulong = 0x5402;
531pub const TCSETSW: ::c_ulong = 0x5403;
532pub const TCSETSF: ::c_ulong = 0x5404;
533pub const TCGETA: ::c_ulong = 0x5405;
534pub const TCSETA: ::c_ulong = 0x5406;
535pub const TCSETAW: ::c_ulong = 0x5407;
536pub const TCSETAF: ::c_ulong = 0x5408;
537pub const TCSBRK: ::c_ulong = 0x5409;
538pub const TCXONC: ::c_ulong = 0x540A;
539pub const TCFLSH: ::c_ulong = 0x540B;
540pub const TIOCINQ: ::c_ulong = 0x541B;
541pub const TIOCGPGRP: ::c_ulong = 0x540F;
542pub const TIOCSPGRP: ::c_ulong = 0x5410;
543pub const TIOCOUTQ: ::c_ulong = 0x5411;
544pub const TIOCGWINSZ: ::c_ulong = 0x5413;
545pub const TIOCSWINSZ: ::c_ulong = 0x5414;
546pub const FIONREAD: ::c_ulong = 0x541B;
547
548// Syscall table
549pub const SYS_io_setup: ::c_long = 0;
550pub const SYS_io_destroy: ::c_long = 1;
551pub const SYS_io_submit: ::c_long = 2;
552pub const SYS_io_cancel: ::c_long = 3;
553pub const SYS_io_getevents: ::c_long = 4;
554pub const SYS_setxattr: ::c_long = 5;
555pub const SYS_lsetxattr: ::c_long = 6;
556pub const SYS_fsetxattr: ::c_long = 7;
557pub const SYS_getxattr: ::c_long = 8;
558pub const SYS_lgetxattr: ::c_long = 9;
559pub const SYS_fgetxattr: ::c_long = 10;
560pub const SYS_listxattr: ::c_long = 11;
561pub const SYS_llistxattr: ::c_long = 12;
562pub const SYS_flistxattr: ::c_long = 13;
563pub const SYS_removexattr: ::c_long = 14;
564pub const SYS_lremovexattr: ::c_long = 15;
565pub const SYS_fremovexattr: ::c_long = 16;
566pub const SYS_getcwd: ::c_long = 17;
567pub const SYS_lookup_dcookie: ::c_long = 18;
568pub const SYS_eventfd2: ::c_long = 19;
569pub const SYS_epoll_create1: ::c_long = 20;
570pub const SYS_epoll_ctl: ::c_long = 21;
571pub const SYS_epoll_pwait: ::c_long = 22;
572pub const SYS_dup: ::c_long = 23;
573pub const SYS_dup3: ::c_long = 24;
574pub const SYS_fcntl: ::c_long = 25;
575pub const SYS_inotify_init1: ::c_long = 26;
576pub const SYS_inotify_add_watch: ::c_long = 27;
577pub const SYS_inotify_rm_watch: ::c_long = 28;
578pub const SYS_ioctl: ::c_long = 29;
579pub const SYS_ioprio_set: ::c_long = 30;
580pub const SYS_ioprio_get: ::c_long = 31;
581pub const SYS_flock: ::c_long = 32;
582pub const SYS_mknodat: ::c_long = 33;
583pub const SYS_mkdirat: ::c_long = 34;
584pub const SYS_unlinkat: ::c_long = 35;
585pub const SYS_symlinkat: ::c_long = 36;
586pub const SYS_linkat: ::c_long = 37;
587pub const SYS_renameat: ::c_long = 38;
588pub const SYS_umount2: ::c_long = 39;
589pub const SYS_mount: ::c_long = 40;
590pub const SYS_pivot_root: ::c_long = 41;
591pub const SYS_nfsservctl: ::c_long = 42;
592pub const SYS_fallocate: ::c_long = 47;
593pub const SYS_faccessat: ::c_long = 48;
594pub const SYS_chdir: ::c_long = 49;
595pub const SYS_fchdir: ::c_long = 50;
596pub const SYS_chroot: ::c_long = 51;
597pub const SYS_fchmod: ::c_long = 52;
598pub const SYS_fchmodat: ::c_long = 53;
599pub const SYS_fchownat: ::c_long = 54;
600pub const SYS_fchown: ::c_long = 55;
601pub const SYS_openat: ::c_long = 56;
602pub const SYS_close: ::c_long = 57;
603pub const SYS_vhangup: ::c_long = 58;
604pub const SYS_pipe2: ::c_long = 59;
605pub const SYS_quotactl: ::c_long = 60;
606pub const SYS_getdents64: ::c_long = 61;
607pub const SYS_lseek: ::c_long = 62;
608pub const SYS_read: ::c_long = 63;
609pub const SYS_write: ::c_long = 64;
610pub const SYS_readv: ::c_long = 65;
611pub const SYS_writev: ::c_long = 66;
612pub const SYS_pread64: ::c_long = 67;
613pub const SYS_pwrite64: ::c_long = 68;
614pub const SYS_preadv: ::c_long = 69;
615pub const SYS_pwritev: ::c_long = 70;
616pub const SYS_pselect6: ::c_long = 72;
617pub const SYS_ppoll: ::c_long = 73;
618pub const SYS_signalfd4: ::c_long = 74;
619pub const SYS_vmsplice: ::c_long = 75;
620pub const SYS_splice: ::c_long = 76;
621pub const SYS_tee: ::c_long = 77;
622pub const SYS_readlinkat: ::c_long = 78;
623pub const SYS_newfstatat: ::c_long = 79;
624pub const SYS_fstat: ::c_long = 80;
625pub const SYS_sync: ::c_long = 81;
626pub const SYS_fsync: ::c_long = 82;
627pub const SYS_fdatasync: ::c_long = 83;
628pub const SYS_sync_file_range: ::c_long = 84;
629pub const SYS_timerfd_create: ::c_long = 85;
630pub const SYS_timerfd_settime: ::c_long = 86;
631pub const SYS_timerfd_gettime: ::c_long = 87;
632pub const SYS_utimensat: ::c_long = 88;
633pub const SYS_acct: ::c_long = 89;
634pub const SYS_capget: ::c_long = 90;
635pub const SYS_capset: ::c_long = 91;
636pub const SYS_personality: ::c_long = 92;
637pub const SYS_exit: ::c_long = 93;
638pub const SYS_exit_group: ::c_long = 94;
639pub const SYS_waitid: ::c_long = 95;
640pub const SYS_set_tid_address: ::c_long = 96;
641pub const SYS_unshare: ::c_long = 97;
642pub const SYS_futex: ::c_long = 98;
643pub const SYS_set_robust_list: ::c_long = 99;
644pub const SYS_get_robust_list: ::c_long = 100;
645pub const SYS_nanosleep: ::c_long = 101;
646pub const SYS_getitimer: ::c_long = 102;
647pub const SYS_setitimer: ::c_long = 103;
648pub const SYS_kexec_load: ::c_long = 104;
649pub const SYS_init_module: ::c_long = 105;
650pub const SYS_delete_module: ::c_long = 106;
651pub const SYS_timer_create: ::c_long = 107;
652pub const SYS_timer_gettime: ::c_long = 108;
653pub const SYS_timer_getoverrun: ::c_long = 109;
654pub const SYS_timer_settime: ::c_long = 110;
655pub const SYS_timer_delete: ::c_long = 111;
656pub const SYS_clock_settime: ::c_long = 112;
657pub const SYS_clock_gettime: ::c_long = 113;
658pub const SYS_clock_getres: ::c_long = 114;
659pub const SYS_clock_nanosleep: ::c_long = 115;
660pub const SYS_syslog: ::c_long = 116;
661pub const SYS_ptrace: ::c_long = 117;
662pub const SYS_sched_setparam: ::c_long = 118;
663pub const SYS_sched_setscheduler: ::c_long = 119;
664pub const SYS_sched_getscheduler: ::c_long = 120;
665pub const SYS_sched_getparam: ::c_long = 121;
666pub const SYS_sched_setaffinity: ::c_long = 122;
667pub const SYS_sched_getaffinity: ::c_long = 123;
668pub const SYS_sched_yield: ::c_long = 124;
669pub const SYS_sched_get_priority_max: ::c_long = 125;
670pub const SYS_sched_get_priority_min: ::c_long = 126;
671pub const SYS_sched_rr_get_interval: ::c_long = 127;
672pub const SYS_restart_syscall: ::c_long = 128;
673pub const SYS_kill: ::c_long = 129;
674pub const SYS_tkill: ::c_long = 130;
675pub const SYS_tgkill: ::c_long = 131;
676pub const SYS_sigaltstack: ::c_long = 132;
677pub const SYS_rt_sigsuspend: ::c_long = 133;
678pub const SYS_rt_sigaction: ::c_long = 134;
679pub const SYS_rt_sigprocmask: ::c_long = 135;
680pub const SYS_rt_sigpending: ::c_long = 136;
681pub const SYS_rt_sigtimedwait: ::c_long = 137;
682pub const SYS_rt_sigqueueinfo: ::c_long = 138;
683pub const SYS_rt_sigreturn: ::c_long = 139;
684pub const SYS_setpriority: ::c_long = 140;
685pub const SYS_getpriority: ::c_long = 141;
686pub const SYS_reboot: ::c_long = 142;
687pub const SYS_setregid: ::c_long = 143;
688pub const SYS_setgid: ::c_long = 144;
689pub const SYS_setreuid: ::c_long = 145;
690pub const SYS_setuid: ::c_long = 146;
691pub const SYS_setresuid: ::c_long = 147;
692pub const SYS_getresuid: ::c_long = 148;
693pub const SYS_setresgid: ::c_long = 149;
694pub const SYS_getresgid: ::c_long = 150;
695pub const SYS_setfsuid: ::c_long = 151;
696pub const SYS_setfsgid: ::c_long = 152;
697pub const SYS_times: ::c_long = 153;
698pub const SYS_setpgid: ::c_long = 154;
699pub const SYS_getpgid: ::c_long = 155;
700pub const SYS_getsid: ::c_long = 156;
701pub const SYS_setsid: ::c_long = 157;
702pub const SYS_getgroups: ::c_long = 158;
703pub const SYS_setgroups: ::c_long = 159;
704pub const SYS_uname: ::c_long = 160;
705pub const SYS_sethostname: ::c_long = 161;
706pub const SYS_setdomainname: ::c_long = 162;
707pub const SYS_getrlimit: ::c_long = 163;
708pub const SYS_setrlimit: ::c_long = 164;
709pub const SYS_getrusage: ::c_long = 165;
710pub const SYS_umask: ::c_long = 166;
711pub const SYS_prctl: ::c_long = 167;
712pub const SYS_getcpu: ::c_long = 168;
713pub const SYS_gettimeofday: ::c_long = 169;
714pub const SYS_settimeofday: ::c_long = 170;
715pub const SYS_adjtimex: ::c_long = 171;
716pub const SYS_getpid: ::c_long = 172;
717pub const SYS_getppid: ::c_long = 173;
718pub const SYS_getuid: ::c_long = 174;
719pub const SYS_geteuid: ::c_long = 175;
720pub const SYS_getgid: ::c_long = 176;
721pub const SYS_getegid: ::c_long = 177;
722pub const SYS_gettid: ::c_long = 178;
723pub const SYS_sysinfo: ::c_long = 179;
724pub const SYS_mq_open: ::c_long = 180;
725pub const SYS_mq_unlink: ::c_long = 181;
726pub const SYS_mq_timedsend: ::c_long = 182;
727pub const SYS_mq_timedreceive: ::c_long = 183;
728pub const SYS_mq_notify: ::c_long = 184;
729pub const SYS_mq_getsetattr: ::c_long = 185;
730pub const SYS_msgget: ::c_long = 186;
731pub const SYS_msgctl: ::c_long = 187;
732pub const SYS_msgrcv: ::c_long = 188;
733pub const SYS_msgsnd: ::c_long = 189;
734pub const SYS_semget: ::c_long = 190;
735pub const SYS_semctl: ::c_long = 191;
736pub const SYS_semtimedop: ::c_long = 192;
737pub const SYS_semop: ::c_long = 193;
738pub const SYS_shmget: ::c_long = 194;
739pub const SYS_shmctl: ::c_long = 195;
740pub const SYS_shmat: ::c_long = 196;
741pub const SYS_shmdt: ::c_long = 197;
742pub const SYS_socket: ::c_long = 198;
743pub const SYS_socketpair: ::c_long = 199;
744pub const SYS_bind: ::c_long = 200;
745pub const SYS_listen: ::c_long = 201;
746pub const SYS_accept: ::c_long = 202;
747pub const SYS_connect: ::c_long = 203;
748pub const SYS_getsockname: ::c_long = 204;
749pub const SYS_getpeername: ::c_long = 205;
750pub const SYS_sendto: ::c_long = 206;
751pub const SYS_recvfrom: ::c_long = 207;
752pub const SYS_setsockopt: ::c_long = 208;
753pub const SYS_getsockopt: ::c_long = 209;
754pub const SYS_shutdown: ::c_long = 210;
755pub const SYS_sendmsg: ::c_long = 211;
756pub const SYS_recvmsg: ::c_long = 212;
757pub const SYS_readahead: ::c_long = 213;
758pub const SYS_brk: ::c_long = 214;
759pub const SYS_munmap: ::c_long = 215;
760pub const SYS_mremap: ::c_long = 216;
761pub const SYS_add_key: ::c_long = 217;
762pub const SYS_request_key: ::c_long = 218;
763pub const SYS_keyctl: ::c_long = 219;
764pub const SYS_clone: ::c_long = 220;
765pub const SYS_execve: ::c_long = 221;
766pub const SYS_mmap: ::c_long = 222;
767pub const SYS_swapon: ::c_long = 224;
768pub const SYS_swapoff: ::c_long = 225;
769pub const SYS_mprotect: ::c_long = 226;
770pub const SYS_msync: ::c_long = 227;
771pub const SYS_mlock: ::c_long = 228;
772pub const SYS_munlock: ::c_long = 229;
773pub const SYS_mlockall: ::c_long = 230;
774pub const SYS_munlockall: ::c_long = 231;
775pub const SYS_mincore: ::c_long = 232;
776pub const SYS_madvise: ::c_long = 233;
777pub const SYS_remap_file_pages: ::c_long = 234;
778pub const SYS_mbind: ::c_long = 235;
779pub const SYS_get_mempolicy: ::c_long = 236;
780pub const SYS_set_mempolicy: ::c_long = 237;
781pub const SYS_migrate_pages: ::c_long = 238;
782pub const SYS_move_pages: ::c_long = 239;
783pub const SYS_rt_tgsigqueueinfo: ::c_long = 240;
784pub const SYS_perf_event_open: ::c_long = 241;
785pub const SYS_accept4: ::c_long = 242;
786pub const SYS_recvmmsg: ::c_long = 243;
787pub const SYS_arch_specific_syscall: ::c_long = 244;
788pub const SYS_wait4: ::c_long = 260;
789pub const SYS_prlimit64: ::c_long = 261;
790pub const SYS_fanotify_init: ::c_long = 262;
791pub const SYS_fanotify_mark: ::c_long = 263;
792pub const SYS_name_to_handle_at: ::c_long = 264;
793pub const SYS_open_by_handle_at: ::c_long = 265;
794pub const SYS_clock_adjtime: ::c_long = 266;
795pub const SYS_syncfs: ::c_long = 267;
796pub const SYS_setns: ::c_long = 268;
797pub const SYS_sendmmsg: ::c_long = 269;
798pub const SYS_process_vm_readv: ::c_long = 270;
799pub const SYS_process_vm_writev: ::c_long = 271;
800pub const SYS_kcmp: ::c_long = 272;
801pub const SYS_finit_module: ::c_long = 273;
802pub const SYS_sched_setattr: ::c_long = 274;
803pub const SYS_sched_getattr: ::c_long = 275;
804pub const SYS_renameat2: ::c_long = 276;
805pub const SYS_seccomp: ::c_long = 277;
806pub const SYS_getrandom: ::c_long = 278;
807pub const SYS_memfd_create: ::c_long = 279;
808pub const SYS_bpf: ::c_long = 280;
809pub const SYS_execveat: ::c_long = 281;
810pub const SYS_userfaultfd: ::c_long = 282;
811pub const SYS_membarrier: ::c_long = 283;
812pub const SYS_mlock2: ::c_long = 284;
813pub const SYS_copy_file_range: ::c_long = 285;
814pub const SYS_preadv2: ::c_long = 286;
815pub const SYS_pwritev2: ::c_long = 287;
816pub const SYS_pkey_mprotect: ::c_long = 288;
817pub const SYS_pkey_alloc: ::c_long = 289;
818pub const SYS_pkey_free: ::c_long = 290;
819pub const SYS_syscalls: ::c_long = 291;