]> git.proxmox.com Git - rustc.git/blame - src/vendor/libc/src/unix/notbsd/linux/musl/b32/mips.rs
New upstream version 1.21.0+dfsg1
[rustc.git] / src / vendor / libc / src / unix / notbsd / linux / musl / b32 / mips.rs
CommitLineData
476ff2be
SL
1pub type c_char = i8;
2pub type wchar_t = ::c_int;
3
4s! {
5 pub struct stat {
6 pub st_dev: ::dev_t,
7 __st_padding1: [::c_long; 2],
8 pub st_ino: ::ino_t,
9 pub st_mode: ::mode_t,
10 pub st_nlink: ::nlink_t,
11 pub st_uid: ::uid_t,
12 pub st_gid: ::gid_t,
13 pub st_rdev: ::dev_t,
14 __st_padding2: [::c_long; 2],
15 pub st_size: ::off_t,
16 pub st_atime: ::time_t,
17 pub st_atime_nsec: ::c_long,
18 pub st_mtime: ::time_t,
19 pub st_mtime_nsec: ::c_long,
20 pub st_ctime: ::time_t,
21 pub st_ctime_nsec: ::c_long,
22 pub st_blksize: ::blksize_t,
23 __st_padding3: ::c_long,
24 pub st_blocks: ::blkcnt_t,
25 __st_padding4: [::c_long; 14],
26 }
27
28 pub struct stat64 {
29 pub st_dev: ::dev_t,
30 __st_padding1: [::c_long; 2],
31 pub st_ino: ::ino64_t,
32 pub st_mode: ::mode_t,
33 pub st_nlink: ::nlink_t,
34 pub st_uid: ::uid_t,
35 pub st_gid: ::gid_t,
36 pub st_rdev: ::dev_t,
37 __st_padding2: [::c_long; 2],
38 pub st_size: ::off_t,
39 pub st_atime: ::time_t,
40 pub st_atime_nsec: ::c_long,
41 pub st_mtime: ::time_t,
42 pub st_mtime_nsec: ::c_long,
43 pub st_ctime: ::time_t,
44 pub st_ctime_nsec: ::c_long,
45 pub st_blksize: ::blksize_t,
46 __st_padding3: ::c_long,
47 pub st_blocks: ::blkcnt64_t,
48 __st_padding4: [::c_long; 14],
49 }
50
51 pub struct stack_t {
52 pub ss_sp: *mut ::c_void,
53 pub ss_size: ::size_t,
54 pub ss_flags: ::c_int,
55 }
56
57 pub struct shmid_ds {
58 pub shm_perm: ::ipc_perm,
59 pub shm_segsz: ::size_t,
60 pub shm_atime: ::time_t,
61 pub shm_dtime: ::time_t,
62 pub shm_ctime: ::time_t,
63 pub shm_cpid: ::pid_t,
64 pub shm_lpid: ::pid_t,
65 pub shm_nattch: ::c_ulong,
66 __pad1: ::c_ulong,
67 __pad2: ::c_ulong,
68 }
69
70 pub struct msqid_ds {
71 pub msg_perm: ::ipc_perm,
72 #[cfg(target_endian = "big")]
73 __unused1: ::c_int,
74 pub msg_stime: ::time_t,
75 #[cfg(target_endian = "little")]
76 __unused1: ::c_int,
77 #[cfg(target_endian = "big")]
78 __unused2: ::c_int,
79 pub msg_rtime: ::time_t,
80 #[cfg(target_endian = "little")]
81 __unused2: ::c_int,
82 #[cfg(target_endian = "big")]
83 __unused3: ::c_int,
84 pub msg_ctime: ::time_t,
85 #[cfg(target_endian = "little")]
86 __unused3: ::c_int,
87 __msg_cbytes: ::c_ulong,
88 pub msg_qnum: ::msgqnum_t,
89 pub msg_qbytes: ::msglen_t,
90 pub msg_lspid: ::pid_t,
91 pub msg_lrpid: ::pid_t,
92 __pad1: ::c_ulong,
93 __pad2: ::c_ulong,
94 }
95
96 pub struct statfs {
97 pub f_type: ::c_ulong,
98 pub f_bsize: ::c_ulong,
99 pub f_frsize: ::c_ulong,
100 pub f_blocks: ::fsblkcnt_t,
101 pub f_bfree: ::fsblkcnt_t,
102 pub f_files: ::fsfilcnt_t,
103 pub f_ffree: ::fsfilcnt_t,
104 pub f_bavail: ::fsblkcnt_t,
105 pub f_fsid: ::fsid_t,
106 pub f_namelen: ::c_ulong,
107 pub f_flags: ::c_ulong,
108 pub f_spare: [::c_ulong; 5],
109 }
110
111 pub struct siginfo_t {
112 pub si_signo: ::c_int,
113 pub si_code: ::c_int,
114 pub si_errno: ::c_int,
115 pub _pad: [::c_int; 29],
116 _align: [usize; 0],
117 }
118}
119
120pub const O_DIRECT: ::c_int = 0o100000;
121pub const O_DIRECTORY: ::c_int = 0o200000;
122pub const O_NOFOLLOW: ::c_int = 0o400000;
123pub const O_ASYNC: ::c_int = 0o10000;
3b2f2976 124pub const O_LARGEFILE: ::c_int = 0x2000;
476ff2be
SL
125
126pub const FIOCLEX: ::c_int = 0x6601;
127pub const FIONBIO: ::c_int = 0x667E;
128
129pub const RLIMIT_RSS: ::c_int = 7;
130pub const RLIMIT_NOFILE: ::c_int = 5;
131pub const RLIMIT_AS: ::c_int = 6;
132pub const RLIMIT_NPROC: ::c_int = 8;
133pub const RLIMIT_MEMLOCK: ::c_int = 9;
134
135pub const O_APPEND: ::c_int = 0o010;
136pub const O_CREAT: ::c_int = 0o400;
137pub const O_EXCL: ::c_int = 0o2000;
138pub const O_NOCTTY: ::c_int = 0o4000;
139pub const O_NONBLOCK: ::c_int = 0o200;
140pub const O_SYNC: ::c_int = 0o40020;
141pub const O_RSYNC: ::c_int = 0o40020;
142pub const O_DSYNC: ::c_int = 0o020;
143
144pub const SOCK_NONBLOCK: ::c_int = 0o200;
145
146pub const MAP_ANON: ::c_int = 0x800;
147pub const MAP_GROWSDOWN: ::c_int = 0x1000;
148pub const MAP_DENYWRITE: ::c_int = 0x2000;
149pub const MAP_EXECUTABLE: ::c_int = 0x4000;
150pub const MAP_LOCKED: ::c_int = 0x8000;
151pub const MAP_NORESERVE: ::c_int = 0x0400;
152pub const MAP_POPULATE: ::c_int = 0x10000;
153pub const MAP_NONBLOCK: ::c_int = 0x20000;
154pub const MAP_STACK: ::c_int = 0x40000;
155
156pub const EDEADLK: ::c_int = 45;
157pub const ENAMETOOLONG: ::c_int = 78;
158pub const ENOLCK: ::c_int = 46;
159pub const ENOSYS: ::c_int = 89;
160pub const ENOTEMPTY: ::c_int = 93;
161pub const ELOOP: ::c_int = 90;
162pub const ENOMSG: ::c_int = 35;
163pub const EIDRM: ::c_int = 36;
164pub const ECHRNG: ::c_int = 37;
165pub const EL2NSYNC: ::c_int = 38;
166pub const EL3HLT: ::c_int = 39;
167pub const EL3RST: ::c_int = 40;
168pub const ELNRNG: ::c_int = 41;
169pub const EUNATCH: ::c_int = 42;
170pub const ENOCSI: ::c_int = 43;
171pub const EL2HLT: ::c_int = 44;
172pub const EBADE: ::c_int = 50;
173pub const EBADR: ::c_int = 51;
174pub const EXFULL: ::c_int = 52;
175pub const ENOANO: ::c_int = 53;
176pub const EBADRQC: ::c_int = 54;
177pub const EBADSLT: ::c_int = 55;
178pub const EDEADLOCK: ::c_int = 56;
179pub const EMULTIHOP: ::c_int = 74;
180pub const EOVERFLOW: ::c_int = 79;
181pub const ENOTUNIQ: ::c_int = 80;
182pub const EBADFD: ::c_int = 81;
183pub const EBADMSG: ::c_int = 77;
184pub const EREMCHG: ::c_int = 82;
185pub const ELIBACC: ::c_int = 83;
186pub const ELIBBAD: ::c_int = 84;
187pub const ELIBSCN: ::c_int = 85;
188pub const ELIBMAX: ::c_int = 86;
189pub const ELIBEXEC: ::c_int = 87;
190pub const EILSEQ: ::c_int = 88;
191pub const ERESTART: ::c_int = 91;
192pub const ESTRPIPE: ::c_int = 92;
193pub const EUSERS: ::c_int = 94;
194pub const ENOTSOCK: ::c_int = 95;
195pub const EDESTADDRREQ: ::c_int = 96;
196pub const EMSGSIZE: ::c_int = 97;
197pub const EPROTOTYPE: ::c_int = 98;
198pub const ENOPROTOOPT: ::c_int = 99;
199pub const EPROTONOSUPPORT: ::c_int = 120;
200pub const ESOCKTNOSUPPORT: ::c_int = 121;
201pub const EOPNOTSUPP: ::c_int = 122;
8bb4bdeb 202pub const ENOTSUP: ::c_int = EOPNOTSUPP;
476ff2be
SL
203pub const EPFNOSUPPORT: ::c_int = 123;
204pub const EAFNOSUPPORT: ::c_int = 124;
205pub const EADDRINUSE: ::c_int = 125;
206pub const EADDRNOTAVAIL: ::c_int = 126;
207pub const ENETDOWN: ::c_int = 127;
208pub const ENETUNREACH: ::c_int = 128;
209pub const ENETRESET: ::c_int = 129;
210pub const ECONNABORTED: ::c_int = 130;
211pub const ECONNRESET: ::c_int = 131;
212pub const ENOBUFS: ::c_int = 132;
213pub const EISCONN: ::c_int = 133;
214pub const ENOTCONN: ::c_int = 134;
215pub const ESHUTDOWN: ::c_int = 143;
216pub const ETOOMANYREFS: ::c_int = 144;
217pub const ETIMEDOUT: ::c_int = 145;
218pub const ECONNREFUSED: ::c_int = 146;
219pub const EHOSTDOWN: ::c_int = 147;
220pub const EHOSTUNREACH: ::c_int = 148;
221pub const EALREADY: ::c_int = 149;
222pub const EINPROGRESS: ::c_int = 150;
223pub const ESTALE: ::c_int = 151;
224pub const EUCLEAN: ::c_int = 135;
225pub const ENOTNAM: ::c_int = 137;
226pub const ENAVAIL: ::c_int = 138;
227pub const EISNAM: ::c_int = 139;
228pub const EREMOTEIO: ::c_int = 140;
229pub const EDQUOT: ::c_int = 1133;
230pub const ENOMEDIUM: ::c_int = 159;
231pub const EMEDIUMTYPE: ::c_int = 160;
232pub const ECANCELED: ::c_int = 158;
233pub const ENOKEY: ::c_int = 161;
234pub const EKEYEXPIRED: ::c_int = 162;
235pub const EKEYREVOKED: ::c_int = 163;
236pub const EKEYREJECTED: ::c_int = 164;
237pub const EOWNERDEAD: ::c_int = 165;
238pub const ENOTRECOVERABLE: ::c_int = 166;
239pub const EHWPOISON: ::c_int = 168;
240pub const ERFKILL: ::c_int = 167;
241
242pub const SOCK_STREAM: ::c_int = 2;
243pub const SOCK_DGRAM: ::c_int = 1;
244pub const SOCK_SEQPACKET: ::c_int = 5;
245
246pub const SOL_SOCKET: ::c_int = 65535;
247
248pub const SO_REUSEADDR: ::c_int = 0x0004;
8bb4bdeb 249pub const SO_KEEPALIVE: ::c_int = 0x0008;
476ff2be
SL
250pub const SO_DONTROUTE: ::c_int = 0x0010;
251pub const SO_BROADCAST: ::c_int = 0x0020;
8bb4bdeb
XL
252pub const SO_LINGER: ::c_int = 0x0080;
253pub const SO_OOBINLINE: ::c_int = 0x0100;
254pub const SO_REUSEPORT: ::c_int = 0x0200;
476ff2be
SL
255pub const SO_SNDBUF: ::c_int = 0x1001;
256pub const SO_RCVBUF: ::c_int = 0x1002;
476ff2be 257pub const SO_SNDLOWAT: ::c_int = 0x1003;
8bb4bdeb 258pub const SO_RCVLOWAT: ::c_int = 0x1004;
476ff2be
SL
259pub const SO_RCVTIMEO: ::c_int = 0x1006;
260pub const SO_SNDTIMEO: ::c_int = 0x1005;
8bb4bdeb
XL
261pub const SO_ERROR: ::c_int = 0x1007;
262pub const SO_TYPE: ::c_int = 0x1008;
476ff2be 263pub const SO_ACCEPTCONN: ::c_int = 0x1009;
8bb4bdeb
XL
264pub const SO_PROTOCOL: ::c_int = 0x1028;
265pub const SO_DOMAIN: ::c_int = 0x1029;
266pub const SO_NO_CHECK: ::c_int = 11;
267pub const SO_PRIORITY: ::c_int = 12;
268pub const SO_BSDCOMPAT: ::c_int = 14;
269pub const SO_PASSCRED: ::c_int = 17;
270pub const SO_PEERCRED: ::c_int = 18;
271pub const SO_SNDBUFFORCE: ::c_int = 31;
272pub const SO_RCVBUFFORCE: ::c_int = 33;
476ff2be
SL
273
274pub const SA_ONSTACK: ::c_int = 0x08000000;
275pub const SA_SIGINFO: ::c_int = 8;
276pub const SA_NOCLDWAIT: ::c_int = 0x10000;
277
278pub const SIGCHLD: ::c_int = 18;
279pub const SIGBUS: ::c_int = 10;
280pub const SIGTTIN: ::c_int = 26;
281pub const SIGTTOU: ::c_int = 27;
282pub const SIGXCPU: ::c_int = 30;
283pub const SIGXFSZ: ::c_int = 31;
284pub const SIGVTALRM: ::c_int = 28;
285pub const SIGPROF: ::c_int = 29;
286pub const SIGWINCH: ::c_int = 20;
287pub const SIGUSR1: ::c_int = 16;
288pub const SIGUSR2: ::c_int = 17;
289pub const SIGCONT: ::c_int = 25;
290pub const SIGSTOP: ::c_int = 23;
291pub const SIGTSTP: ::c_int = 24;
292pub const SIGURG: ::c_int = 21;
293pub const SIGIO: ::c_int = 22;
294pub const SIGSYS: ::c_int = 12;
295pub const SIGSTKFLT: ::c_int = 7;
296pub const SIGPOLL: ::c_int = ::SIGIO;
297pub const SIGPWR: ::c_int = 19;
298pub const SIG_SETMASK: ::c_int = 3;
299pub const SIG_BLOCK: ::c_int = 1;
300pub const SIG_UNBLOCK: ::c_int = 2;
301
302pub const EXTPROC: ::tcflag_t = 0o200000;
303
304pub const MAP_HUGETLB: ::c_int = 0x80000;
305
306pub const F_GETLK: ::c_int = 33;
307pub const F_GETOWN: ::c_int = 23;
308pub const F_SETLK: ::c_int = 34;
309pub const F_SETLKW: ::c_int = 35;
310pub const F_SETOWN: ::c_int = 24;
311
312pub const VEOF: usize = 16;
313pub const VEOL: usize = 17;
314pub const VEOL2: usize = 6;
315pub const VMIN: usize = 4;
316pub const IEXTEN: ::tcflag_t = 0o000400;
317pub const TOSTOP: ::tcflag_t = 0o100000;
318pub const FLUSHO: ::tcflag_t = 0o020000;
319
320pub const TCGETS: ::c_int = 0x540D;
321pub const TCSETS: ::c_int = 0x540E;
322pub const TCSETSW: ::c_int = 0x540F;
323pub const TCSETSF: ::c_int = 0x5410;
324pub const TCGETA: ::c_int = 0x5401;
325pub const TCSETA: ::c_int = 0x5402;
326pub const TCSETAW: ::c_int = 0x5403;
327pub const TCSETAF: ::c_int = 0x5404;
328pub const TCSBRK: ::c_int = 0x5405;
329pub const TCXONC: ::c_int = 0x5406;
330pub const TCFLSH: ::c_int = 0x5407;
331pub const TIOCGSOFTCAR: ::c_int = 0x5481;
332pub const TIOCSSOFTCAR: ::c_int = 0x5482;
333pub const TIOCLINUX: ::c_int = 0x5483;
334pub const TIOCGSERIAL: ::c_int = 0x5484;
335pub const TIOCEXCL: ::c_int = 0x740D;
336pub const TIOCNXCL: ::c_int = 0x740E;
337pub const TIOCSCTTY: ::c_int = 0x5480;
338pub const TIOCGPGRP: ::c_int = 0x40047477;
339pub const TIOCSPGRP: ::c_int = 0x80047476;
340pub const TIOCOUTQ: ::c_int = 0x7472;
341pub const TIOCSTI: ::c_int = 0x5472;
342pub const TIOCGWINSZ: ::c_int = 0x40087468;
343pub const TIOCSWINSZ: ::c_int = 0x80087467;
344pub const TIOCMGET: ::c_int = 0x741D;
345pub const TIOCMBIS: ::c_int = 0x741B;
346pub const TIOCMBIC: ::c_int = 0x741C;
347pub const TIOCMSET: ::c_int = 0x741A;
348pub const FIONREAD: ::c_int = 0x467F;
349pub const TIOCCONS: ::c_int = 0x80047478;
350
351pub const SYS_gettid: ::c_long = 4222; // Valid for O32
352pub const SYS_perf_event_open: ::c_long = 4333; // Valid for O32
353
354pub const POLLWRNORM: ::c_short = 0x4;
355pub const POLLWRBAND: ::c_short = 0x100;
041b39d2
XL
356
357pub const TIOCM_LE: ::c_int = 0x001;
358pub const TIOCM_DTR: ::c_int = 0x002;
359pub const TIOCM_RTS: ::c_int = 0x004;
360pub const TIOCM_ST: ::c_int = 0x010;
361pub const TIOCM_SR: ::c_int = 0x020;
362pub const TIOCM_CTS: ::c_int = 0x040;
363pub const TIOCM_CAR: ::c_int = 0x100;
364pub const TIOCM_CD: ::c_int = TIOCM_CAR;
365pub const TIOCM_RNG: ::c_int = 0x200;
366pub const TIOCM_RI: ::c_int = TIOCM_RNG;
367pub const TIOCM_DSR: ::c_int = 0x400;