]> git.proxmox.com Git - rustc.git/blob - src/liblibc/src/unix/notbsd/linux/mips.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / liblibc / src / unix / notbsd / linux / mips.rs
1 pub type c_char = i8;
2 pub type c_long = i32;
3 pub type c_ulong = u32;
4 pub type clock_t = i32;
5 pub type time_t = i32;
6 pub type suseconds_t = i32;
7 pub type wchar_t = i32;
8 pub type off_t = i32;
9 pub type ino_t = u32;
10 pub type blkcnt_t = i32;
11 pub type blksize_t = i32;
12 pub type nlink_t = u32;
13 pub type fsblkcnt_t = ::c_ulong;
14 pub type fsfilcnt_t = ::c_ulong;
15 pub type rlim_t = c_ulong;
16
17 s! {
18 pub struct stat {
19 pub st_dev: ::c_ulong,
20 st_pad1: [::c_long; 3],
21 pub st_ino: ::ino_t,
22 pub st_mode: ::mode_t,
23 pub st_nlink: ::nlink_t,
24 pub st_uid: ::uid_t,
25 pub st_gid: ::gid_t,
26 pub st_rdev: ::c_ulong,
27 pub st_pad2: [::c_long; 2],
28 pub st_size: ::off_t,
29 st_pad3: ::c_long,
30 pub st_atime: ::time_t,
31 pub st_atime_nsec: ::c_long,
32 pub st_mtime: ::time_t,
33 pub st_mtime_nsec: ::c_long,
34 pub st_ctime: ::time_t,
35 pub st_ctime_nsec: ::c_long,
36 pub st_blksize: ::blksize_t,
37 pub st_blocks: ::blkcnt_t,
38 st_pad5: [::c_long; 14],
39 }
40
41 pub struct stat64 {
42 pub st_dev: ::c_ulong,
43 st_pad1: [::c_long; 3],
44 pub st_ino: ::ino64_t,
45 pub st_mode: ::mode_t,
46 pub st_nlink: ::nlink_t,
47 pub st_uid: ::uid_t,
48 pub st_gid: ::gid_t,
49 pub st_rdev: ::c_ulong,
50 st_pad2: [::c_long; 2],
51 pub st_size: ::off64_t,
52 pub st_atime: ::time_t,
53 pub st_atime_nsec: ::c_long,
54 pub st_mtime: ::time_t,
55 pub st_mtime_nsec: ::c_long,
56 pub st_ctime: ::time_t,
57 pub st_ctime_nsec: ::c_long,
58 pub st_blksize: ::blksize_t,
59 st_pad3: ::c_long,
60 pub st_blocks: ::blkcnt64_t,
61 st_pad5: [::c_long; 14],
62 }
63
64 pub struct pthread_attr_t {
65 __size: [u32; 9]
66 }
67
68 pub struct sigaction {
69 pub sa_flags: ::c_int,
70 pub sa_sigaction: ::sighandler_t,
71 pub sa_mask: sigset_t,
72 _restorer: *mut ::c_void,
73 _resv: [::c_int; 1],
74 }
75
76 pub struct stack_t {
77 pub ss_sp: *mut ::c_void,
78 pub ss_size: ::size_t,
79 pub ss_flags: ::c_int,
80 }
81
82 pub struct sigset_t {
83 __val: [::c_ulong; 32],
84 }
85
86 pub struct siginfo_t {
87 pub si_signo: ::c_int,
88 pub si_code: ::c_int,
89 pub si_errno: ::c_int,
90 pub _pad: [::c_int; 29],
91 }
92
93 pub struct glob64_t {
94 pub gl_pathc: ::size_t,
95 pub gl_pathv: *mut *mut ::c_char,
96 pub gl_offs: ::size_t,
97 pub gl_flags: ::c_int,
98
99 __unused1: *mut ::c_void,
100 __unused2: *mut ::c_void,
101 __unused3: *mut ::c_void,
102 __unused4: *mut ::c_void,
103 __unused5: *mut ::c_void,
104 }
105
106 pub struct ipc_perm {
107 pub __key: ::key_t,
108 pub uid: ::uid_t,
109 pub gid: ::gid_t,
110 pub cuid: ::uid_t,
111 pub cgid: ::gid_t,
112 pub mode: ::c_uint,
113 pub __seq: ::c_ushort,
114 __pad1: ::c_ushort,
115 __unused1: ::c_ulong,
116 __unused2: ::c_ulong
117 }
118
119 pub struct shmid_ds {
120 pub shm_perm: ::ipc_perm,
121 pub shm_segsz: ::size_t,
122 pub shm_atime: ::time_t,
123 pub shm_dtime: ::time_t,
124 pub shm_ctime: ::time_t,
125 pub shm_cpid: ::pid_t,
126 pub shm_lpid: ::pid_t,
127 pub shm_nattch: ::shmatt_t,
128 __unused4: ::c_ulong,
129 __unused5: ::c_ulong
130 }
131
132 pub struct statfs {
133 pub f_type: ::c_long,
134 pub f_bsize: ::c_long,
135 pub f_frsize: ::c_long,
136 pub f_blocks: ::fsblkcnt_t,
137 pub f_bfree: ::fsblkcnt_t,
138 pub f_files: ::fsblkcnt_t,
139 pub f_ffree: ::fsblkcnt_t,
140 pub f_bavail: ::fsblkcnt_t,
141 pub f_fsid: ::fsid_t,
142
143 pub f_namelen: ::c_long,
144 f_spare: [::c_long; 6],
145 }
146
147 pub struct msghdr {
148 pub msg_name: *mut ::c_void,
149 pub msg_namelen: ::socklen_t,
150 pub msg_iov: *mut ::iovec,
151 pub msg_iovlen: ::size_t,
152 pub msg_control: *mut ::c_void,
153 pub msg_controllen: ::size_t,
154 pub msg_flags: ::c_int,
155 }
156
157 pub struct termios {
158 pub c_iflag: ::tcflag_t,
159 pub c_oflag: ::tcflag_t,
160 pub c_cflag: ::tcflag_t,
161 pub c_lflag: ::tcflag_t,
162 pub c_line: ::cc_t,
163 pub c_cc: [::cc_t; ::NCCS],
164 }
165
166 pub struct flock {
167 pub l_type: ::c_short,
168 pub l_whence: ::c_short,
169 pub l_start: ::off_t,
170 pub l_len: ::off_t,
171 pub l_sysid: ::c_long,
172 pub l_pid: ::pid_t,
173 pad: [::c_long; 4],
174 }
175 }
176
177 pub const BUFSIZ: ::c_uint = 8192;
178 pub const TMP_MAX: ::c_uint = 238328;
179 pub const FOPEN_MAX: ::c_uint = 16;
180 pub const POSIX_MADV_DONTNEED: ::c_int = 4;
181 pub const _SC_2_C_VERSION: ::c_int = 96;
182 pub const RUSAGE_THREAD: ::c_int = 1;
183 pub const O_ACCMODE: ::c_int = 3;
184 pub const O_DIRECT: ::c_int = 0x8000;
185 pub const O_DIRECTORY: ::c_int = 0x10000;
186 pub const O_NOFOLLOW: ::c_int = 0x20000;
187 pub const RUSAGE_CHILDREN: ::c_int = -1;
188 pub const ST_RELATIME: ::c_ulong = 4096;
189 pub const NI_MAXHOST: ::socklen_t = 1025;
190
191 pub const RLIMIT_NOFILE: ::c_int = 5;
192 pub const RLIMIT_AS: ::c_int = 6;
193 pub const RLIMIT_RSS: ::c_int = 7;
194 pub const RLIMIT_NPROC: ::c_int = 8;
195 pub const RLIMIT_MEMLOCK: ::c_int = 9;
196 pub const RLIMIT_NLIMITS: ::c_int = 16;
197 pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
198
199 pub const O_APPEND: ::c_int = 8;
200 pub const O_CREAT: ::c_int = 256;
201 pub const O_EXCL: ::c_int = 1024;
202 pub const O_NOCTTY: ::c_int = 2048;
203 pub const O_NONBLOCK: ::c_int = 128;
204 pub const O_SYNC: ::c_int = 0x4010;
205 pub const O_RSYNC: ::c_int = 0x4010;
206 pub const O_DSYNC: ::c_int = 0x10;
207 pub const O_FSYNC: ::c_int = 0x4010;
208 pub const O_ASYNC: ::c_int = 0x1000;
209 pub const O_NDELAY: ::c_int = 0x80;
210
211 pub const SOCK_NONBLOCK: ::c_int = 128;
212
213 pub const EDEADLK: ::c_int = 45;
214 pub const ENAMETOOLONG: ::c_int = 78;
215 pub const ENOLCK: ::c_int = 46;
216 pub const ENOSYS: ::c_int = 89;
217 pub const ENOTEMPTY: ::c_int = 93;
218 pub const ELOOP: ::c_int = 90;
219 pub const ENOMSG: ::c_int = 35;
220 pub const EIDRM: ::c_int = 36;
221 pub const ECHRNG: ::c_int = 37;
222 pub const EL2NSYNC: ::c_int = 38;
223 pub const EL3HLT: ::c_int = 39;
224 pub const EL3RST: ::c_int = 40;
225 pub const ELNRNG: ::c_int = 41;
226 pub const EUNATCH: ::c_int = 42;
227 pub const ENOCSI: ::c_int = 43;
228 pub const EL2HLT: ::c_int = 44;
229 pub const EBADE: ::c_int = 50;
230 pub const EBADR: ::c_int = 51;
231 pub const EXFULL: ::c_int = 52;
232 pub const ENOANO: ::c_int = 53;
233 pub const EBADRQC: ::c_int = 54;
234 pub const EBADSLT: ::c_int = 55;
235 pub const EDEADLOCK: ::c_int = 56;
236 pub const EMULTIHOP: ::c_int = 74;
237 pub const EOVERFLOW: ::c_int = 79;
238 pub const ENOTUNIQ: ::c_int = 80;
239 pub const EBADFD: ::c_int = 81;
240 pub const EBADMSG: ::c_int = 77;
241 pub const EREMCHG: ::c_int = 82;
242 pub const ELIBACC: ::c_int = 83;
243 pub const ELIBBAD: ::c_int = 84;
244 pub const ELIBSCN: ::c_int = 85;
245 pub const ELIBMAX: ::c_int = 86;
246 pub const ELIBEXEC: ::c_int = 87;
247 pub const EILSEQ: ::c_int = 88;
248 pub const ERESTART: ::c_int = 91;
249 pub const ESTRPIPE: ::c_int = 92;
250 pub const EUSERS: ::c_int = 94;
251 pub const ENOTSOCK: ::c_int = 95;
252 pub const EDESTADDRREQ: ::c_int = 96;
253 pub const EMSGSIZE: ::c_int = 97;
254 pub const EPROTOTYPE: ::c_int = 98;
255 pub const ENOPROTOOPT: ::c_int = 99;
256 pub const EPROTONOSUPPORT: ::c_int = 120;
257 pub const ESOCKTNOSUPPORT: ::c_int = 121;
258 pub const EOPNOTSUPP: ::c_int = 122;
259 pub const EPFNOSUPPORT: ::c_int = 123;
260 pub const EAFNOSUPPORT: ::c_int = 124;
261 pub const EADDRINUSE: ::c_int = 125;
262 pub const EADDRNOTAVAIL: ::c_int = 126;
263 pub const ENETDOWN: ::c_int = 127;
264 pub const ENETUNREACH: ::c_int = 128;
265 pub const ENETRESET: ::c_int = 129;
266 pub const ECONNABORTED: ::c_int = 130;
267 pub const ECONNRESET: ::c_int = 131;
268 pub const ENOBUFS: ::c_int = 132;
269 pub const EISCONN: ::c_int = 133;
270 pub const ENOTCONN: ::c_int = 134;
271 pub const ESHUTDOWN: ::c_int = 143;
272 pub const ETOOMANYREFS: ::c_int = 144;
273 pub const ETIMEDOUT: ::c_int = 145;
274 pub const ECONNREFUSED: ::c_int = 146;
275 pub const EHOSTDOWN: ::c_int = 147;
276 pub const EHOSTUNREACH: ::c_int = 148;
277 pub const EALREADY: ::c_int = 149;
278 pub const EINPROGRESS: ::c_int = 150;
279 pub const ESTALE: ::c_int = 151;
280 pub const EUCLEAN: ::c_int = 135;
281 pub const ENOTNAM: ::c_int = 137;
282 pub const ENAVAIL: ::c_int = 138;
283 pub const EISNAM: ::c_int = 139;
284 pub const EREMOTEIO: ::c_int = 140;
285 pub const EDQUOT: ::c_int = 1133;
286 pub const ENOMEDIUM: ::c_int = 159;
287 pub const EMEDIUMTYPE: ::c_int = 160;
288 pub const ECANCELED: ::c_int = 158;
289 pub const ENOKEY: ::c_int = 161;
290 pub const EKEYEXPIRED: ::c_int = 162;
291 pub const EKEYREVOKED: ::c_int = 163;
292 pub const EKEYREJECTED: ::c_int = 164;
293 pub const EOWNERDEAD: ::c_int = 165;
294 pub const ENOTRECOVERABLE: ::c_int = 166;
295 pub const ERFKILL: ::c_int = 167;
296
297 pub const LC_PAPER: ::c_int = 7;
298 pub const LC_NAME: ::c_int = 8;
299 pub const LC_ADDRESS: ::c_int = 9;
300 pub const LC_TELEPHONE: ::c_int = 10;
301 pub const LC_MEASUREMENT: ::c_int = 11;
302 pub const LC_IDENTIFICATION: ::c_int = 12;
303
304 pub const MAP_NORESERVE: ::c_int = 0x400;
305 pub const MAP_ANON: ::c_int = 0x800;
306 pub const MAP_ANONYMOUS: ::c_int = 0x800;
307 pub const MAP_GROWSDOWN: ::c_int = 0x1000;
308 pub const MAP_DENYWRITE: ::c_int = 0x2000;
309 pub const MAP_EXECUTABLE: ::c_int = 0x4000;
310 pub const MAP_LOCKED: ::c_int = 0x8000;
311 pub const MAP_POPULATE: ::c_int = 0x10000;
312 pub const MAP_NONBLOCK: ::c_int = 0x20000;
313 pub const MAP_STACK: ::c_int = 0x40000;
314
315 pub const SOCK_STREAM: ::c_int = 2;
316 pub const SOCK_DGRAM: ::c_int = 1;
317
318 pub const SOL_SOCKET: ::c_int = 0xffff;
319
320 pub const SO_REUSEADDR: ::c_int = 4;
321 pub const SO_TYPE: ::c_int = 4104;
322 pub const SO_ERROR: ::c_int = 4103;
323 pub const SO_DONTROUTE: ::c_int = 16;
324 pub const SO_BROADCAST: ::c_int = 32;
325 pub const SO_SNDBUF: ::c_int = 4097;
326 pub const SO_RCVBUF: ::c_int = 4098;
327 pub const SO_KEEPALIVE: ::c_int = 8;
328 pub const SO_OOBINLINE: ::c_int = 256;
329 pub const SO_LINGER: ::c_int = 128;
330 pub const SO_RCVLOWAT: ::c_int = 4100;
331 pub const SO_SNDLOWAT: ::c_int = 4099;
332 pub const SO_RCVTIMEO: ::c_int = 4102;
333 pub const SO_SNDTIMEO: ::c_int = 4101;
334 pub const SO_ACCEPTCONN: ::c_int = 4105;
335
336 pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;
337 pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
338 pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
339
340 pub const FIOCLEX: ::c_ulong = 0x6601;
341 pub const FIONBIO: ::c_ulong = 0x667e;
342
343 pub const SA_ONSTACK: ::c_int = 0x08000000;
344 pub const SA_SIGINFO: ::c_int = 0x00000008;
345 pub const SA_NOCLDWAIT: ::c_int = 0x00010000;
346
347 pub const SIGCHLD: ::c_int = 18;
348 pub const SIGBUS: ::c_int = 10;
349 pub const SIGTTIN: ::c_int = 26;
350 pub const SIGTTOU: ::c_int = 27;
351 pub const SIGXCPU: ::c_int = 30;
352 pub const SIGXFSZ: ::c_int = 31;
353 pub const SIGVTALRM: ::c_int = 28;
354 pub const SIGPROF: ::c_int = 29;
355 pub const SIGWINCH: ::c_int = 20;
356 pub const SIGUSR1: ::c_int = 16;
357 pub const SIGUSR2: ::c_int = 17;
358 pub const SIGCONT: ::c_int = 25;
359 pub const SIGSTOP: ::c_int = 23;
360 pub const SIGTSTP: ::c_int = 24;
361 pub const SIGURG: ::c_int = 21;
362 pub const SIGIO: ::c_int = 22;
363 pub const SIGSYS: ::c_int = 12;
364 pub const SIGPOLL: ::c_int = 22;
365 pub const SIGPWR: ::c_int = 19;
366 pub const SIG_SETMASK: ::c_int = 3;
367 pub const SIG_BLOCK: ::c_int = 0x1;
368 pub const SIG_UNBLOCK: ::c_int = 0x2;
369
370 pub const PTHREAD_STACK_MIN: ::size_t = 131072;
371
372 pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
373 pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
374 pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;
375 pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45;
376 pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53;
377 pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53;
378 pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
379 pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
380 pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
381 pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6;
382 pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660;
383 pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6;
384 pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f;
385 pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f;
386 pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468;
387 pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478;
388 pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44;
389 pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c;
390 pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969;
391 pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1;
392 pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0;
393 pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f;
394 pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973;
395 pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
396 pub const TMPFS_MAGIC: ::c_long = 0x01021994;
397 pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
398
399 pub const VEOF: usize = 16;
400 pub const VEOL: usize = 17;
401 pub const VEOL2: usize = 6;
402 pub const VMIN: usize = 4;
403 pub const IEXTEN: ::tcflag_t = 0x00000100;
404 pub const TOSTOP: ::tcflag_t = 0x00008000;
405 pub const FLUSHO: ::tcflag_t = 0x00002000;
406 pub const IUTF8: ::tcflag_t = 0x00004000;
407 pub const TCSANOW: ::c_int = 0x540e;
408 pub const TCSADRAIN: ::c_int = 0x540f;
409 pub const TCSAFLUSH: ::c_int = 0x5410;
410
411 pub const CPU_SETSIZE: ::c_int = 0x400;
412
413 pub const PTRACE_TRACEME: ::c_uint = 0;
414 pub const PTRACE_PEEKTEXT: ::c_uint = 1;
415 pub const PTRACE_PEEKDATA: ::c_uint = 2;
416 pub const PTRACE_PEEKUSER: ::c_uint = 3;
417 pub const PTRACE_POKETEXT: ::c_uint = 4;
418 pub const PTRACE_POKEDATA: ::c_uint = 5;
419 pub const PTRACE_POKEUSER: ::c_uint = 6;
420 pub const PTRACE_CONT: ::c_uint = 7;
421 pub const PTRACE_KILL: ::c_uint = 8;
422 pub const PTRACE_SINGLESTEP: ::c_uint = 9;
423 pub const PTRACE_ATTACH: ::c_uint = 16;
424 pub const PTRACE_DETACH: ::c_uint = 17;
425 pub const PTRACE_SYSCALL: ::c_uint = 24;
426 pub const PTRACE_SETOPTIONS: ::c_uint = 0x4200;
427 pub const PTRACE_GETEVENTMSG: ::c_uint = 0x4201;
428 pub const PTRACE_GETSIGINFO: ::c_uint = 0x4202;
429 pub const PTRACE_SETSIGINFO: ::c_uint = 0x4203;
430 pub const PTRACE_GETFPREGS: ::c_uint = 14;
431 pub const PTRACE_SETFPREGS: ::c_uint = 15;
432 pub const PTRACE_GETFPXREGS: ::c_uint = 18;
433 pub const PTRACE_SETFPXREGS: ::c_uint = 19;
434 pub const PTRACE_GETREGS: ::c_uint = 12;
435 pub const PTRACE_SETREGS: ::c_uint = 13;
436
437 pub const MAP_HUGETLB: ::c_int = 0x080000;
438
439 pub const EFD_NONBLOCK: ::c_int = 0x80;
440
441 pub const F_GETLK: ::c_int = 14;
442 pub const F_GETOWN: ::c_int = 23;
443 pub const F_SETOWN: ::c_int = 24;
444 pub const F_SETLK: ::c_int = 6;
445 pub const F_SETLKW: ::c_int = 7;
446
447 pub const SFD_NONBLOCK: ::c_int = 0x80;
448
449 pub const TCGETS: ::c_ulong = 0x540d;
450 pub const TCSETS: ::c_ulong = 0x540e;
451 pub const TCSETSW: ::c_ulong = 0x540f;
452 pub const TCSETSF: ::c_ulong = 0x5410;
453 pub const TCGETA: ::c_ulong = 0x5401;
454 pub const TCSETA: ::c_ulong = 0x5402;
455 pub const TCSETAW: ::c_ulong = 0x5403;
456 pub const TCSETAF: ::c_ulong = 0x5404;
457 pub const TCSBRK: ::c_ulong = 0x5405;
458 pub const TCXONC: ::c_ulong = 0x5406;
459 pub const TCFLSH: ::c_ulong = 0x5407;
460 pub const TIOCGSOFTCAR: ::c_ulong = 0x5481;
461 pub const TIOCSSOFTCAR: ::c_ulong = 0x5482;
462 pub const TIOCINQ: ::c_ulong = 0x467f;
463 pub const TIOCLINUX: ::c_ulong = 0x5483;
464 pub const TIOCGSERIAL: ::c_ulong = 0x5484;
465 pub const TIOCEXCL: ::c_ulong = 0x740d;
466 pub const TIOCNXCL: ::c_ulong = 0x740e;
467 pub const TIOCSCTTY: ::c_ulong = 0x5480;
468 pub const TIOCGPGRP: ::c_ulong = 0x40047477;
469 pub const TIOCSPGRP: ::c_ulong = 0x80047476;
470 pub const TIOCOUTQ: ::c_ulong = 0x7472;
471 pub const TIOCSTI: ::c_ulong = 0x5472;
472 pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
473 pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
474 pub const TIOCMGET: ::c_ulong = 0x741d;
475 pub const TIOCMBIS: ::c_ulong = 0x741b;
476 pub const TIOCMBIC: ::c_ulong = 0x741c;
477 pub const TIOCMSET: ::c_ulong = 0x741a;
478 pub const FIONREAD: ::c_ulong = 0x467f;
479 pub const TIOCCONS: ::c_ulong = 0x80047478;
480
481 pub const RTLD_DEEPBIND: ::c_int = 0x10;
482 pub const RTLD_GLOBAL: ::c_int = 0x4;
483 pub const RTLD_NOLOAD: ::c_int = 0x8;
484
485 pub const SYS_gettid: ::c_long = 4222; // Valid for O32
486
487 extern {
488 pub fn sysctl(name: *mut ::c_int,
489 namelen: ::c_int,
490 oldp: *mut ::c_void,
491 oldlenp: *mut ::size_t,
492 newp: *mut ::c_void,
493 newlen: ::size_t)
494 -> ::c_int;
495 pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
496 pub fn backtrace(buf: *mut *mut ::c_void,
497 sz: ::c_int) -> ::c_int;
498 pub fn glob64(pattern: *const ::c_char,
499 flags: ::c_int,
500 errfunc: ::dox::Option<extern fn(epath: *const ::c_char,
501 errno: ::c_int)
502 -> ::c_int>,
503 pglob: *mut glob64_t) -> ::c_int;
504 pub fn globfree64(pglob: *mut glob64_t);
505 pub fn getnameinfo(sa: *const ::sockaddr,
506 salen: ::socklen_t,
507 host: *mut ::c_char,
508 hostlen: ::socklen_t,
509 serv: *mut ::c_char,
510 sevlen: ::socklen_t,
511 flags: ::c_int) -> ::c_int;
512 pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
513 pub fn ptrace(request: ::c_uint, ...) -> ::c_long;
514 pub fn pthread_attr_getaffinity_np(attr: *const ::pthread_attr_t,
515 cpusetsize: ::size_t,
516 cpuset: *mut ::cpu_set_t) -> ::c_int;
517 pub fn pthread_attr_setaffinity_np(attr: *mut ::pthread_attr_t,
518 cpusetsize: ::size_t,
519 cpuset: *const ::cpu_set_t) -> ::c_int;
520 }