]> git.proxmox.com Git - rustc.git/blame - src/liblibc/src/unix/notbsd/linux/musl/b32/mips.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / liblibc / src / unix / notbsd / linux / musl / b32 / mips.rs
CommitLineData
7453a54e
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 statfs {
71 pub f_type: ::c_ulong,
72 pub f_bsize: ::c_ulong,
73 pub f_frsize: ::c_ulong,
74 pub f_blocks: ::fsblkcnt_t,
75 pub f_bfree: ::fsblkcnt_t,
76 pub f_files: ::fsfilcnt_t,
77 pub f_ffree: ::fsfilcnt_t,
78 pub f_bavail: ::fsblkcnt_t,
79 pub f_fsid: ::fsid_t,
80 pub f_namelen: ::c_ulong,
81 pub f_flags: ::c_ulong,
82 pub f_spare: [::c_ulong; 5],
83 }
84}
85
86pub const O_DIRECT: ::c_int = 0o100000;
87pub const O_DIRECTORY: ::c_int = 0o200000;
88pub const O_NOFOLLOW: ::c_int = 0o400000;
89pub const O_ASYNC: ::c_int = 0o10000;
90
91pub const FIOCLEX: ::c_int = 0x6601;
92pub const FIONBIO: ::c_int = 0x667E;
93
94pub const RLIMIT_RSS: ::c_int = 7;
95pub const RLIMIT_NOFILE: ::c_int = 5;
96pub const RLIMIT_AS: ::c_int = 6;
97pub const RLIMIT_NPROC: ::c_int = 8;
98pub const RLIMIT_MEMLOCK: ::c_int = 9;
99
100pub const O_APPEND: ::c_int = 0o010;
101pub const O_CREAT: ::c_int = 0o400;
102pub const O_EXCL: ::c_int = 0o2000;
103pub const O_NOCTTY: ::c_int = 0o4000;
104pub const O_NONBLOCK: ::c_int = 0o200;
105pub const O_SYNC: ::c_int = 0o40020;
106pub const O_RSYNC: ::c_int = 0o40020;
107pub const O_DSYNC: ::c_int = 0o020;
108
109pub const SOCK_NONBLOCK: ::c_int = 0o200;
110
111pub const MAP_ANON: ::c_int = 0x800;
112pub const MAP_GROWSDOWN: ::c_int = 0x1000;
113pub const MAP_DENYWRITE: ::c_int = 0x2000;
114pub const MAP_EXECUTABLE: ::c_int = 0x4000;
115pub const MAP_LOCKED: ::c_int = 0x8000;
116pub const MAP_NORESERVE: ::c_int = 0x0400;
117pub const MAP_POPULATE: ::c_int = 0x10000;
118pub const MAP_NONBLOCK: ::c_int = 0x20000;
119pub const MAP_STACK: ::c_int = 0x40000;
120
121pub const EDEADLK: ::c_int = 45;
122pub const ENAMETOOLONG: ::c_int = 78;
123pub const ENOLCK: ::c_int = 46;
124pub const ENOSYS: ::c_int = 89;
125pub const ENOTEMPTY: ::c_int = 93;
126pub const ELOOP: ::c_int = 90;
127pub const ENOMSG: ::c_int = 35;
128pub const EIDRM: ::c_int = 36;
129pub const ECHRNG: ::c_int = 37;
130pub const EL2NSYNC: ::c_int = 38;
131pub const EL3HLT: ::c_int = 39;
132pub const EL3RST: ::c_int = 40;
133pub const ELNRNG: ::c_int = 41;
134pub const EUNATCH: ::c_int = 42;
135pub const ENOCSI: ::c_int = 43;
136pub const EL2HLT: ::c_int = 44;
137pub const EBADE: ::c_int = 50;
138pub const EBADR: ::c_int = 51;
139pub const EXFULL: ::c_int = 52;
140pub const ENOANO: ::c_int = 53;
141pub const EBADRQC: ::c_int = 54;
142pub const EBADSLT: ::c_int = 55;
143pub const EDEADLOCK: ::c_int = 56;
144pub const EMULTIHOP: ::c_int = 74;
145pub const EOVERFLOW: ::c_int = 79;
146pub const ENOTUNIQ: ::c_int = 80;
147pub const EBADFD: ::c_int = 81;
148pub const EBADMSG: ::c_int = 77;
149pub const EREMCHG: ::c_int = 82;
150pub const ELIBACC: ::c_int = 83;
151pub const ELIBBAD: ::c_int = 84;
152pub const ELIBSCN: ::c_int = 85;
153pub const ELIBMAX: ::c_int = 86;
154pub const ELIBEXEC: ::c_int = 87;
155pub const EILSEQ: ::c_int = 88;
156pub const ERESTART: ::c_int = 91;
157pub const ESTRPIPE: ::c_int = 92;
158pub const EUSERS: ::c_int = 94;
159pub const ENOTSOCK: ::c_int = 95;
160pub const EDESTADDRREQ: ::c_int = 96;
161pub const EMSGSIZE: ::c_int = 97;
162pub const EPROTOTYPE: ::c_int = 98;
163pub const ENOPROTOOPT: ::c_int = 99;
164pub const EPROTONOSUPPORT: ::c_int = 120;
165pub const ESOCKTNOSUPPORT: ::c_int = 121;
166pub const EOPNOTSUPP: ::c_int = 122;
167pub const EPFNOSUPPORT: ::c_int = 123;
168pub const EAFNOSUPPORT: ::c_int = 124;
169pub const EADDRINUSE: ::c_int = 125;
170pub const EADDRNOTAVAIL: ::c_int = 126;
171pub const ENETDOWN: ::c_int = 127;
172pub const ENETUNREACH: ::c_int = 128;
173pub const ENETRESET: ::c_int = 129;
174pub const ECONNABORTED: ::c_int = 130;
175pub const ECONNRESET: ::c_int = 131;
176pub const ENOBUFS: ::c_int = 132;
177pub const EISCONN: ::c_int = 133;
178pub const ENOTCONN: ::c_int = 134;
179pub const ESHUTDOWN: ::c_int = 143;
180pub const ETOOMANYREFS: ::c_int = 144;
181pub const ETIMEDOUT: ::c_int = 145;
182pub const ECONNREFUSED: ::c_int = 146;
183pub const EHOSTDOWN: ::c_int = 147;
184pub const EHOSTUNREACH: ::c_int = 148;
185pub const EALREADY: ::c_int = 149;
186pub const EINPROGRESS: ::c_int = 150;
187pub const ESTALE: ::c_int = 151;
188pub const EUCLEAN: ::c_int = 135;
189pub const ENOTNAM: ::c_int = 137;
190pub const ENAVAIL: ::c_int = 138;
191pub const EISNAM: ::c_int = 139;
192pub const EREMOTEIO: ::c_int = 140;
193pub const EDQUOT: ::c_int = 1133;
194pub const ENOMEDIUM: ::c_int = 159;
195pub const EMEDIUMTYPE: ::c_int = 160;
196pub const ECANCELED: ::c_int = 158;
197pub const ENOKEY: ::c_int = 161;
198pub const EKEYEXPIRED: ::c_int = 162;
199pub const EKEYREVOKED: ::c_int = 163;
200pub const EKEYREJECTED: ::c_int = 164;
201pub const EOWNERDEAD: ::c_int = 165;
202pub const ENOTRECOVERABLE: ::c_int = 166;
203pub const EHWPOISON: ::c_int = 168;
204pub const ERFKILL: ::c_int = 167;
205
206pub const SOCK_STREAM: ::c_int = 2;
207pub const SOCK_DGRAM: ::c_int = 1;
208
209pub const SOL_SOCKET: ::c_int = 65535;
210
211pub const SO_REUSEADDR: ::c_int = 0x0004;
212pub const SO_TYPE: ::c_int = 0x1008;
213pub const SO_ERROR: ::c_int = 0x1007;
214pub const SO_DONTROUTE: ::c_int = 0x0010;
215pub const SO_BROADCAST: ::c_int = 0x0020;
216pub const SO_SNDBUF: ::c_int = 0x1001;
217pub const SO_RCVBUF: ::c_int = 0x1002;
218pub const SO_KEEPALIVE: ::c_int = 0x0008;
219pub const SO_OOBINLINE: ::c_int = 0x0100;
220pub const SO_LINGER: ::c_int = 0x0080;
221pub const SO_REUSEPORT: ::c_int = 0x200;
222pub const SO_RCVLOWAT: ::c_int = 0x1004;
223pub const SO_SNDLOWAT: ::c_int = 0x1003;
224pub const SO_RCVTIMEO: ::c_int = 0x1006;
225pub const SO_SNDTIMEO: ::c_int = 0x1005;
226pub const SO_ACCEPTCONN: ::c_int = 0x1009;
227
228pub const SA_ONSTACK: ::c_int = 0x08000000;
229pub const SA_SIGINFO: ::c_int = 8;
230pub const SA_NOCLDWAIT: ::c_int = 0x10000;
231
232pub const SIGCHLD: ::c_int = 18;
233pub const SIGBUS: ::c_int = 10;
234pub const SIGTTIN: ::c_int = 26;
235pub const SIGTTOU: ::c_int = 27;
236pub const SIGXCPU: ::c_int = 30;
237pub const SIGXFSZ: ::c_int = 31;
238pub const SIGVTALRM: ::c_int = 28;
239pub const SIGPROF: ::c_int = 29;
240pub const SIGWINCH: ::c_int = 20;
241pub const SIGUSR1: ::c_int = 16;
242pub const SIGUSR2: ::c_int = 17;
243pub const SIGCONT: ::c_int = 25;
244pub const SIGSTOP: ::c_int = 23;
245pub const SIGTSTP: ::c_int = 24;
246pub const SIGURG: ::c_int = 21;
247pub const SIGIO: ::c_int = 22;
248pub const SIGSYS: ::c_int = 12;
249pub const SIGSTKFLT: ::c_int = 7;
250pub const SIGPOLL: ::c_int = ::SIGIO;
251pub const SIGPWR: ::c_int = 19;
252pub const SIG_SETMASK: ::c_int = 3;
253pub const SIG_BLOCK: ::c_int = 1;
254pub const SIG_UNBLOCK: ::c_int = 2;
255
256pub const EXTPROC: ::tcflag_t = 0o200000;
257
258pub const MAP_HUGETLB: ::c_int = 0x80000;
259
260pub const F_GETLK: ::c_int = 33;
261pub const F_GETOWN: ::c_int = 23;
262pub const F_SETLK: ::c_int = 34;
263pub const F_SETLKW: ::c_int = 35;
264pub const F_SETOWN: ::c_int = 24;
265
266pub const VEOF: usize = 16;
267pub const VEOL: usize = 17;
268pub const VEOL2: usize = 6;
269pub const VMIN: usize = 4;
270pub const IEXTEN: ::tcflag_t = 0o000400;
271pub const TOSTOP: ::tcflag_t = 0o100000;
272pub const FLUSHO: ::tcflag_t = 0o020000;
273
274pub const TCGETS: ::c_ulong = 0x540D;
275pub const TCSETS: ::c_ulong = 0x540E;
276pub const TCSETSW: ::c_ulong = 0x540F;
277pub const TCSETSF: ::c_ulong = 0x5410;
278pub const TCGETA: ::c_ulong = 0x5401;
279pub const TCSETA: ::c_ulong = 0x5402;
280pub const TCSETAW: ::c_ulong = 0x5403;
281pub const TCSETAF: ::c_ulong = 0x5404;
282pub const TCSBRK: ::c_ulong = 0x5405;
283pub const TCXONC: ::c_ulong = 0x5406;
284pub const TCFLSH: ::c_ulong = 0x5407;
285pub const TIOCGSOFTCAR: ::c_ulong = 0x5481;
286pub const TIOCSSOFTCAR: ::c_ulong = 0x5482;
287pub const TIOCLINUX: ::c_ulong = 0x5483;
288pub const TIOCGSERIAL: ::c_ulong = 0x5484;
289pub const TIOCEXCL: ::c_ulong = 0x740D;
290pub const TIOCNXCL: ::c_ulong = 0x740E;
291pub const TIOCSCTTY: ::c_ulong = 0x5480;
292pub const TIOCGPGRP: ::c_ulong = 0x40047477;
293pub const TIOCSPGRP: ::c_ulong = 0x80047476;
294pub const TIOCOUTQ: ::c_ulong = 0x7472;
295pub const TIOCSTI: ::c_ulong = 0x5472;
296pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
297pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
298pub const TIOCMGET: ::c_ulong = 0x741D;
299pub const TIOCMBIS: ::c_ulong = 0x741B;
300pub const TIOCMBIC: ::c_ulong = 0x741C;
301pub const TIOCMSET: ::c_ulong = 0x741D;
302pub const FIONREAD: ::c_ulong = 0x467F;
303pub const TIOCCONS: ::c_ulong = 0x80047478;
54a0048b
SL
304
305pub const SYS_gettid: ::c_long = 4222; // Valid for O32
306pub const SYS_perf_event_open: ::c_long = 4333; // Valid for O32