]> git.proxmox.com Git - rustc.git/blame - src/vendor/libc/src/unix/notbsd/linux/mips/mod.rs
New upstream version 1.19.0+dfsg1
[rustc.git] / src / vendor / libc / src / unix / notbsd / linux / mips / mod.rs
CommitLineData
8bb4bdeb 1pub const CLONE_NEWCGROUP: ::c_int = 0x02000000;
9cc50fc6 2
8bb4bdeb 3pub const SFD_CLOEXEC: ::c_int = 0x080000;
9cc50fc6 4
8bb4bdeb 5pub const NCCS: usize = 32;
9cc50fc6 6
8bb4bdeb 7pub const O_TRUNC: ::c_int = 512;
9e0c209e 8
8bb4bdeb 9pub const O_CLOEXEC: ::c_int = 0x80000;
9cc50fc6 10
8bb4bdeb
XL
11pub const EBFONT: ::c_int = 59;
12pub const ENOSTR: ::c_int = 60;
13pub const ENODATA: ::c_int = 61;
14pub const ETIME: ::c_int = 62;
15pub const ENOSR: ::c_int = 63;
16pub const ENONET: ::c_int = 64;
17pub const ENOPKG: ::c_int = 65;
18pub const EREMOTE: ::c_int = 66;
19pub const ENOLINK: ::c_int = 67;
20pub const EADV: ::c_int = 68;
21pub const ESRMNT: ::c_int = 69;
22pub const ECOMM: ::c_int = 70;
23pub const EPROTO: ::c_int = 71;
24pub const EDOTDOT: ::c_int = 73;
9cc50fc6 25
8bb4bdeb
XL
26pub const SA_NODEFER: ::c_int = 0x40000000;
27pub const SA_RESETHAND: ::c_int = 0x80000000;
28pub const SA_RESTART: ::c_int = 0x10000000;
29pub const SA_NOCLDSTOP: ::c_int = 0x00000001;
3157f602 30
8bb4bdeb 31pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
5bcae85e 32
8bb4bdeb 33pub const EFD_CLOEXEC: ::c_int = 0x80000;
92a42be0
SL
34
35pub const BUFSIZ: ::c_uint = 8192;
36pub const TMP_MAX: ::c_uint = 238328;
37pub const FOPEN_MAX: ::c_uint = 16;
9e0c209e
SL
38pub const POSIX_FADV_DONTNEED: ::c_int = 4;
39pub const POSIX_FADV_NOREUSE: ::c_int = 5;
92a42be0
SL
40pub const POSIX_MADV_DONTNEED: ::c_int = 4;
41pub const _SC_2_C_VERSION: ::c_int = 96;
92a42be0 42pub const O_ACCMODE: ::c_int = 3;
9cc50fc6
SL
43pub const O_DIRECT: ::c_int = 0x8000;
44pub const O_DIRECTORY: ::c_int = 0x10000;
45pub const O_NOFOLLOW: ::c_int = 0x20000;
92a42be0
SL
46pub const ST_RELATIME: ::c_ulong = 4096;
47pub const NI_MAXHOST: ::socklen_t = 1025;
48
49pub const RLIMIT_NOFILE: ::c_int = 5;
50pub const RLIMIT_AS: ::c_int = 6;
51pub const RLIMIT_RSS: ::c_int = 7;
52pub const RLIMIT_NPROC: ::c_int = 8;
53pub const RLIMIT_MEMLOCK: ::c_int = 9;
9cc50fc6 54pub const RLIMIT_NLIMITS: ::c_int = 16;
92a42be0
SL
55
56pub const O_APPEND: ::c_int = 8;
57pub const O_CREAT: ::c_int = 256;
58pub const O_EXCL: ::c_int = 1024;
59pub const O_NOCTTY: ::c_int = 2048;
60pub const O_NONBLOCK: ::c_int = 128;
9cc50fc6
SL
61pub const O_SYNC: ::c_int = 0x4010;
62pub const O_RSYNC: ::c_int = 0x4010;
92a42be0 63pub const O_DSYNC: ::c_int = 0x10;
9cc50fc6
SL
64pub const O_FSYNC: ::c_int = 0x4010;
65pub const O_ASYNC: ::c_int = 0x1000;
66pub const O_NDELAY: ::c_int = 0x80;
92a42be0 67
7453a54e
SL
68pub const SOCK_NONBLOCK: ::c_int = 128;
69
92a42be0
SL
70pub const EDEADLK: ::c_int = 45;
71pub const ENAMETOOLONG: ::c_int = 78;
72pub const ENOLCK: ::c_int = 46;
73pub const ENOSYS: ::c_int = 89;
74pub const ENOTEMPTY: ::c_int = 93;
75pub const ELOOP: ::c_int = 90;
76pub const ENOMSG: ::c_int = 35;
77pub const EIDRM: ::c_int = 36;
78pub const ECHRNG: ::c_int = 37;
79pub const EL2NSYNC: ::c_int = 38;
80pub const EL3HLT: ::c_int = 39;
81pub const EL3RST: ::c_int = 40;
82pub const ELNRNG: ::c_int = 41;
83pub const EUNATCH: ::c_int = 42;
84pub const ENOCSI: ::c_int = 43;
85pub const EL2HLT: ::c_int = 44;
86pub const EBADE: ::c_int = 50;
87pub const EBADR: ::c_int = 51;
88pub const EXFULL: ::c_int = 52;
89pub const ENOANO: ::c_int = 53;
90pub const EBADRQC: ::c_int = 54;
91pub const EBADSLT: ::c_int = 55;
92pub const EDEADLOCK: ::c_int = 56;
93pub const EMULTIHOP: ::c_int = 74;
94pub const EOVERFLOW: ::c_int = 79;
95pub const ENOTUNIQ: ::c_int = 80;
96pub const EBADFD: ::c_int = 81;
97pub const EBADMSG: ::c_int = 77;
98pub const EREMCHG: ::c_int = 82;
99pub const ELIBACC: ::c_int = 83;
100pub const ELIBBAD: ::c_int = 84;
101pub const ELIBSCN: ::c_int = 85;
102pub const ELIBMAX: ::c_int = 86;
103pub const ELIBEXEC: ::c_int = 87;
104pub const EILSEQ: ::c_int = 88;
105pub const ERESTART: ::c_int = 91;
106pub const ESTRPIPE: ::c_int = 92;
107pub const EUSERS: ::c_int = 94;
108pub const ENOTSOCK: ::c_int = 95;
109pub const EDESTADDRREQ: ::c_int = 96;
110pub const EMSGSIZE: ::c_int = 97;
111pub const EPROTOTYPE: ::c_int = 98;
112pub const ENOPROTOOPT: ::c_int = 99;
113pub const EPROTONOSUPPORT: ::c_int = 120;
114pub const ESOCKTNOSUPPORT: ::c_int = 121;
115pub const EOPNOTSUPP: ::c_int = 122;
8bb4bdeb 116pub const ENOTSUP: ::c_int = EOPNOTSUPP;
92a42be0
SL
117pub const EPFNOSUPPORT: ::c_int = 123;
118pub const EAFNOSUPPORT: ::c_int = 124;
119pub const EADDRINUSE: ::c_int = 125;
120pub const EADDRNOTAVAIL: ::c_int = 126;
121pub const ENETDOWN: ::c_int = 127;
122pub const ENETUNREACH: ::c_int = 128;
123pub const ENETRESET: ::c_int = 129;
124pub const ECONNABORTED: ::c_int = 130;
125pub const ECONNRESET: ::c_int = 131;
126pub const ENOBUFS: ::c_int = 132;
127pub const EISCONN: ::c_int = 133;
128pub const ENOTCONN: ::c_int = 134;
129pub const ESHUTDOWN: ::c_int = 143;
130pub const ETOOMANYREFS: ::c_int = 144;
131pub const ETIMEDOUT: ::c_int = 145;
132pub const ECONNREFUSED: ::c_int = 146;
133pub const EHOSTDOWN: ::c_int = 147;
134pub const EHOSTUNREACH: ::c_int = 148;
135pub const EALREADY: ::c_int = 149;
136pub const EINPROGRESS: ::c_int = 150;
137pub const ESTALE: ::c_int = 151;
138pub const EUCLEAN: ::c_int = 135;
139pub const ENOTNAM: ::c_int = 137;
140pub const ENAVAIL: ::c_int = 138;
141pub const EISNAM: ::c_int = 139;
142pub const EREMOTEIO: ::c_int = 140;
143pub const EDQUOT: ::c_int = 1133;
144pub const ENOMEDIUM: ::c_int = 159;
145pub const EMEDIUMTYPE: ::c_int = 160;
146pub const ECANCELED: ::c_int = 158;
147pub const ENOKEY: ::c_int = 161;
148pub const EKEYEXPIRED: ::c_int = 162;
149pub const EKEYREVOKED: ::c_int = 163;
150pub const EKEYREJECTED: ::c_int = 164;
151pub const EOWNERDEAD: ::c_int = 165;
152pub const ENOTRECOVERABLE: ::c_int = 166;
153pub const ERFKILL: ::c_int = 167;
154
54a0048b
SL
155pub const LC_PAPER: ::c_int = 7;
156pub const LC_NAME: ::c_int = 8;
157pub const LC_ADDRESS: ::c_int = 9;
158pub const LC_TELEPHONE: ::c_int = 10;
159pub const LC_MEASUREMENT: ::c_int = 11;
160pub const LC_IDENTIFICATION: ::c_int = 12;
a7813a04
XL
161pub const LC_PAPER_MASK: ::c_int = (1 << LC_PAPER);
162pub const LC_NAME_MASK: ::c_int = (1 << LC_NAME);
163pub const LC_ADDRESS_MASK: ::c_int = (1 << LC_ADDRESS);
164pub const LC_TELEPHONE_MASK: ::c_int = (1 << LC_TELEPHONE);
165pub const LC_MEASUREMENT_MASK: ::c_int = (1 << LC_MEASUREMENT);
166pub const LC_IDENTIFICATION_MASK: ::c_int = (1 << LC_IDENTIFICATION);
167pub const LC_ALL_MASK: ::c_int = ::LC_CTYPE_MASK
168 | ::LC_NUMERIC_MASK
169 | ::LC_TIME_MASK
170 | ::LC_COLLATE_MASK
171 | ::LC_MONETARY_MASK
172 | ::LC_MESSAGES_MASK
173 | LC_PAPER_MASK
174 | LC_NAME_MASK
175 | LC_ADDRESS_MASK
176 | LC_TELEPHONE_MASK
177 | LC_MEASUREMENT_MASK
178 | LC_IDENTIFICATION_MASK;
54a0048b 179
92a42be0
SL
180pub const MAP_NORESERVE: ::c_int = 0x400;
181pub const MAP_ANON: ::c_int = 0x800;
182pub const MAP_ANONYMOUS: ::c_int = 0x800;
183pub const MAP_GROWSDOWN: ::c_int = 0x1000;
184pub const MAP_DENYWRITE: ::c_int = 0x2000;
185pub const MAP_EXECUTABLE: ::c_int = 0x4000;
186pub const MAP_LOCKED: ::c_int = 0x8000;
187pub const MAP_POPULATE: ::c_int = 0x10000;
188pub const MAP_NONBLOCK: ::c_int = 0x20000;
54a0048b 189pub const MAP_STACK: ::c_int = 0x40000;
92a42be0
SL
190
191pub const SOCK_STREAM: ::c_int = 2;
192pub const SOCK_DGRAM: ::c_int = 1;
3157f602 193pub const SOCK_SEQPACKET: ::c_int = 5;
92a42be0
SL
194
195pub const SOL_SOCKET: ::c_int = 0xffff;
196
8bb4bdeb
XL
197pub const SO_REUSEADDR: ::c_int = 0x0004;
198pub const SO_KEEPALIVE: ::c_int = 0x0008;
199pub const SO_DONTROUTE: ::c_int = 0x0010;
200pub const SO_BROADCAST: ::c_int = 0x0020;
201pub const SO_LINGER: ::c_int = 0x0080;
202pub const SO_OOBINLINE: ::c_int = 0x0100;
203pub const SO_REUSEPORT: ::c_int = 0x0200;
204pub const SO_TYPE: ::c_int = 0x1008;
205pub const SO_STYLE: ::c_int = SO_TYPE;
206pub const SO_ERROR: ::c_int = 0x1007;
207pub const SO_SNDBUF: ::c_int = 0x1001;
208pub const SO_RCVBUF: ::c_int = 0x1002;
209pub const SO_SNDLOWAT: ::c_int = 0x1003;
210pub const SO_RCVLOWAT: ::c_int = 0x1004;
211pub const SO_SNDTIMEO: ::c_int = 0x1005;
212pub const SO_RCVTIMEO: ::c_int = 0x1006;
213pub const SO_ACCEPTCONN: ::c_int = 0x1009;
214pub const SO_PROTOCOL: ::c_int = 0x1028;
215pub const SO_DOMAIN: ::c_int = 0x1029;
216pub const SO_NO_CHECK: ::c_int = 11;
217pub const SO_PRIORITY: ::c_int = 12;
218pub const SO_BSDCOMPAT: ::c_int = 14;
219pub const SO_PASSCRED: ::c_int = 17;
220pub const SO_PEERCRED: ::c_int = 18;
221pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22;
222pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23;
223pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24;
224pub const SO_BINDTODEVICE: ::c_int = 25;
225pub const SO_ATTACH_FILTER: ::c_int = 26;
226pub const SO_DETACH_FILTER: ::c_int = 27;
227pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER;
228pub const SO_PEERNAME: ::c_int = 28;
229pub const SO_TIMESTAMP: ::c_int = 29;
230pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
231pub const SO_PEERSEC: ::c_int = 30;
232pub const SO_SNDBUFFORCE: ::c_int = 31;
233pub const SO_RCVBUFFORCE: ::c_int = 33;
234pub const SO_PASSSEC: ::c_int = 34;
235pub const SO_TIMESTAMPNS: ::c_int = 35;
236pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS;
237pub const SO_MARK: ::c_int = 36;
238pub const SO_TIMESTAMPING: ::c_int = 37;
239pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
240pub const SO_RXQ_OVFL: ::c_int = 40;
241pub const SO_WIFI_STATUS: ::c_int = 41;
242pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS;
243pub const SO_PEEK_OFF: ::c_int = 42;
244pub const SO_NOFCS: ::c_int = 43;
245pub const SO_LOCK_FILTER: ::c_int = 44;
246pub const SO_SELECT_ERR_QUEUE: ::c_int = 45;
247pub const SO_BUSY_POLL: ::c_int = 46;
248pub const SO_MAX_PACING_RATE: ::c_int = 47;
249pub const SO_BPF_EXTENSIONS: ::c_int = 48;
250pub const SO_INCOMING_CPU: ::c_int = 49;
251pub const SO_ATTACH_BPF: ::c_int = 50;
252pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
92a42be0
SL
253
254pub const FIOCLEX: ::c_ulong = 0x6601;
255pub const FIONBIO: ::c_ulong = 0x667e;
256
9cc50fc6
SL
257pub const SA_ONSTACK: ::c_int = 0x08000000;
258pub const SA_SIGINFO: ::c_int = 0x00000008;
259pub const SA_NOCLDWAIT: ::c_int = 0x00010000;
92a42be0
SL
260
261pub const SIGCHLD: ::c_int = 18;
262pub const SIGBUS: ::c_int = 10;
9cc50fc6
SL
263pub const SIGTTIN: ::c_int = 26;
264pub const SIGTTOU: ::c_int = 27;
265pub const SIGXCPU: ::c_int = 30;
266pub const SIGXFSZ: ::c_int = 31;
267pub const SIGVTALRM: ::c_int = 28;
268pub const SIGPROF: ::c_int = 29;
269pub const SIGWINCH: ::c_int = 20;
270pub const SIGUSR1: ::c_int = 16;
271pub const SIGUSR2: ::c_int = 17;
272pub const SIGCONT: ::c_int = 25;
273pub const SIGSTOP: ::c_int = 23;
274pub const SIGTSTP: ::c_int = 24;
275pub const SIGURG: ::c_int = 21;
276pub const SIGIO: ::c_int = 22;
277pub const SIGSYS: ::c_int = 12;
278pub const SIGPOLL: ::c_int = 22;
279pub const SIGPWR: ::c_int = 19;
92a42be0 280pub const SIG_SETMASK: ::c_int = 3;
9cc50fc6
SL
281pub const SIG_BLOCK: ::c_int = 0x1;
282pub const SIG_UNBLOCK: ::c_int = 0x2;
283
9e0c209e
SL
284pub const POLLRDNORM: ::c_short = 0x040;
285pub const POLLWRNORM: ::c_short = 0x004;
286pub const POLLRDBAND: ::c_short = 0x080;
287pub const POLLWRBAND: ::c_short = 0x100;
288
92a42be0
SL
289pub const PTHREAD_STACK_MIN: ::size_t = 131072;
290
9cc50fc6
SL
291pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
292pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
293pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;
294pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45;
295pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53;
296pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53;
297pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
298pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
299pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
300pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6;
301pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660;
302pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6;
303pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f;
304pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f;
305pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468;
306pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478;
307pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44;
308pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c;
309pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969;
310pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1;
311pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0;
312pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f;
313pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973;
314pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
315pub const TMPFS_MAGIC: ::c_long = 0x01021994;
316pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
317
318pub const VEOF: usize = 16;
319pub const VEOL: usize = 17;
320pub const VEOL2: usize = 6;
321pub const VMIN: usize = 4;
322pub const IEXTEN: ::tcflag_t = 0x00000100;
323pub const TOSTOP: ::tcflag_t = 0x00008000;
324pub const FLUSHO: ::tcflag_t = 0x00002000;
7cac9316 325pub const EXTPROC: ::tcflag_t = 0o200000;
9cc50fc6
SL
326pub const TCSANOW: ::c_int = 0x540e;
327pub const TCSADRAIN: ::c_int = 0x540f;
328pub const TCSAFLUSH: ::c_int = 0x5410;
329
330pub const CPU_SETSIZE: ::c_int = 0x400;
331
332pub const PTRACE_TRACEME: ::c_uint = 0;
333pub const PTRACE_PEEKTEXT: ::c_uint = 1;
334pub const PTRACE_PEEKDATA: ::c_uint = 2;
335pub const PTRACE_PEEKUSER: ::c_uint = 3;
336pub const PTRACE_POKETEXT: ::c_uint = 4;
337pub const PTRACE_POKEDATA: ::c_uint = 5;
338pub const PTRACE_POKEUSER: ::c_uint = 6;
339pub const PTRACE_CONT: ::c_uint = 7;
340pub const PTRACE_KILL: ::c_uint = 8;
341pub const PTRACE_SINGLESTEP: ::c_uint = 9;
342pub const PTRACE_ATTACH: ::c_uint = 16;
343pub const PTRACE_DETACH: ::c_uint = 17;
344pub const PTRACE_SYSCALL: ::c_uint = 24;
345pub const PTRACE_SETOPTIONS: ::c_uint = 0x4200;
346pub const PTRACE_GETEVENTMSG: ::c_uint = 0x4201;
347pub const PTRACE_GETSIGINFO: ::c_uint = 0x4202;
348pub const PTRACE_SETSIGINFO: ::c_uint = 0x4203;
349pub const PTRACE_GETFPREGS: ::c_uint = 14;
350pub const PTRACE_SETFPREGS: ::c_uint = 15;
351pub const PTRACE_GETFPXREGS: ::c_uint = 18;
352pub const PTRACE_SETFPXREGS: ::c_uint = 19;
353pub const PTRACE_GETREGS: ::c_uint = 12;
354pub const PTRACE_SETREGS: ::c_uint = 13;
355
54a0048b
SL
356pub const MAP_HUGETLB: ::c_int = 0x080000;
357
9cc50fc6
SL
358pub const EFD_NONBLOCK: ::c_int = 0x80;
359
360pub const F_GETLK: ::c_int = 14;
361pub const F_GETOWN: ::c_int = 23;
362pub const F_SETOWN: ::c_int = 24;
7453a54e
SL
363pub const F_SETLK: ::c_int = 6;
364pub const F_SETLKW: ::c_int = 7;
9cc50fc6
SL
365
366pub const SFD_NONBLOCK: ::c_int = 0x80;
367
368pub const TCGETS: ::c_ulong = 0x540d;
369pub const TCSETS: ::c_ulong = 0x540e;
370pub const TCSETSW: ::c_ulong = 0x540f;
371pub const TCSETSF: ::c_ulong = 0x5410;
372pub const TCGETA: ::c_ulong = 0x5401;
373pub const TCSETA: ::c_ulong = 0x5402;
374pub const TCSETAW: ::c_ulong = 0x5403;
375pub const TCSETAF: ::c_ulong = 0x5404;
376pub const TCSBRK: ::c_ulong = 0x5405;
377pub const TCXONC: ::c_ulong = 0x5406;
378pub const TCFLSH: ::c_ulong = 0x5407;
379pub const TIOCGSOFTCAR: ::c_ulong = 0x5481;
380pub const TIOCSSOFTCAR: ::c_ulong = 0x5482;
381pub const TIOCINQ: ::c_ulong = 0x467f;
382pub const TIOCLINUX: ::c_ulong = 0x5483;
383pub const TIOCGSERIAL: ::c_ulong = 0x5484;
384pub const TIOCEXCL: ::c_ulong = 0x740d;
385pub const TIOCNXCL: ::c_ulong = 0x740e;
386pub const TIOCSCTTY: ::c_ulong = 0x5480;
387pub const TIOCGPGRP: ::c_ulong = 0x40047477;
388pub const TIOCSPGRP: ::c_ulong = 0x80047476;
389pub const TIOCOUTQ: ::c_ulong = 0x7472;
390pub const TIOCSTI: ::c_ulong = 0x5472;
391pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
392pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
393pub const TIOCMGET: ::c_ulong = 0x741d;
394pub const TIOCMBIS: ::c_ulong = 0x741b;
395pub const TIOCMBIC: ::c_ulong = 0x741c;
396pub const TIOCMSET: ::c_ulong = 0x741a;
397pub const FIONREAD: ::c_ulong = 0x467f;
398pub const TIOCCONS: ::c_ulong = 0x80047478;
399
7453a54e
SL
400pub const RTLD_DEEPBIND: ::c_int = 0x10;
401pub const RTLD_GLOBAL: ::c_int = 0x4;
402pub const RTLD_NOLOAD: ::c_int = 0x8;
403
5bcae85e
SL
404pub const LINUX_REBOOT_MAGIC1: ::c_int = 0xfee1dead;
405pub const LINUX_REBOOT_MAGIC2: ::c_int = 672274793;
406pub const LINUX_REBOOT_MAGIC2A: ::c_int = 85072278;
407pub const LINUX_REBOOT_MAGIC2B: ::c_int = 369367448;
408pub const LINUX_REBOOT_MAGIC2C: ::c_int = 537993216;
409
410pub const LINUX_REBOOT_CMD_RESTART: ::c_int = 0x01234567;
411pub const LINUX_REBOOT_CMD_HALT: ::c_int = 0xCDEF0123;
412pub const LINUX_REBOOT_CMD_CAD_ON: ::c_int = 0x89ABCDEF;
413pub const LINUX_REBOOT_CMD_CAD_OFF: ::c_int = 0x00000000;
414pub const LINUX_REBOOT_CMD_POWER_OFF: ::c_int = 0x4321FEDC;
415pub const LINUX_REBOOT_CMD_RESTART2: ::c_int = 0xA1B2C3D4;
416pub const LINUX_REBOOT_CMD_SW_SUSPEND: ::c_int = 0xD000FCE2;
417pub const LINUX_REBOOT_CMD_KEXEC: ::c_int = 0x45584543;
418
9e0c209e
SL
419pub const MCL_CURRENT: ::c_int = 0x0001;
420pub const MCL_FUTURE: ::c_int = 0x0002;
421
422pub const SIGSTKSZ: ::size_t = 8192;
7cac9316 423pub const MINSIGSTKSZ: ::size_t = 2048;
9e0c209e
SL
424pub const CBAUD: ::tcflag_t = 0o0010017;
425pub const TAB1: ::c_int = 0x00000800;
426pub const TAB2: ::c_int = 0x00001000;
427pub const TAB3: ::c_int = 0x00001800;
428pub const CR1: ::c_int = 0x00000200;
429pub const CR2: ::c_int = 0x00000400;
430pub const CR3: ::c_int = 0x00000600;
431pub const FF1: ::c_int = 0x00008000;
432pub const BS1: ::c_int = 0x00002000;
433pub const VT1: ::c_int = 0x00004000;
434pub const VWERASE: usize = 14;
435pub const VREPRINT: usize = 12;
436pub const VSUSP: usize = 10;
437pub const VSTART: usize = 8;
438pub const VSTOP: usize = 9;
439pub const VDISCARD: usize = 13;
440pub const VTIME: usize = 5;
441pub const IXON: ::tcflag_t = 0x00000400;
442pub const IXOFF: ::tcflag_t = 0x00001000;
443pub const ONLCR: ::tcflag_t = 0x4;
444pub const CSIZE: ::tcflag_t = 0x00000030;
445pub const CS6: ::tcflag_t = 0x00000010;
446pub const CS7: ::tcflag_t = 0x00000020;
447pub const CS8: ::tcflag_t = 0x00000030;
448pub const CSTOPB: ::tcflag_t = 0x00000040;
449pub const CREAD: ::tcflag_t = 0x00000080;
450pub const PARENB: ::tcflag_t = 0x00000100;
451pub const PARODD: ::tcflag_t = 0x00000200;
452pub const HUPCL: ::tcflag_t = 0x00000400;
453pub const CLOCAL: ::tcflag_t = 0x00000800;
454pub const ECHOKE: ::tcflag_t = 0x00000800;
455pub const ECHOE: ::tcflag_t = 0x00000010;
456pub const ECHOK: ::tcflag_t = 0x00000020;
457pub const ECHONL: ::tcflag_t = 0x00000040;
458pub const ECHOPRT: ::tcflag_t = 0x00000400;
459pub const ECHOCTL: ::tcflag_t = 0x00000200;
460pub const ISIG: ::tcflag_t = 0x00000001;
461pub const ICANON: ::tcflag_t = 0x00000002;
462pub const PENDIN: ::tcflag_t = 0x00004000;
463pub const NOFLSH: ::tcflag_t = 0x00000080;
464
8bb4bdeb
XL
465pub const B0: ::speed_t = 0o000000;
466pub const B50: ::speed_t = 0o000001;
467pub const B75: ::speed_t = 0o000002;
468pub const B110: ::speed_t = 0o000003;
469pub const B134: ::speed_t = 0o000004;
470pub const B150: ::speed_t = 0o000005;
471pub const B200: ::speed_t = 0o000006;
472pub const B300: ::speed_t = 0o000007;
473pub const B600: ::speed_t = 0o000010;
474pub const B1200: ::speed_t = 0o000011;
475pub const B1800: ::speed_t = 0o000012;
476pub const B2400: ::speed_t = 0o000013;
477pub const B4800: ::speed_t = 0o000014;
478pub const B9600: ::speed_t = 0o000015;
479pub const B19200: ::speed_t = 0o000016;
480pub const B38400: ::speed_t = 0o000017;
481pub const EXTA: ::speed_t = B19200;
482pub const EXTB: ::speed_t = B38400;
483pub const B57600: ::speed_t = 0o010001;
484pub const B115200: ::speed_t = 0o010002;
485pub const B230400: ::speed_t = 0o010003;
486pub const B460800: ::speed_t = 0o010004;
487pub const B500000: ::speed_t = 0o010005;
488pub const B576000: ::speed_t = 0o010006;
489pub const B921600: ::speed_t = 0o010007;
490pub const B1000000: ::speed_t = 0o010010;
491pub const B1152000: ::speed_t = 0o010011;
492pub const B1500000: ::speed_t = 0o010012;
493pub const B2000000: ::speed_t = 0o010013;
494pub const B2500000: ::speed_t = 0o010014;
495pub const B3000000: ::speed_t = 0o010015;
496pub const B3500000: ::speed_t = 0o010016;
497pub const B4000000: ::speed_t = 0o010017;
498
499cfg_if! {
500 if #[cfg(target_arch = "mips")] {
501 mod mips32;
502 pub use self::mips32::*;
503 } else if #[cfg(target_arch = "mips64")] {
504 mod mips64;
505 pub use self::mips64::*;
506 } else {
507 // Unknown target_arch
508 }
92a42be0 509}