]> git.proxmox.com Git - rustc.git/blob - src/liblibc/src/unix/notbsd/linux/other/mod.rs
Imported Upstream version 1.8.0+dfsg1
[rustc.git] / src / liblibc / src / unix / notbsd / linux / other / mod.rs
1 pub type fsblkcnt_t = ::c_ulong;
2 pub type fsfilcnt_t = ::c_ulong;
3 pub type rlim_t = c_ulong;
4
5 s! {
6 pub struct sigaction {
7 pub sa_sigaction: ::sighandler_t,
8 pub sa_mask: ::sigset_t,
9 pub sa_flags: ::c_int,
10 _restorer: *mut ::c_void,
11 }
12
13 pub struct stack_t {
14 pub ss_sp: *mut ::c_void,
15 pub ss_flags: ::c_int,
16 pub ss_size: ::size_t
17 }
18
19 pub struct siginfo_t {
20 pub si_signo: ::c_int,
21 pub si_errno: ::c_int,
22 pub si_code: ::c_int,
23 pub _pad: [::c_int; 29],
24 _align: [usize; 0],
25 }
26
27 pub struct glob64_t {
28 pub gl_pathc: ::size_t,
29 pub gl_pathv: *mut *mut ::c_char,
30 pub gl_offs: ::size_t,
31 pub gl_flags: ::c_int,
32
33 __unused1: *mut ::c_void,
34 __unused2: *mut ::c_void,
35 __unused3: *mut ::c_void,
36 __unused4: *mut ::c_void,
37 __unused5: *mut ::c_void,
38 }
39
40
41 pub struct ucred {
42 pub pid: ::pid_t,
43 pub uid: ::uid_t,
44 pub gid: ::gid_t,
45 }
46
47 pub struct statfs {
48 pub f_type: __fsword_t,
49 pub f_bsize: __fsword_t,
50 pub f_blocks: ::fsblkcnt_t,
51 pub f_bfree: ::fsblkcnt_t,
52 pub f_bavail: ::fsblkcnt_t,
53
54 pub f_files: ::fsfilcnt_t,
55 pub f_ffree: ::fsfilcnt_t,
56 pub f_fsid: ::fsid_t,
57
58 pub f_namelen: __fsword_t,
59 pub f_frsize: __fsword_t,
60 f_spare: [__fsword_t; 5],
61 }
62
63 pub struct msghdr {
64 pub msg_name: *mut ::c_void,
65 pub msg_namelen: ::socklen_t,
66 pub msg_iov: *mut ::iovec,
67 pub msg_iovlen: ::size_t,
68 pub msg_control: *mut ::c_void,
69 pub msg_controllen: ::size_t,
70 pub msg_flags: ::c_int,
71 }
72
73 pub struct termios {
74 pub c_iflag: ::tcflag_t,
75 pub c_oflag: ::tcflag_t,
76 pub c_cflag: ::tcflag_t,
77 pub c_lflag: ::tcflag_t,
78 pub c_line: ::cc_t,
79 pub c_cc: [::cc_t; ::NCCS],
80 pub c_ispeed: ::speed_t,
81 pub c_ospeed: ::speed_t,
82 }
83
84 pub struct flock {
85 pub l_type: ::c_short,
86 pub l_whence: ::c_short,
87 pub l_start: ::off_t,
88 pub l_len: ::off_t,
89 pub l_pid: ::pid_t,
90 }
91 }
92
93 pub const RLIMIT_RSS: ::c_int = 5;
94 pub const RLIMIT_NOFILE: ::c_int = 7;
95 pub const RLIMIT_AS: ::c_int = 9;
96 pub const RLIMIT_NPROC: ::c_int = 6;
97 pub const RLIMIT_MEMLOCK: ::c_int = 8;
98 pub const RLIM_INFINITY: ::rlim_t = !0;
99 pub const RLIMIT_RTTIME: ::c_int = 15;
100 pub const RLIMIT_NLIMITS: ::c_int = 16;
101
102 pub const O_APPEND: ::c_int = 1024;
103 pub const O_CREAT: ::c_int = 64;
104 pub const O_EXCL: ::c_int = 128;
105 pub const O_NOCTTY: ::c_int = 256;
106 pub const O_NONBLOCK: ::c_int = 2048;
107 pub const O_SYNC: ::c_int = 1052672;
108 pub const O_RSYNC: ::c_int = 1052672;
109 pub const O_DSYNC: ::c_int = 4096;
110 pub const O_FSYNC: ::c_int = 0x101000;
111
112 pub const SOCK_NONBLOCK: ::c_int = O_NONBLOCK;
113
114 pub const MAP_ANON: ::c_int = 0x0020;
115 pub const MAP_ANONYMOUS: ::c_int = 0x0020;
116 pub const MAP_GROWSDOWN: ::c_int = 0x0100;
117 pub const MAP_DENYWRITE: ::c_int = 0x0800;
118 pub const MAP_EXECUTABLE: ::c_int = 0x01000;
119 pub const MAP_POPULATE: ::c_int = 0x08000;
120 pub const MAP_NONBLOCK: ::c_int = 0x010000;
121 pub const MAP_STACK: ::c_int = 0x020000;
122
123 pub const EDEADLK: ::c_int = 35;
124 pub const ENAMETOOLONG: ::c_int = 36;
125 pub const ENOLCK: ::c_int = 37;
126 pub const ENOSYS: ::c_int = 38;
127 pub const ENOTEMPTY: ::c_int = 39;
128 pub const ELOOP: ::c_int = 40;
129 pub const ENOMSG: ::c_int = 42;
130 pub const EIDRM: ::c_int = 43;
131 pub const ECHRNG: ::c_int = 44;
132 pub const EL2NSYNC: ::c_int = 45;
133 pub const EL3HLT: ::c_int = 46;
134 pub const EL3RST: ::c_int = 47;
135 pub const ELNRNG: ::c_int = 48;
136 pub const EUNATCH: ::c_int = 49;
137 pub const ENOCSI: ::c_int = 50;
138 pub const EL2HLT: ::c_int = 51;
139 pub const EBADE: ::c_int = 52;
140 pub const EBADR: ::c_int = 53;
141 pub const EXFULL: ::c_int = 54;
142 pub const ENOANO: ::c_int = 55;
143 pub const EBADRQC: ::c_int = 56;
144 pub const EBADSLT: ::c_int = 57;
145 pub const EMULTIHOP: ::c_int = 72;
146 pub const EOVERFLOW: ::c_int = 75;
147 pub const ENOTUNIQ: ::c_int = 76;
148 pub const EBADFD: ::c_int = 77;
149 pub const EBADMSG: ::c_int = 74;
150 pub const EREMCHG: ::c_int = 78;
151 pub const ELIBACC: ::c_int = 79;
152 pub const ELIBBAD: ::c_int = 80;
153 pub const ELIBSCN: ::c_int = 81;
154 pub const ELIBMAX: ::c_int = 82;
155 pub const ELIBEXEC: ::c_int = 83;
156 pub const EILSEQ: ::c_int = 84;
157 pub const ERESTART: ::c_int = 85;
158 pub const ESTRPIPE: ::c_int = 86;
159 pub const EUSERS: ::c_int = 87;
160 pub const ENOTSOCK: ::c_int = 88;
161 pub const EDESTADDRREQ: ::c_int = 89;
162 pub const EMSGSIZE: ::c_int = 90;
163 pub const EPROTOTYPE: ::c_int = 91;
164 pub const ENOPROTOOPT: ::c_int = 92;
165 pub const EPROTONOSUPPORT: ::c_int = 93;
166 pub const ESOCKTNOSUPPORT: ::c_int = 94;
167 pub const EOPNOTSUPP: ::c_int = 95;
168 pub const EPFNOSUPPORT: ::c_int = 96;
169 pub const EAFNOSUPPORT: ::c_int = 97;
170 pub const EADDRINUSE: ::c_int = 98;
171 pub const EADDRNOTAVAIL: ::c_int = 99;
172 pub const ENETDOWN: ::c_int = 100;
173 pub const ENETUNREACH: ::c_int = 101;
174 pub const ENETRESET: ::c_int = 102;
175 pub const ECONNABORTED: ::c_int = 103;
176 pub const ECONNRESET: ::c_int = 104;
177 pub const ENOBUFS: ::c_int = 105;
178 pub const EISCONN: ::c_int = 106;
179 pub const ENOTCONN: ::c_int = 107;
180 pub const ESHUTDOWN: ::c_int = 108;
181 pub const ETOOMANYREFS: ::c_int = 109;
182 pub const ETIMEDOUT: ::c_int = 110;
183 pub const ECONNREFUSED: ::c_int = 111;
184 pub const EHOSTDOWN: ::c_int = 112;
185 pub const EHOSTUNREACH: ::c_int = 113;
186 pub const EALREADY: ::c_int = 114;
187 pub const EINPROGRESS: ::c_int = 115;
188 pub const ESTALE: ::c_int = 116;
189 pub const EUCLEAN: ::c_int = 117;
190 pub const ENOTNAM: ::c_int = 118;
191 pub const ENAVAIL: ::c_int = 119;
192 pub const EISNAM: ::c_int = 120;
193 pub const EREMOTEIO: ::c_int = 121;
194 pub const EDQUOT: ::c_int = 122;
195 pub const ENOMEDIUM: ::c_int = 123;
196 pub const EMEDIUMTYPE: ::c_int = 124;
197 pub const ECANCELED: ::c_int = 125;
198 pub const ENOKEY: ::c_int = 126;
199 pub const EKEYEXPIRED: ::c_int = 127;
200 pub const EKEYREVOKED: ::c_int = 128;
201 pub const EKEYREJECTED: ::c_int = 129;
202 pub const EOWNERDEAD: ::c_int = 130;
203 pub const ENOTRECOVERABLE: ::c_int = 131;
204 pub const EHWPOISON: ::c_int = 133;
205 pub const ERFKILL: ::c_int = 132;
206
207 pub const SOCK_STREAM: ::c_int = 1;
208 pub const SOCK_DGRAM: ::c_int = 2;
209
210 pub const SOL_SOCKET: ::c_int = 1;
211
212 pub const SO_REUSEADDR: ::c_int = 2;
213 pub const SO_TYPE: ::c_int = 3;
214 pub const SO_ERROR: ::c_int = 4;
215 pub const SO_DONTROUTE: ::c_int = 5;
216 pub const SO_BROADCAST: ::c_int = 6;
217 pub const SO_SNDBUF: ::c_int = 7;
218 pub const SO_RCVBUF: ::c_int = 8;
219 pub const SO_KEEPALIVE: ::c_int = 9;
220 pub const SO_OOBINLINE: ::c_int = 10;
221 pub const SO_LINGER: ::c_int = 13;
222 pub const SO_REUSEPORT: ::c_int = 15;
223 pub const SO_ACCEPTCONN: ::c_int = 30;
224
225 pub const TCP_COOKIE_TRANSACTIONS: ::c_int = 15;
226 pub const TCP_THIN_LINEAR_TIMEOUTS: ::c_int = 16;
227 pub const TCP_THIN_DUPACK: ::c_int = 17;
228 pub const TCP_USER_TIMEOUT: ::c_int = 18;
229 pub const TCP_REPAIR: ::c_int = 19;
230 pub const TCP_REPAIR_QUEUE: ::c_int = 20;
231 pub const TCP_QUEUE_SEQ: ::c_int = 21;
232 pub const TCP_REPAIR_OPTIONS: ::c_int = 22;
233 pub const TCP_FASTOPEN: ::c_int = 23;
234 pub const TCP_TIMESTAMP: ::c_int = 24;
235
236 pub const SA_ONSTACK: ::c_int = 0x08000000;
237 pub const SA_SIGINFO: ::c_int = 0x00000004;
238 pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
239
240 pub const SIGCHLD: ::c_int = 17;
241 pub const SIGBUS: ::c_int = 7;
242 pub const SIGUSR1: ::c_int = 10;
243 pub const SIGUSR2: ::c_int = 12;
244 pub const SIGCONT: ::c_int = 18;
245 pub const SIGSTOP: ::c_int = 19;
246 pub const SIGTSTP: ::c_int = 20;
247 pub const SIGURG: ::c_int = 23;
248 pub const SIGIO: ::c_int = 29;
249 pub const SIGSYS: ::c_int = 31;
250 pub const SIGSTKFLT: ::c_int = 16;
251 pub const SIGUNUSED: ::c_int = 31;
252 pub const SIGTTIN: ::c_int = 21;
253 pub const SIGTTOU: ::c_int = 22;
254 pub const SIGXCPU: ::c_int = 24;
255 pub const SIGXFSZ: ::c_int = 25;
256 pub const SIGVTALRM: ::c_int = 26;
257 pub const SIGPROF: ::c_int = 27;
258 pub const SIGWINCH: ::c_int = 28;
259 pub const SIGPOLL: ::c_int = 29;
260 pub const SIGPWR: ::c_int = 30;
261 pub const SIG_SETMASK: ::c_int = 2;
262 pub const SIG_BLOCK: ::c_int = 0x000000;
263 pub const SIG_UNBLOCK: ::c_int = 0x01;
264
265 pub const FALLOC_FL_KEEP_SIZE: ::c_int = 0x01;
266 pub const FALLOC_FL_PUNCH_HOLE: ::c_int = 0x02;
267
268 pub const BUFSIZ: ::c_uint = 8192;
269 pub const TMP_MAX: ::c_uint = 238328;
270 pub const FOPEN_MAX: ::c_uint = 16;
271 pub const POSIX_MADV_DONTNEED: ::c_int = 4;
272 pub const _SC_2_C_VERSION: ::c_int = 96;
273 pub const RUSAGE_THREAD: ::c_int = 1;
274 pub const O_ACCMODE: ::c_int = 3;
275 pub const O_ASYNC: ::c_int = 0x2000;
276 pub const O_NDELAY: ::c_int = 0x800;
277 pub const RUSAGE_CHILDREN: ::c_int = -1;
278 pub const ST_RELATIME: ::c_ulong = 4096;
279 pub const NI_MAXHOST: ::socklen_t = 1025;
280
281 pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
282 pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
283 pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;
284 pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45;
285 pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53;
286 pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53;
287 pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
288 pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
289 pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
290 pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6;
291 pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660;
292 pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6;
293 pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f;
294 pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f;
295 pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468;
296 pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478;
297 pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44;
298 pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c;
299 pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969;
300 pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1;
301 pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0;
302 pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f;
303 pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973;
304 pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
305 pub const TMPFS_MAGIC: ::c_long = 0x01021994;
306 pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
307
308 pub const VEOF: usize = 4;
309 pub const VEOL: usize = 11;
310 pub const VEOL2: usize = 16;
311 pub const VMIN: usize = 6;
312 pub const IEXTEN: ::tcflag_t = 0x00008000;
313 pub const TOSTOP: ::tcflag_t = 0x00000100;
314 pub const FLUSHO: ::tcflag_t = 0x00001000;
315 pub const IUTF8: ::tcflag_t = 0x00004000;
316
317 pub const CPU_SETSIZE: ::c_int = 0x400;
318
319 pub const EXTPROC: ::tcflag_t = 0x00010000;
320
321 pub const QFMT_VFS_V1: ::c_int = 4;
322
323 pub const PTRACE_TRACEME: ::c_uint = 0;
324 pub const PTRACE_PEEKTEXT: ::c_uint = 1;
325 pub const PTRACE_PEEKDATA: ::c_uint = 2;
326 pub const PTRACE_PEEKUSER: ::c_uint = 3;
327 pub const PTRACE_POKETEXT: ::c_uint = 4;
328 pub const PTRACE_POKEDATA: ::c_uint = 5;
329 pub const PTRACE_POKEUSER: ::c_uint = 6;
330 pub const PTRACE_CONT: ::c_uint = 7;
331 pub const PTRACE_KILL: ::c_uint = 8;
332 pub const PTRACE_SINGLESTEP: ::c_uint = 9;
333 pub const PTRACE_ATTACH: ::c_uint = 16;
334 pub const PTRACE_DETACH: ::c_uint = 17;
335 pub const PTRACE_SYSCALL: ::c_uint = 24;
336 pub const PTRACE_SETOPTIONS: ::c_uint = 0x4200;
337 pub const PTRACE_GETEVENTMSG: ::c_uint = 0x4201;
338 pub const PTRACE_GETSIGINFO: ::c_uint = 0x4202;
339 pub const PTRACE_SETSIGINFO: ::c_uint = 0x4203;
340 pub const PTRACE_GETREGSET: ::c_uint = 0x4204;
341 pub const PTRACE_SETREGSET: ::c_uint = 0x4205;
342 pub const PTRACE_SEIZE: ::c_uint = 0x4206;
343 pub const PTRACE_INTERRUPT: ::c_uint = 0x4207;
344 pub const PTRACE_LISTEN: ::c_uint = 0x4208;
345 pub const PTRACE_PEEKSIGINFO: ::c_uint = 0x4209;
346
347 pub const MADV_DODUMP: ::c_int = 17;
348 pub const MADV_DONTDUMP: ::c_int = 16;
349
350 pub const EPOLLWAKEUP: ::c_int = 0x20000000;
351
352 pub const MADV_HUGEPAGE: ::c_int = 14;
353 pub const MADV_NOHUGEPAGE: ::c_int = 15;
354 pub const MAP_HUGETLB: ::c_int = 0x040000;
355
356 pub const EFD_NONBLOCK: ::c_int = 0x800;
357
358 pub const F_GETLK: ::c_int = 5;
359 pub const F_GETOWN: ::c_int = 9;
360 pub const F_SETOWN: ::c_int = 8;
361 pub const F_SETLK: ::c_int = 6;
362 pub const F_SETLKW: ::c_int = 7;
363
364 pub const SFD_NONBLOCK: ::c_int = 0x0800;
365
366 pub const TCSANOW: ::c_int = 0;
367 pub const TCSADRAIN: ::c_int = 1;
368 pub const TCSAFLUSH: ::c_int = 2;
369
370 pub const TCGETS: ::c_ulong = 0x5401;
371 pub const TCSETS: ::c_ulong = 0x5402;
372 pub const TCSETSW: ::c_ulong = 0x5403;
373 pub const TCSETSF: ::c_ulong = 0x5404;
374 pub const TCGETA: ::c_ulong = 0x5405;
375 pub const TCSETA: ::c_ulong = 0x5406;
376 pub const TCSETAW: ::c_ulong = 0x5407;
377 pub const TCSETAF: ::c_ulong = 0x5408;
378 pub const TCSBRK: ::c_ulong = 0x5409;
379 pub const TCXONC: ::c_ulong = 0x540A;
380 pub const TCFLSH: ::c_ulong = 0x540B;
381 pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
382 pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
383 pub const TIOCINQ: ::c_ulong = 0x541B;
384 pub const TIOCLINUX: ::c_ulong = 0x541C;
385 pub const TIOCGSERIAL: ::c_ulong = 0x541E;
386 pub const TIOCEXCL: ::c_ulong = 0x540C;
387 pub const TIOCNXCL: ::c_ulong = 0x540D;
388 pub const TIOCSCTTY: ::c_ulong = 0x540E;
389 pub const TIOCGPGRP: ::c_ulong = 0x540F;
390 pub const TIOCSPGRP: ::c_ulong = 0x5410;
391 pub const TIOCOUTQ: ::c_ulong = 0x5411;
392 pub const TIOCSTI: ::c_ulong = 0x5412;
393 pub const TIOCGWINSZ: ::c_ulong = 0x5413;
394 pub const TIOCSWINSZ: ::c_ulong = 0x5414;
395 pub const TIOCMGET: ::c_ulong = 0x5415;
396 pub const TIOCMBIS: ::c_ulong = 0x5416;
397 pub const TIOCMBIC: ::c_ulong = 0x5417;
398 pub const TIOCMSET: ::c_ulong = 0x5418;
399 pub const FIONREAD: ::c_ulong = 0x541B;
400 pub const TIOCCONS: ::c_ulong = 0x541D;
401
402 pub const RTLD_DEEPBIND: ::c_int = 0x8;
403 pub const RTLD_GLOBAL: ::c_int = 0x100;
404 pub const RTLD_NOLOAD: ::c_int = 0x4;
405
406 cfg_if! {
407 if #[cfg(any(target_arch = "arm", target_arch = "x86",
408 target_arch = "x86_64"))] {
409 pub const PTHREAD_STACK_MIN: ::size_t = 16384;
410 } else {
411 pub const PTHREAD_STACK_MIN: ::size_t = 131072;
412 }
413 }
414
415 extern {
416 pub fn sysctl(name: *mut ::c_int,
417 namelen: ::c_int,
418 oldp: *mut ::c_void,
419 oldlenp: *mut ::size_t,
420 newp: *mut ::c_void,
421 newlen: ::size_t)
422 -> ::c_int;
423 pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
424 pub fn backtrace(buf: *mut *mut ::c_void,
425 sz: ::c_int) -> ::c_int;
426 pub fn glob64(pattern: *const ::c_char,
427 flags: ::c_int,
428 errfunc: ::dox::Option<extern "C" fn(epath: *const ::c_char,
429 errno: ::c_int) -> ::c_int>,
430 pglob: *mut glob64_t) -> ::c_int;
431 pub fn globfree64(pglob: *mut glob64_t);
432 pub fn getnameinfo(sa: *const ::sockaddr,
433 salen: ::socklen_t,
434 host: *mut ::c_char,
435 hostlen: ::socklen_t,
436 serv: *mut ::c_char,
437 sevlen: ::socklen_t,
438 flags: ::c_int) -> ::c_int;
439 pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
440 pub fn ptrace(request: ::c_uint, ...) -> ::c_long;
441 pub fn pthread_attr_getaffinity_np(attr: *const ::pthread_attr_t,
442 cpusetsize: ::size_t,
443 cpuset: *mut ::cpu_set_t) -> ::c_int;
444 pub fn pthread_attr_setaffinity_np(attr: *mut ::pthread_attr_t,
445 cpusetsize: ::size_t,
446 cpuset: *const ::cpu_set_t) -> ::c_int;
447 }
448
449 cfg_if! {
450 if #[cfg(any(target_arch = "x86",
451 target_arch = "arm",
452 target_arch = "powerpc"))] {
453 mod b32;
454 pub use self::b32::*;
455 } else if #[cfg(any(target_arch = "x86_64",
456 target_arch = "aarch64",
457 target_arch = "powerpc64"))] {
458 mod b64;
459 pub use self::b64::*;
460 } else {
461 // ...
462 }
463 }
464
465 s! {
466 pub struct ipc_perm {
467 pub __key: ::key_t,
468 pub uid: ::uid_t,
469 pub gid: ::gid_t,
470 pub cuid: ::uid_t,
471 pub cgid: ::gid_t,
472 pub mode: ::c_ushort,
473 __pad1: ::c_ushort,
474 pub __seq: ::c_ushort,
475 __pad2: ::c_ushort,
476 __unused1: ::c_ulong,
477 __unused2: ::c_ulong
478 }
479
480 pub struct shmid_ds {
481 pub shm_perm: ::ipc_perm,
482 pub shm_segsz: ::size_t,
483 pub shm_atime: ::time_t,
484 #[cfg(target_pointer_width = "32")]
485 __unused1: ::c_ulong,
486 pub shm_dtime: ::time_t,
487 #[cfg(target_pointer_width = "32")]
488 __unused2: ::c_ulong,
489 pub shm_ctime: ::time_t,
490 #[cfg(target_pointer_width = "32")]
491 __unused3: ::c_ulong,
492 pub shm_cpid: ::pid_t,
493 pub shm_lpid: ::pid_t,
494 pub shm_nattch: ::shmatt_t,
495 __unused4: ::c_ulong,
496 __unused5: ::c_ulong
497 }
498 }