]> git.proxmox.com Git - rustc.git/blob - src/vendor/libc/src/unix/notbsd/linux/musl/b64/mod.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / vendor / libc / src / unix / notbsd / linux / musl / b64 / mod.rs
1 pub type c_long = i64;
2 pub type c_ulong = u64;
3
4 s! {
5 pub struct statfs64 {
6 pub f_type: ::c_ulong,
7 pub f_bsize: ::c_ulong,
8 pub f_blocks: ::fsblkcnt_t,
9 pub f_bfree: ::fsblkcnt_t,
10 pub f_bavail: ::fsblkcnt_t,
11 pub f_files: ::fsfilcnt_t,
12 pub f_ffree: ::fsfilcnt_t,
13 pub f_fsid: ::fsid_t,
14 pub f_namelen: ::c_ulong,
15 pub f_frsize: ::c_ulong,
16 pub f_flags: ::c_ulong,
17 pub f_spare: [::c_ulong; 4],
18 }
19
20 pub struct statvfs64 {
21 pub f_bsize: ::c_ulong,
22 pub f_frsize: ::c_ulong,
23 pub f_blocks: u64,
24 pub f_bfree: u64,
25 pub f_bavail: u64,
26 pub f_files: u64,
27 pub f_ffree: u64,
28 pub f_favail: u64,
29 pub f_fsid: ::c_ulong,
30 pub f_flag: ::c_ulong,
31 pub f_namemax: ::c_ulong,
32 __f_spare: [::c_int; 6],
33 }
34
35 pub struct stack_t {
36 pub ss_sp: *mut ::c_void,
37 pub ss_flags: ::c_int,
38 pub ss_size: ::size_t
39 }
40
41 pub struct pthread_attr_t {
42 __size: [u64; 7]
43 }
44
45 pub struct sigset_t {
46 __val: [::c_ulong; 16],
47 }
48
49 pub struct shmid_ds {
50 pub shm_perm: ::ipc_perm,
51 pub shm_segsz: ::size_t,
52 pub shm_atime: ::time_t,
53 pub shm_dtime: ::time_t,
54 pub shm_ctime: ::time_t,
55 pub shm_cpid: ::pid_t,
56 pub shm_lpid: ::pid_t,
57 pub shm_nattch: ::c_ulong,
58 __pad1: ::c_ulong,
59 __pad2: ::c_ulong,
60 }
61
62 pub struct msqid_ds {
63 pub msg_perm: ::ipc_perm,
64 pub msg_stime: ::time_t,
65 pub msg_rtime: ::time_t,
66 pub msg_ctime: ::time_t,
67 __msg_cbytes: ::c_ulong,
68 pub msg_qnum: ::msgqnum_t,
69 pub msg_qbytes: ::msglen_t,
70 pub msg_lspid: ::pid_t,
71 pub msg_lrpid: ::pid_t,
72 __pad1: ::c_ulong,
73 __pad2: ::c_ulong,
74 }
75
76 pub struct statfs {
77 pub f_type: ::c_ulong,
78 pub f_bsize: ::c_ulong,
79 pub f_blocks: ::fsblkcnt_t,
80 pub f_bfree: ::fsblkcnt_t,
81 pub f_bavail: ::fsblkcnt_t,
82 pub f_files: ::fsfilcnt_t,
83 pub f_ffree: ::fsfilcnt_t,
84 pub f_fsid: ::fsid_t,
85 pub f_namelen: ::c_ulong,
86 pub f_frsize: ::c_ulong,
87 pub f_flags: ::c_ulong,
88 pub f_spare: [::c_ulong; 4],
89 }
90
91 pub struct msghdr {
92 pub msg_name: *mut ::c_void,
93 pub msg_namelen: ::socklen_t,
94 pub msg_iov: *mut ::iovec,
95 pub msg_iovlen: ::c_int,
96 __pad1: ::c_int,
97 pub msg_control: *mut ::c_void,
98 pub msg_controllen: ::socklen_t,
99 __pad2: ::socklen_t,
100 pub msg_flags: ::c_int,
101 }
102
103 pub struct cmsghdr {
104 pub cmsg_len: ::socklen_t,
105 pub __pad1: ::c_int,
106 pub cmsg_level: ::c_int,
107 pub cmsg_type: ::c_int,
108 }
109
110 pub struct sem_t {
111 __val: [::c_int; 8],
112 }
113
114 pub struct siginfo_t {
115 pub si_signo: ::c_int,
116 pub si_errno: ::c_int,
117 pub si_code: ::c_int,
118 pub _pad: [::c_int; 29],
119 _align: [usize; 0],
120 }
121
122 pub struct termios2 {
123 pub c_iflag: ::tcflag_t,
124 pub c_oflag: ::tcflag_t,
125 pub c_cflag: ::tcflag_t,
126 pub c_lflag: ::tcflag_t,
127 pub c_line: ::cc_t,
128 pub c_cc: [::cc_t; 19],
129 pub c_ispeed: ::speed_t,
130 pub c_ospeed: ::speed_t,
131 }
132 }
133
134 pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
135 pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
136
137 pub const O_ASYNC: ::c_int = 0x2000;
138
139 pub const FIOCLEX: ::c_int = 0x5451;
140 pub const FIONBIO: ::c_int = 0x5421;
141
142 pub const RLIMIT_RSS: ::c_int = 5;
143 pub const RLIMIT_NOFILE: ::c_int = 7;
144 pub const RLIMIT_AS: ::c_int = 9;
145 pub const RLIMIT_NPROC: ::c_int = 6;
146 pub const RLIMIT_MEMLOCK: ::c_int = 8;
147
148 pub const O_APPEND: ::c_int = 1024;
149 pub const O_CREAT: ::c_int = 64;
150 pub const O_EXCL: ::c_int = 128;
151 pub const O_NOCTTY: ::c_int = 256;
152 pub const O_NONBLOCK: ::c_int = 2048;
153 pub const O_SYNC: ::c_int = 1052672;
154 pub const O_RSYNC: ::c_int = 1052672;
155 pub const O_DSYNC: ::c_int = 4096;
156
157 pub const SOCK_NONBLOCK: ::c_int = 2048;
158
159 pub const MAP_ANON: ::c_int = 0x0020;
160 pub const MAP_GROWSDOWN: ::c_int = 0x0100;
161 pub const MAP_DENYWRITE: ::c_int = 0x0800;
162 pub const MAP_EXECUTABLE: ::c_int = 0x01000;
163 pub const MAP_LOCKED: ::c_int = 0x02000;
164 pub const MAP_NORESERVE: ::c_int = 0x04000;
165 pub const MAP_POPULATE: ::c_int = 0x08000;
166 pub const MAP_NONBLOCK: ::c_int = 0x010000;
167 pub const MAP_STACK: ::c_int = 0x020000;
168
169 pub const SOCK_STREAM: ::c_int = 1;
170 pub const SOCK_DGRAM: ::c_int = 2;
171 pub const SOCK_SEQPACKET: ::c_int = 5;
172
173 pub const SOL_SOCKET: ::c_int = 1;
174
175 pub const EDEADLK: ::c_int = 35;
176 pub const ENAMETOOLONG: ::c_int = 36;
177 pub const ENOLCK: ::c_int = 37;
178 pub const ENOSYS: ::c_int = 38;
179 pub const ENOTEMPTY: ::c_int = 39;
180 pub const ELOOP: ::c_int = 40;
181 pub const ENOMSG: ::c_int = 42;
182 pub const EIDRM: ::c_int = 43;
183 pub const ECHRNG: ::c_int = 44;
184 pub const EL2NSYNC: ::c_int = 45;
185 pub const EL3HLT: ::c_int = 46;
186 pub const EL3RST: ::c_int = 47;
187 pub const ELNRNG: ::c_int = 48;
188 pub const EUNATCH: ::c_int = 49;
189 pub const ENOCSI: ::c_int = 50;
190 pub const EL2HLT: ::c_int = 51;
191 pub const EBADE: ::c_int = 52;
192 pub const EBADR: ::c_int = 53;
193 pub const EXFULL: ::c_int = 54;
194 pub const ENOANO: ::c_int = 55;
195 pub const EBADRQC: ::c_int = 56;
196 pub const EBADSLT: ::c_int = 57;
197 pub const EDEADLOCK: ::c_int = EDEADLK;
198 pub const EMULTIHOP: ::c_int = 72;
199 pub const EBADMSG: ::c_int = 74;
200 pub const EOVERFLOW: ::c_int = 75;
201 pub const ENOTUNIQ: ::c_int = 76;
202 pub const EBADFD: ::c_int = 77;
203 pub const EREMCHG: ::c_int = 78;
204 pub const ELIBACC: ::c_int = 79;
205 pub const ELIBBAD: ::c_int = 80;
206 pub const ELIBSCN: ::c_int = 81;
207 pub const ELIBMAX: ::c_int = 82;
208 pub const ELIBEXEC: ::c_int = 83;
209 pub const EILSEQ: ::c_int = 84;
210 pub const ERESTART: ::c_int = 85;
211 pub const ESTRPIPE: ::c_int = 86;
212 pub const EUSERS: ::c_int = 87;
213 pub const ENOTSOCK: ::c_int = 88;
214 pub const EDESTADDRREQ: ::c_int = 89;
215 pub const EMSGSIZE: ::c_int = 90;
216 pub const EPROTOTYPE: ::c_int = 91;
217 pub const ENOPROTOOPT: ::c_int = 92;
218 pub const EPROTONOSUPPORT: ::c_int = 93;
219 pub const ESOCKTNOSUPPORT: ::c_int = 94;
220 pub const EOPNOTSUPP: ::c_int = 95;
221 pub const ENOTSUP: ::c_int = EOPNOTSUPP;
222 pub const EPFNOSUPPORT: ::c_int = 96;
223 pub const EAFNOSUPPORT: ::c_int = 97;
224 pub const EADDRINUSE: ::c_int = 98;
225 pub const EADDRNOTAVAIL: ::c_int = 99;
226 pub const ENETDOWN: ::c_int = 100;
227 pub const ENETUNREACH: ::c_int = 101;
228 pub const ENETRESET: ::c_int = 102;
229 pub const ECONNABORTED: ::c_int = 103;
230 pub const ECONNRESET: ::c_int = 104;
231 pub const ENOBUFS: ::c_int = 105;
232 pub const EISCONN: ::c_int = 106;
233 pub const ENOTCONN: ::c_int = 107;
234 pub const ESHUTDOWN: ::c_int = 108;
235 pub const ETOOMANYREFS: ::c_int = 109;
236 pub const ETIMEDOUT: ::c_int = 110;
237 pub const ECONNREFUSED: ::c_int = 111;
238 pub const EHOSTDOWN: ::c_int = 112;
239 pub const EHOSTUNREACH: ::c_int = 113;
240 pub const EALREADY: ::c_int = 114;
241 pub const EINPROGRESS: ::c_int = 115;
242 pub const ESTALE: ::c_int = 116;
243 pub const EUCLEAN: ::c_int = 117;
244 pub const ENOTNAM: ::c_int = 118;
245 pub const ENAVAIL: ::c_int = 119;
246 pub const EISNAM: ::c_int = 120;
247 pub const EREMOTEIO: ::c_int = 121;
248 pub const EDQUOT: ::c_int = 122;
249 pub const ENOMEDIUM: ::c_int = 123;
250 pub const EMEDIUMTYPE: ::c_int = 124;
251 pub const ECANCELED: ::c_int = 125;
252 pub const ENOKEY: ::c_int = 126;
253 pub const EKEYEXPIRED: ::c_int = 127;
254 pub const EKEYREVOKED: ::c_int = 128;
255 pub const EKEYREJECTED: ::c_int = 129;
256 pub const EOWNERDEAD: ::c_int = 130;
257 pub const ENOTRECOVERABLE: ::c_int = 131;
258 pub const ERFKILL: ::c_int = 132;
259 pub const EHWPOISON: ::c_int = 133;
260
261 pub const SO_REUSEADDR: ::c_int = 2;
262 pub const SO_TYPE: ::c_int = 3;
263 pub const SO_ERROR: ::c_int = 4;
264 pub const SO_DONTROUTE: ::c_int = 5;
265 pub const SO_BROADCAST: ::c_int = 6;
266 pub const SO_SNDBUF: ::c_int = 7;
267 pub const SO_RCVBUF: ::c_int = 8;
268 pub const SO_KEEPALIVE: ::c_int = 9;
269 pub const SO_OOBINLINE: ::c_int = 10;
270 pub const SO_NO_CHECK: ::c_int = 11;
271 pub const SO_PRIORITY: ::c_int = 12;
272 pub const SO_LINGER: ::c_int = 13;
273 pub const SO_BSDCOMPAT: ::c_int = 14;
274 pub const SO_REUSEPORT: ::c_int = 15;
275 pub const SO_PASSCRED: ::c_int = 16;
276 pub const SO_PEERCRED: ::c_int = 17;
277 pub const SO_RCVLOWAT: ::c_int = 18;
278 pub const SO_SNDLOWAT: ::c_int = 19;
279 pub const SO_RCVTIMEO: ::c_int = 20;
280 pub const SO_SNDTIMEO: ::c_int = 21;
281 pub const SO_ACCEPTCONN: ::c_int = 30;
282 pub const SO_SNDBUFFORCE: ::c_int = 32;
283 pub const SO_RCVBUFFORCE: ::c_int = 33;
284 pub const SO_PROTOCOL: ::c_int = 38;
285 pub const SO_DOMAIN: ::c_int = 39;
286
287 pub const SA_ONSTACK: ::c_int = 0x08000000;
288 pub const SA_SIGINFO: ::c_int = 0x00000004;
289 pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
290
291 pub const SIGCHLD: ::c_int = 17;
292 pub const SIGBUS: ::c_int = 7;
293 pub const SIGTTIN: ::c_int = 21;
294 pub const SIGTTOU: ::c_int = 22;
295 pub const SIGXCPU: ::c_int = 24;
296 pub const SIGXFSZ: ::c_int = 25;
297 pub const SIGVTALRM: ::c_int = 26;
298 pub const SIGPROF: ::c_int = 27;
299 pub const SIGWINCH: ::c_int = 28;
300 pub const SIGUSR1: ::c_int = 10;
301 pub const SIGUSR2: ::c_int = 12;
302 pub const SIGCONT: ::c_int = 18;
303 pub const SIGSTOP: ::c_int = 19;
304 pub const SIGTSTP: ::c_int = 20;
305 pub const SIGURG: ::c_int = 23;
306 pub const SIGIO: ::c_int = 29;
307 pub const SIGSYS: ::c_int = 31;
308 pub const SIGSTKFLT: ::c_int = 16;
309 pub const SIGPOLL: ::c_int = 29;
310 pub const SIGPWR: ::c_int = 30;
311 pub const SIG_SETMASK: ::c_int = 2;
312 pub const SIG_BLOCK: ::c_int = 0x000000;
313 pub const SIG_UNBLOCK: ::c_int = 0x01;
314
315 pub const EXTPROC: ::tcflag_t = 0x00010000;
316
317 pub const MAP_HUGETLB: ::c_int = 0x040000;
318
319 pub const F_GETLK: ::c_int = 5;
320 pub const F_GETOWN: ::c_int = 9;
321 pub const F_SETLK: ::c_int = 6;
322 pub const F_SETLKW: ::c_int = 7;
323 pub const F_SETOWN: ::c_int = 8;
324
325 pub const VEOF: usize = 4;
326 pub const VEOL: usize = 11;
327 pub const VEOL2: usize = 16;
328 pub const VMIN: usize = 6;
329 pub const IEXTEN: ::tcflag_t = 0x00008000;
330 pub const TOSTOP: ::tcflag_t = 0x00000100;
331 pub const FLUSHO: ::tcflag_t = 0x00001000;
332
333 pub const TCGETS: ::c_int = 0x5401;
334 pub const TCSETS: ::c_int = 0x5402;
335 pub const TCSETSW: ::c_int = 0x5403;
336 pub const TCSETSF: ::c_int = 0x5404;
337 pub const TCGETA: ::c_int = 0x5405;
338 pub const TCSETA: ::c_int = 0x5406;
339 pub const TCSETAW: ::c_int = 0x5407;
340 pub const TCSETAF: ::c_int = 0x5408;
341 pub const TCSBRK: ::c_int = 0x5409;
342 pub const TCXONC: ::c_int = 0x540A;
343 pub const TCFLSH: ::c_int = 0x540B;
344 pub const TIOCGSOFTCAR: ::c_int = 0x5419;
345 pub const TIOCSSOFTCAR: ::c_int = 0x541A;
346 pub const TIOCLINUX: ::c_int = 0x541C;
347 pub const TIOCGSERIAL: ::c_int = 0x541E;
348 pub const TIOCEXCL: ::c_int = 0x540C;
349 pub const TIOCNXCL: ::c_int = 0x540D;
350 pub const TIOCSCTTY: ::c_int = 0x540E;
351 pub const TIOCGPGRP: ::c_int = 0x540F;
352 pub const TIOCSPGRP: ::c_int = 0x5410;
353 pub const TIOCOUTQ: ::c_int = 0x5411;
354 pub const TIOCSTI: ::c_int = 0x5412;
355 pub const TIOCGWINSZ: ::c_int = 0x5413;
356 pub const TIOCSWINSZ: ::c_int = 0x5414;
357 pub const TIOCMGET: ::c_int = 0x5415;
358 pub const TIOCMBIS: ::c_int = 0x5416;
359 pub const TIOCMBIC: ::c_int = 0x5417;
360 pub const TIOCMSET: ::c_int = 0x5418;
361 pub const FIONREAD: ::c_int = 0x541B;
362 pub const TIOCCONS: ::c_int = 0x541D;
363
364 pub const POLLWRNORM: ::c_short = 0x100;
365 pub const POLLWRBAND: ::c_short = 0x200;
366
367 pub const TIOCM_LE: ::c_int = 0x001;
368 pub const TIOCM_DTR: ::c_int = 0x002;
369 pub const TIOCM_RTS: ::c_int = 0x004;
370 pub const TIOCM_ST: ::c_int = 0x008;
371 pub const TIOCM_SR: ::c_int = 0x010;
372 pub const TIOCM_CTS: ::c_int = 0x020;
373 pub const TIOCM_CAR: ::c_int = 0x040;
374 pub const TIOCM_RNG: ::c_int = 0x080;
375 pub const TIOCM_DSR: ::c_int = 0x100;
376 pub const TIOCM_CD: ::c_int = TIOCM_CAR;
377 pub const TIOCM_RI: ::c_int = TIOCM_RNG;
378
379 cfg_if! {
380 if #[cfg(target_arch = "aarch64")] {
381 mod aarch64;
382 pub use self::aarch64::*;
383 } else if #[cfg(any(target_arch = "powerpc64"))] {
384 mod powerpc64;
385 pub use self::powerpc64::*;
386 } else if #[cfg(any(target_arch = "x86_64"))] {
387 mod x86_64;
388 pub use self::x86_64::*;
389 } else {
390 // Unknown target_arch
391 }
392 }