1 pub type __priority_which_t
= ::c_uint
;
5 pub aio_fildes
: ::c_int
,
6 pub aio_lio_opcode
: ::c_int
,
7 pub aio_reqprio
: ::c_int
,
8 pub aio_buf
: *mut ::c_void
,
9 pub aio_nbytes
: ::size_t
,
10 pub aio_sigevent
: ::sigevent
,
11 __next_prio
: *mut aiocb
,
14 __error_code
: ::c_int
,
15 __return_value
: ::ssize_t
,
16 pub aio_offset
: off_t
,
17 #[cfg(all(not(target_arch = "x86_64"), target_pointer_width = "32"))]
18 __unused1
: [::c_char
; 4],
19 __glibc_reserved
: [::c_char
; 32]
22 pub struct __exit_status
{
23 pub e_termination
: ::c_short
,
24 pub e_exit
: ::c_short
,
27 pub struct __timeval
{
28 pub tv_sec
: ::int32_t
,
29 pub tv_usec
: ::int32_t
,
32 pub struct sigaction
{
33 pub sa_sigaction
: ::sighandler_t
,
34 pub sa_mask
: ::sigset_t
,
35 #[cfg(target_arch = "sparc64")]
37 pub sa_flags
: ::c_int
,
38 pub sa_restorer
: ::Option
<extern fn()>,
42 pub ss_sp
: *mut ::c_void
,
43 pub ss_flags
: ::c_int
,
47 pub struct siginfo_t
{
48 pub si_signo
: ::c_int
,
49 pub si_errno
: ::c_int
,
53 note
="Please leave a comment on \
54 https://github.com/rust-lang/libc/pull/1316 if you're using \
57 pub _pad
: [::c_int
; 29],
58 #[cfg(target_arch = "x86_64")]
60 #[cfg(not(target_arch = "x86_64"))]
65 pub gl_pathc
: ::size_t
,
66 pub gl_pathv
: *mut *mut ::c_char
,
67 pub gl_offs
: ::size_t
,
68 pub gl_flags
: ::c_int
,
70 __unused1
: *mut ::c_void
,
71 __unused2
: *mut ::c_void
,
72 __unused3
: *mut ::c_void
,
73 __unused4
: *mut ::c_void
,
74 __unused5
: *mut ::c_void
,
78 pub f_type
: __fsword_t
,
79 pub f_bsize
: __fsword_t
,
80 pub f_blocks
: ::fsblkcnt_t
,
81 pub f_bfree
: ::fsblkcnt_t
,
82 pub f_bavail
: ::fsblkcnt_t
,
84 pub f_files
: ::fsfilcnt_t
,
85 pub f_ffree
: ::fsfilcnt_t
,
88 pub f_namelen
: __fsword_t
,
89 pub f_frsize
: __fsword_t
,
90 f_spare
: [__fsword_t
; 5],
94 pub msg_name
: *mut ::c_void
,
95 pub msg_namelen
: ::socklen_t
,
96 pub msg_iov
: *mut ::iovec
,
97 pub msg_iovlen
: ::size_t
,
98 pub msg_control
: *mut ::c_void
,
99 pub msg_controllen
: ::size_t
,
100 pub msg_flags
: ::c_int
,
104 pub cmsg_len
: ::size_t
,
105 pub cmsg_level
: ::c_int
,
106 pub cmsg_type
: ::c_int
,
110 pub c_iflag
: ::tcflag_t
,
111 pub c_oflag
: ::tcflag_t
,
112 pub c_cflag
: ::tcflag_t
,
113 pub c_lflag
: ::tcflag_t
,
115 pub c_cc
: [::cc_t
; ::NCCS
],
116 #[cfg(not(target_arch = "sparc64"))]
117 pub c_ispeed
: ::speed_t
,
118 #[cfg(not(target_arch = "sparc64"))]
119 pub c_ospeed
: ::speed_t
,
123 pub l_type
: ::c_short
,
124 pub l_whence
: ::c_short
,
125 pub l_start
: ::off_t
,
130 pub struct mallinfo
{
132 pub ordblks
: ::c_int
,
136 pub usmblks
: ::c_int
,
137 pub fsmblks
: ::c_int
,
138 pub uordblks
: ::c_int
,
139 pub fordblks
: ::c_int
,
140 pub keepcost
: ::c_int
,
143 pub struct nlmsghdr
{
146 pub nlmsg_flags
: u16,
151 pub struct nlmsgerr
{
156 pub struct nl_pktinfo
{
160 pub struct nl_mmap_req
{
161 pub nm_block_size
: ::c_uint
,
162 pub nm_block_nr
: ::c_uint
,
163 pub nm_frame_size
: ::c_uint
,
164 pub nm_frame_nr
: ::c_uint
,
167 pub struct nl_mmap_hdr
{
168 pub nm_status
: ::c_uint
,
169 pub nm_len
: ::c_uint
,
182 pub rt_pad1
: ::c_ulong
,
183 pub rt_dst
: ::sockaddr
,
184 pub rt_gateway
: ::sockaddr
,
185 pub rt_genmask
: ::sockaddr
,
186 pub rt_flags
: ::c_ushort
,
187 pub rt_pad2
: ::c_short
,
188 pub rt_pad3
: ::c_ulong
,
189 pub rt_tos
: ::c_uchar
,
190 pub rt_class
: ::c_uchar
,
191 #[cfg(target_pointer_width = "64")]
192 pub rt_pad4
: [::c_short
; 3usize
],
193 #[cfg(not(target_pointer_width = "64"))]
194 pub rt_pad4
: ::c_short
,
195 pub rt_metric
: ::c_short
,
196 pub rt_dev
: *mut ::c_char
,
197 pub rt_mtu
: ::c_ulong
,
198 pub rt_window
: ::c_ulong
,
199 pub rt_irtt
: ::c_ushort
,
204 pub unsafe fn si_addr(&self) -> *mut ::c_void
{
206 struct siginfo_sigfault
{
210 si_addr
: *mut ::c_void
212 (*(self as *const siginfo_t
as *const siginfo_sigfault
)).si_addr
218 pub ut_type
: ::c_short
,
220 pub ut_line
: [::c_char
; __UT_LINESIZE
],
221 pub ut_id
: [::c_char
; 4],
223 pub ut_user
: [::c_char
; __UT_NAMESIZE
],
224 pub ut_host
: [::c_char
; __UT_HOSTSIZE
],
225 pub ut_exit
: __exit_status
,
227 #[cfg(any(target_arch = "aarch64",
228 all(target_pointer_width
= "32",
229 not(target_arch
= "x86_64"))))]
230 pub ut_session
: ::c_long
,
231 #[cfg(any(target_arch = "aarch64",
232 all(target_pointer_width
= "32",
233 not(target_arch
= "x86_64"))))]
234 pub ut_tv
: ::timeval
,
236 #[cfg(not(any(target_arch = "aarch64",
237 all(target_pointer_width
= "32",
238 not(target_arch
= "x86_64")))))]
239 pub ut_session
: ::int32_t
,
240 #[cfg(not(any(target_arch = "aarch64",
241 all(target_pointer_width
= "32",
242 not(target_arch
= "x86_64")))))]
243 pub ut_tv
: __timeval
,
245 pub ut_addr_v6
: [::int32_t
; 4],
246 __glibc_reserved
: [::c_char
; 20],
251 if #[cfg(feature = "extra_traits")] {
252 impl PartialEq
for utmpx
{
253 fn eq(&self, other
: &utmpx
) -> bool
{
254 self.ut_type
== other
.ut_type
255 && self.ut_pid
== other
.ut_pid
256 && self.ut_line
== other
.ut_line
257 && self.ut_id
== other
.ut_id
258 && self.ut_user
== other
.ut_user
262 .zip(other
.ut_host
.iter())
264 && self.ut_exit
== other
.ut_exit
265 && self.ut_session
== other
.ut_session
266 && self.ut_tv
== other
.ut_tv
267 && self.ut_addr_v6
== other
.ut_addr_v6
268 && self.__glibc_reserved
== other
.__glibc_reserved
274 impl ::fmt
::Debug
for utmpx
{
275 fn fmt(&self, f
: &mut ::fmt
::Formatter
) -> ::fmt
::Result
{
276 f
.debug_struct("utmpx")
277 .field("ut_type", &self.ut_type
)
278 .field("ut_pid", &self.ut_pid
)
279 .field("ut_line", &self.ut_line
)
280 .field("ut_id", &self.ut_id
)
281 .field("ut_user", &self.ut_user
)
282 // FIXME: .field("ut_host", &self.ut_host)
283 .field("ut_exit", &self.ut_exit
)
284 .field("ut_session", &self.ut_session
)
285 .field("ut_tv", &self.ut_tv
)
286 .field("ut_addr_v6", &self.ut_addr_v6
)
287 .field("__glibc_reserved", &self.__glibc_reserved
)
292 impl ::hash
::Hash
for utmpx
{
293 fn hash
<H
: ::hash
::Hasher
>(&self, state
: &mut H
) {
294 self.ut_type
.hash(state
);
295 self.ut_pid
.hash(state
);
296 self.ut_line
.hash(state
);
297 self.ut_id
.hash(state
);
298 self.ut_user
.hash(state
);
299 self.ut_host
.hash(state
);
300 self.ut_exit
.hash(state
);
301 self.ut_session
.hash(state
);
302 self.ut_tv
.hash(state
);
303 self.ut_addr_v6
.hash(state
);
304 self.__glibc_reserved
.hash(state
);
310 pub const __UT_LINESIZE
: usize = 32;
311 pub const __UT_NAMESIZE
: usize = 32;
312 pub const __UT_HOSTSIZE
: usize = 256;
313 pub const EMPTY
: ::c_short
= 0;
314 pub const RUN_LVL
: ::c_short
= 1;
315 pub const BOOT_TIME
: ::c_short
= 2;
316 pub const NEW_TIME
: ::c_short
= 3;
317 pub const OLD_TIME
: ::c_short
= 4;
318 pub const INIT_PROCESS
: ::c_short
= 5;
319 pub const LOGIN_PROCESS
: ::c_short
= 6;
320 pub const USER_PROCESS
: ::c_short
= 7;
321 pub const DEAD_PROCESS
: ::c_short
= 8;
322 pub const ACCOUNTING
: ::c_short
= 9;
324 pub const RLIMIT_RSS
: ::c_int
= 5;
325 pub const RLIMIT_AS
: ::c_int
= 9;
326 pub const RLIMIT_MEMLOCK
: ::c_int
= 8;
327 pub const RLIM_INFINITY
: ::rlim_t
= !0;
328 pub const RLIMIT_RTTIME
: ::c_int
= 15;
329 pub const RLIMIT_NLIMITS
: ::c_int
= 16;
331 pub const SOCK_NONBLOCK
: ::c_int
= O_NONBLOCK
;
333 pub const SOL_RXRPC
: ::c_int
= 272;
334 pub const SOL_PPPOL2TP
: ::c_int
= 273;
335 pub const SOL_PNPIPE
: ::c_int
= 275;
336 pub const SOL_RDS
: ::c_int
= 276;
337 pub const SOL_IUCV
: ::c_int
= 277;
338 pub const SOL_CAIF
: ::c_int
= 278;
339 pub const SOL_NFC
: ::c_int
= 280;
340 pub const SOL_XDP
: ::c_int
= 283;
342 pub const MSG_TRYHARD
: ::c_int
= 4;
344 pub const LC_PAPER
: ::c_int
= 7;
345 pub const LC_NAME
: ::c_int
= 8;
346 pub const LC_ADDRESS
: ::c_int
= 9;
347 pub const LC_TELEPHONE
: ::c_int
= 10;
348 pub const LC_MEASUREMENT
: ::c_int
= 11;
349 pub const LC_IDENTIFICATION
: ::c_int
= 12;
350 pub const LC_PAPER_MASK
: ::c_int
= (1 << LC_PAPER
);
351 pub const LC_NAME_MASK
: ::c_int
= (1 << LC_NAME
);
352 pub const LC_ADDRESS_MASK
: ::c_int
= (1 << LC_ADDRESS
);
353 pub const LC_TELEPHONE_MASK
: ::c_int
= (1 << LC_TELEPHONE
);
354 pub const LC_MEASUREMENT_MASK
: ::c_int
= (1 << LC_MEASUREMENT
);
355 pub const LC_IDENTIFICATION_MASK
: ::c_int
= (1 << LC_IDENTIFICATION
);
356 pub const LC_ALL_MASK
: ::c_int
= ::LC_CTYPE_MASK
366 | LC_MEASUREMENT_MASK
367 | LC_IDENTIFICATION_MASK
;
369 pub const MAP_ANON
: ::c_int
= 0x0020;
370 pub const MAP_ANONYMOUS
: ::c_int
= 0x0020;
371 pub const MAP_DENYWRITE
: ::c_int
= 0x0800;
372 pub const MAP_EXECUTABLE
: ::c_int
= 0x01000;
373 pub const MAP_POPULATE
: ::c_int
= 0x08000;
374 pub const MAP_NONBLOCK
: ::c_int
= 0x010000;
375 pub const MAP_STACK
: ::c_int
= 0x020000;
377 pub const ENOTSUP
: ::c_int
= EOPNOTSUPP
;
378 pub const EUCLEAN
: ::c_int
= 117;
379 pub const ENOTNAM
: ::c_int
= 118;
380 pub const ENAVAIL
: ::c_int
= 119;
381 pub const EISNAM
: ::c_int
= 120;
382 pub const EREMOTEIO
: ::c_int
= 121;
384 pub const SOCK_STREAM
: ::c_int
= 1;
385 pub const SOCK_DGRAM
: ::c_int
= 2;
386 pub const SOCK_SEQPACKET
: ::c_int
= 5;
387 pub const SOCK_DCCP
: ::c_int
= 6;
388 pub const SOCK_PACKET
: ::c_int
= 10;
390 pub const TCP_COOKIE_TRANSACTIONS
: ::c_int
= 15;
391 pub const TCP_THIN_LINEAR_TIMEOUTS
: ::c_int
= 16;
392 pub const TCP_THIN_DUPACK
: ::c_int
= 17;
393 pub const TCP_USER_TIMEOUT
: ::c_int
= 18;
394 pub const TCP_REPAIR
: ::c_int
= 19;
395 pub const TCP_REPAIR_QUEUE
: ::c_int
= 20;
396 pub const TCP_QUEUE_SEQ
: ::c_int
= 21;
397 pub const TCP_REPAIR_OPTIONS
: ::c_int
= 22;
398 pub const TCP_FASTOPEN
: ::c_int
= 23;
399 pub const TCP_TIMESTAMP
: ::c_int
= 24;
401 /* DCCP socket options */
402 pub const DCCP_SOCKOPT_PACKET_SIZE
: ::c_int
= 1;
403 pub const DCCP_SOCKOPT_SERVICE
: ::c_int
= 2;
404 pub const DCCP_SOCKOPT_CHANGE_L
: ::c_int
= 3;
405 pub const DCCP_SOCKOPT_CHANGE_R
: ::c_int
= 4;
406 pub const DCCP_SOCKOPT_GET_CUR_MPS
: ::c_int
= 5;
407 pub const DCCP_SOCKOPT_SERVER_TIMEWAIT
: ::c_int
= 6;
408 pub const DCCP_SOCKOPT_SEND_CSCOV
: ::c_int
= 10;
409 pub const DCCP_SOCKOPT_RECV_CSCOV
: ::c_int
= 11;
410 pub const DCCP_SOCKOPT_AVAILABLE_CCIDS
: ::c_int
= 12;
411 pub const DCCP_SOCKOPT_CCID
: ::c_int
= 13;
412 pub const DCCP_SOCKOPT_TX_CCID
: ::c_int
= 14;
413 pub const DCCP_SOCKOPT_RX_CCID
: ::c_int
= 15;
414 pub const DCCP_SOCKOPT_QPOLICY_ID
: ::c_int
= 16;
415 pub const DCCP_SOCKOPT_QPOLICY_TXQLEN
: ::c_int
= 17;
416 pub const DCCP_SOCKOPT_CCID_RX_INFO
: ::c_int
= 128;
417 pub const DCCP_SOCKOPT_CCID_TX_INFO
: ::c_int
= 192;
419 /// maximum number of services provided on the same listening port
420 pub const DCCP_SERVICE_LIST_MAX_LEN
: ::c_int
= 32;
422 pub const SIGTTIN
: ::c_int
= 21;
423 pub const SIGTTOU
: ::c_int
= 22;
424 pub const SIGXCPU
: ::c_int
= 24;
425 pub const SIGXFSZ
: ::c_int
= 25;
426 pub const SIGVTALRM
: ::c_int
= 26;
427 pub const SIGPROF
: ::c_int
= 27;
428 pub const SIGWINCH
: ::c_int
= 28;
430 pub const SIGEV_THREAD_ID
: ::c_int
= 4;
432 pub const BUFSIZ
: ::c_uint
= 8192;
433 pub const TMP_MAX
: ::c_uint
= 238328;
434 pub const FOPEN_MAX
: ::c_uint
= 16;
435 pub const POSIX_FADV_DONTNEED
: ::c_int
= 4;
436 pub const POSIX_FADV_NOREUSE
: ::c_int
= 5;
437 pub const POSIX_MADV_DONTNEED
: ::c_int
= 4;
438 pub const _SC_EQUIV_CLASS_MAX
: ::c_int
= 41;
439 pub const _SC_CHARCLASS_NAME_MAX
: ::c_int
= 45;
440 pub const _SC_PII
: ::c_int
= 53;
441 pub const _SC_PII_XTI
: ::c_int
= 54;
442 pub const _SC_PII_SOCKET
: ::c_int
= 55;
443 pub const _SC_PII_INTERNET
: ::c_int
= 56;
444 pub const _SC_PII_OSI
: ::c_int
= 57;
445 pub const _SC_POLL
: ::c_int
= 58;
446 pub const _SC_SELECT
: ::c_int
= 59;
447 pub const _SC_PII_INTERNET_STREAM
: ::c_int
= 61;
448 pub const _SC_PII_INTERNET_DGRAM
: ::c_int
= 62;
449 pub const _SC_PII_OSI_COTS
: ::c_int
= 63;
450 pub const _SC_PII_OSI_CLTS
: ::c_int
= 64;
451 pub const _SC_PII_OSI_M
: ::c_int
= 65;
452 pub const _SC_T_IOV_MAX
: ::c_int
= 66;
453 pub const _SC_2_C_VERSION
: ::c_int
= 96;
454 pub const _SC_CHAR_BIT
: ::c_int
= 101;
455 pub const _SC_CHAR_MAX
: ::c_int
= 102;
456 pub const _SC_CHAR_MIN
: ::c_int
= 103;
457 pub const _SC_INT_MAX
: ::c_int
= 104;
458 pub const _SC_INT_MIN
: ::c_int
= 105;
459 pub const _SC_LONG_BIT
: ::c_int
= 106;
460 pub const _SC_WORD_BIT
: ::c_int
= 107;
461 pub const _SC_MB_LEN_MAX
: ::c_int
= 108;
462 pub const _SC_SSIZE_MAX
: ::c_int
= 110;
463 pub const _SC_SCHAR_MAX
: ::c_int
= 111;
464 pub const _SC_SCHAR_MIN
: ::c_int
= 112;
465 pub const _SC_SHRT_MAX
: ::c_int
= 113;
466 pub const _SC_SHRT_MIN
: ::c_int
= 114;
467 pub const _SC_UCHAR_MAX
: ::c_int
= 115;
468 pub const _SC_UINT_MAX
: ::c_int
= 116;
469 pub const _SC_ULONG_MAX
: ::c_int
= 117;
470 pub const _SC_USHRT_MAX
: ::c_int
= 118;
471 pub const _SC_NL_ARGMAX
: ::c_int
= 119;
472 pub const _SC_NL_LANGMAX
: ::c_int
= 120;
473 pub const _SC_NL_MSGMAX
: ::c_int
= 121;
474 pub const _SC_NL_NMAX
: ::c_int
= 122;
475 pub const _SC_NL_SETMAX
: ::c_int
= 123;
476 pub const _SC_NL_TEXTMAX
: ::c_int
= 124;
477 pub const _SC_BASE
: ::c_int
= 134;
478 pub const _SC_C_LANG_SUPPORT
: ::c_int
= 135;
479 pub const _SC_C_LANG_SUPPORT_R
: ::c_int
= 136;
480 pub const _SC_DEVICE_IO
: ::c_int
= 140;
481 pub const _SC_DEVICE_SPECIFIC
: ::c_int
= 141;
482 pub const _SC_DEVICE_SPECIFIC_R
: ::c_int
= 142;
483 pub const _SC_FD_MGMT
: ::c_int
= 143;
484 pub const _SC_FIFO
: ::c_int
= 144;
485 pub const _SC_PIPE
: ::c_int
= 145;
486 pub const _SC_FILE_ATTRIBUTES
: ::c_int
= 146;
487 pub const _SC_FILE_LOCKING
: ::c_int
= 147;
488 pub const _SC_FILE_SYSTEM
: ::c_int
= 148;
489 pub const _SC_MULTI_PROCESS
: ::c_int
= 150;
490 pub const _SC_SINGLE_PROCESS
: ::c_int
= 151;
491 pub const _SC_NETWORKING
: ::c_int
= 152;
492 pub const _SC_REGEX_VERSION
: ::c_int
= 156;
493 pub const _SC_SIGNALS
: ::c_int
= 158;
494 pub const _SC_SYSTEM_DATABASE
: ::c_int
= 162;
495 pub const _SC_SYSTEM_DATABASE_R
: ::c_int
= 163;
496 pub const _SC_USER_GROUPS
: ::c_int
= 166;
497 pub const _SC_USER_GROUPS_R
: ::c_int
= 167;
498 pub const _SC_LEVEL1_ICACHE_SIZE
: ::c_int
= 185;
499 pub const _SC_LEVEL1_ICACHE_ASSOC
: ::c_int
= 186;
500 pub const _SC_LEVEL1_ICACHE_LINESIZE
: ::c_int
= 187;
501 pub const _SC_LEVEL1_DCACHE_SIZE
: ::c_int
= 188;
502 pub const _SC_LEVEL1_DCACHE_ASSOC
: ::c_int
= 189;
503 pub const _SC_LEVEL1_DCACHE_LINESIZE
: ::c_int
= 190;
504 pub const _SC_LEVEL2_CACHE_SIZE
: ::c_int
= 191;
505 pub const _SC_LEVEL2_CACHE_ASSOC
: ::c_int
= 192;
506 pub const _SC_LEVEL2_CACHE_LINESIZE
: ::c_int
= 193;
507 pub const _SC_LEVEL3_CACHE_SIZE
: ::c_int
= 194;
508 pub const _SC_LEVEL3_CACHE_ASSOC
: ::c_int
= 195;
509 pub const _SC_LEVEL3_CACHE_LINESIZE
: ::c_int
= 196;
510 pub const _SC_LEVEL4_CACHE_SIZE
: ::c_int
= 197;
511 pub const _SC_LEVEL4_CACHE_ASSOC
: ::c_int
= 198;
512 pub const _SC_LEVEL4_CACHE_LINESIZE
: ::c_int
= 199;
513 pub const O_ACCMODE
: ::c_int
= 3;
514 pub const ST_RELATIME
: ::c_ulong
= 4096;
515 pub const NI_MAXHOST
: ::socklen_t
= 1025;
517 pub const ADFS_SUPER_MAGIC
: ::c_long
= 0x0000adf5;
518 pub const AFFS_SUPER_MAGIC
: ::c_long
= 0x0000adff;
519 pub const CODA_SUPER_MAGIC
: ::c_long
= 0x73757245;
520 pub const CRAMFS_MAGIC
: ::c_long
= 0x28cd3d45;
521 pub const EFS_SUPER_MAGIC
: ::c_long
= 0x00414a53;
522 pub const EXT2_SUPER_MAGIC
: ::c_long
= 0x0000ef53;
523 pub const EXT3_SUPER_MAGIC
: ::c_long
= 0x0000ef53;
524 pub const EXT4_SUPER_MAGIC
: ::c_long
= 0x0000ef53;
525 pub const HPFS_SUPER_MAGIC
: ::c_long
= 0xf995e849;
526 pub const HUGETLBFS_MAGIC
: ::c_long
= 0x958458f6;
527 pub const ISOFS_SUPER_MAGIC
: ::c_long
= 0x00009660;
528 pub const JFFS2_SUPER_MAGIC
: ::c_long
= 0x000072b6;
529 pub const MINIX_SUPER_MAGIC
: ::c_long
= 0x0000137f;
530 pub const MINIX_SUPER_MAGIC2
: ::c_long
= 0x0000138f;
531 pub const MINIX2_SUPER_MAGIC
: ::c_long
= 0x00002468;
532 pub const MINIX2_SUPER_MAGIC2
: ::c_long
= 0x00002478;
533 pub const MSDOS_SUPER_MAGIC
: ::c_long
= 0x00004d44;
534 pub const NCP_SUPER_MAGIC
: ::c_long
= 0x0000564c;
535 pub const NFS_SUPER_MAGIC
: ::c_long
= 0x00006969;
536 pub const OPENPROM_SUPER_MAGIC
: ::c_long
= 0x00009fa1;
537 pub const PROC_SUPER_MAGIC
: ::c_long
= 0x00009fa0;
538 pub const QNX4_SUPER_MAGIC
: ::c_long
= 0x0000002f;
539 pub const REISERFS_SUPER_MAGIC
: ::c_long
= 0x52654973;
540 pub const SMB_SUPER_MAGIC
: ::c_long
= 0x0000517b;
541 pub const TMPFS_MAGIC
: ::c_long
= 0x01021994;
542 pub const USBDEVICE_SUPER_MAGIC
: ::c_long
= 0x00009fa2;
544 pub const VEOF
: usize = 4;
546 pub const CPU_SETSIZE
: ::c_int
= 0x400;
548 pub const PTRACE_TRACEME
: ::c_uint
= 0;
549 pub const PTRACE_PEEKTEXT
: ::c_uint
= 1;
550 pub const PTRACE_PEEKDATA
: ::c_uint
= 2;
551 pub const PTRACE_PEEKUSER
: ::c_uint
= 3;
552 pub const PTRACE_POKETEXT
: ::c_uint
= 4;
553 pub const PTRACE_POKEDATA
: ::c_uint
= 5;
554 pub const PTRACE_POKEUSER
: ::c_uint
= 6;
555 pub const PTRACE_CONT
: ::c_uint
= 7;
556 pub const PTRACE_KILL
: ::c_uint
= 8;
557 pub const PTRACE_SINGLESTEP
: ::c_uint
= 9;
558 pub const PTRACE_ATTACH
: ::c_uint
= 16;
559 pub const PTRACE_SYSCALL
: ::c_uint
= 24;
560 pub const PTRACE_SETOPTIONS
: ::c_uint
= 0x4200;
561 pub const PTRACE_GETEVENTMSG
: ::c_uint
= 0x4201;
562 pub const PTRACE_GETSIGINFO
: ::c_uint
= 0x4202;
563 pub const PTRACE_SETSIGINFO
: ::c_uint
= 0x4203;
564 pub const PTRACE_GETREGSET
: ::c_uint
= 0x4204;
565 pub const PTRACE_SETREGSET
: ::c_uint
= 0x4205;
566 pub const PTRACE_SEIZE
: ::c_uint
= 0x4206;
567 pub const PTRACE_INTERRUPT
: ::c_uint
= 0x4207;
568 pub const PTRACE_LISTEN
: ::c_uint
= 0x4208;
569 pub const PTRACE_PEEKSIGINFO
: ::c_uint
= 0x4209;
571 pub const EPOLLWAKEUP
: ::c_int
= 0x20000000;
573 pub const MAP_HUGETLB
: ::c_int
= 0x040000;
575 pub const SEEK_DATA
: ::c_int
= 3;
576 pub const SEEK_HOLE
: ::c_int
= 4;
578 pub const TCSANOW
: ::c_int
= 0;
579 pub const TCSADRAIN
: ::c_int
= 1;
580 pub const TCSAFLUSH
: ::c_int
= 2;
582 pub const TIOCLINUX
: ::c_ulong
= 0x541C;
583 pub const TIOCGSERIAL
: ::c_ulong
= 0x541E;
585 pub const RTLD_DEEPBIND
: ::c_int
= 0x8;
586 pub const RTLD_GLOBAL
: ::c_int
= 0x100;
587 pub const RTLD_NOLOAD
: ::c_int
= 0x4;
589 pub const LINUX_REBOOT_MAGIC1
: ::c_int
= 0xfee1dead;
590 pub const LINUX_REBOOT_MAGIC2
: ::c_int
= 672274793;
591 pub const LINUX_REBOOT_MAGIC2A
: ::c_int
= 85072278;
592 pub const LINUX_REBOOT_MAGIC2B
: ::c_int
= 369367448;
593 pub const LINUX_REBOOT_MAGIC2C
: ::c_int
= 537993216;
595 pub const LINUX_REBOOT_CMD_RESTART
: ::c_int
= 0x01234567;
596 pub const LINUX_REBOOT_CMD_HALT
: ::c_int
= 0xCDEF0123;
597 pub const LINUX_REBOOT_CMD_CAD_ON
: ::c_int
= 0x89ABCDEF;
598 pub const LINUX_REBOOT_CMD_CAD_OFF
: ::c_int
= 0x00000000;
599 pub const LINUX_REBOOT_CMD_POWER_OFF
: ::c_int
= 0x4321FEDC;
600 pub const LINUX_REBOOT_CMD_RESTART2
: ::c_int
= 0xA1B2C3D4;
601 pub const LINUX_REBOOT_CMD_SW_SUSPEND
: ::c_int
= 0xD000FCE2;
602 pub const LINUX_REBOOT_CMD_KEXEC
: ::c_int
= 0x45584543;
604 pub const NETLINK_ROUTE
: ::c_int
= 0;
605 pub const NETLINK_UNUSED
: ::c_int
= 1;
606 pub const NETLINK_USERSOCK
: ::c_int
= 2;
607 pub const NETLINK_FIREWALL
: ::c_int
= 3;
608 pub const NETLINK_SOCK_DIAG
: ::c_int
= 4;
609 pub const NETLINK_NFLOG
: ::c_int
= 5;
610 pub const NETLINK_XFRM
: ::c_int
= 6;
611 pub const NETLINK_SELINUX
: ::c_int
= 7;
612 pub const NETLINK_ISCSI
: ::c_int
= 8;
613 pub const NETLINK_AUDIT
: ::c_int
= 9;
614 pub const NETLINK_FIB_LOOKUP
: ::c_int
= 10;
615 pub const NETLINK_CONNECTOR
: ::c_int
= 11;
616 pub const NETLINK_NETFILTER
: ::c_int
= 12;
617 pub const NETLINK_IP6_FW
: ::c_int
= 13;
618 pub const NETLINK_DNRTMSG
: ::c_int
= 14;
619 pub const NETLINK_KOBJECT_UEVENT
: ::c_int
= 15;
620 pub const NETLINK_GENERIC
: ::c_int
= 16;
621 pub const NETLINK_SCSITRANSPORT
: ::c_int
= 18;
622 pub const NETLINK_ECRYPTFS
: ::c_int
= 19;
623 pub const NETLINK_RDMA
: ::c_int
= 20;
624 pub const NETLINK_CRYPTO
: ::c_int
= 21;
625 pub const NETLINK_INET_DIAG
: ::c_int
= NETLINK_SOCK_DIAG
;
627 pub const MAX_LINKS
: ::c_int
= 32;
629 pub const NLM_F_REQUEST
: ::c_int
= 1;
630 pub const NLM_F_MULTI
: ::c_int
= 2;
631 pub const NLM_F_ACK
: ::c_int
= 4;
632 pub const NLM_F_ECHO
: ::c_int
= 8;
633 pub const NLM_F_DUMP_INTR
: ::c_int
= 16;
634 pub const NLM_F_DUMP_FILTERED
: ::c_int
= 32;
636 pub const NLM_F_ROOT
: ::c_int
= 0x100;
637 pub const NLM_F_MATCH
: ::c_int
= 0x200;
638 pub const NLM_F_ATOMIC
: ::c_int
= 0x400;
639 pub const NLM_F_DUMP
: ::c_int
= NLM_F_ROOT
| NLM_F_MATCH
;
641 pub const NLM_F_REPLACE
: ::c_int
= 0x100;
642 pub const NLM_F_EXCL
: ::c_int
= 0x200;
643 pub const NLM_F_CREATE
: ::c_int
= 0x400;
644 pub const NLM_F_APPEND
: ::c_int
= 0x800;
646 pub const NETLINK_ADD_MEMBERSHIP
: ::c_int
= 1;
647 pub const NETLINK_DROP_MEMBERSHIP
: ::c_int
= 2;
648 pub const NETLINK_PKTINFO
: ::c_int
= 3;
649 pub const NETLINK_BROADCAST_ERROR
: ::c_int
= 4;
650 pub const NETLINK_NO_ENOBUFS
: ::c_int
= 5;
651 pub const NETLINK_RX_RING
: ::c_int
= 6;
652 pub const NETLINK_TX_RING
: ::c_int
= 7;
653 pub const NETLINK_LISTEN_ALL_NSID
: ::c_int
= 8;
654 pub const NETLINK_LIST_MEMBERSHIPS
: ::c_int
= 9;
655 pub const NETLINK_CAP_ACK
: ::c_int
= 10;
657 pub const NLA_F_NESTED
: ::c_int
= 1 << 15;
658 pub const NLA_F_NET_BYTEORDER
: ::c_int
= 1 << 14;
659 pub const NLA_TYPE_MASK
: ::c_int
= !(NLA_F_NESTED
| NLA_F_NET_BYTEORDER
);
661 pub const NLA_ALIGNTO
: ::c_int
= 4;
663 pub const GENL_UNS_ADMIN_PERM
: ::c_int
= 0x10;
665 pub const GENL_ID_VFS_DQUOT
: ::c_int
= ::NLMSG_MIN_TYPE
+ 1;
666 pub const GENL_ID_PMCRAID
: ::c_int
= ::NLMSG_MIN_TYPE
+ 2;
668 pub const TIOCM_LE
: ::c_int
= 0x001;
669 pub const TIOCM_DTR
: ::c_int
= 0x002;
670 pub const TIOCM_RTS
: ::c_int
= 0x004;
671 pub const TIOCM_ST
: ::c_int
= 0x008;
672 pub const TIOCM_SR
: ::c_int
= 0x010;
673 pub const TIOCM_CTS
: ::c_int
= 0x020;
674 pub const TIOCM_CAR
: ::c_int
= 0x040;
675 pub const TIOCM_RNG
: ::c_int
= 0x080;
676 pub const TIOCM_DSR
: ::c_int
= 0x100;
677 pub const TIOCM_CD
: ::c_int
= TIOCM_CAR
;
678 pub const TIOCM_RI
: ::c_int
= TIOCM_RNG
;
680 pub const NF_NETDEV_INGRESS
: ::c_int
= 0;
681 pub const NF_NETDEV_NUMHOOKS
: ::c_int
= 1;
683 pub const NFPROTO_INET
: ::c_int
= 1;
684 pub const NFPROTO_NETDEV
: ::c_int
= 5;
686 // linux/netfilter/nf_tables.h
687 pub const NFT_TABLE_MAXNAMELEN
: ::c_int
= 256;
688 pub const NFT_CHAIN_MAXNAMELEN
: ::c_int
= 256;
689 pub const NFT_SET_MAXNAMELEN
: ::c_int
= 256;
690 pub const NFT_OBJ_MAXNAMELEN
: ::c_int
= 256;
691 pub const NFT_USERDATA_MAXLEN
: ::c_int
= 256;
693 pub const NFT_REG_VERDICT
: ::c_int
= 0;
694 pub const NFT_REG_1
: ::c_int
= 1;
695 pub const NFT_REG_2
: ::c_int
= 2;
696 pub const NFT_REG_3
: ::c_int
= 3;
697 pub const NFT_REG_4
: ::c_int
= 4;
698 pub const __NFT_REG_MAX
: ::c_int
= 5;
699 pub const NFT_REG32_00
: ::c_int
= 8;
700 pub const NFT_REG32_01
: ::c_int
= 9;
701 pub const NFT_REG32_02
: ::c_int
= 10;
702 pub const NFT_REG32_03
: ::c_int
= 11;
703 pub const NFT_REG32_04
: ::c_int
= 12;
704 pub const NFT_REG32_05
: ::c_int
= 13;
705 pub const NFT_REG32_06
: ::c_int
= 14;
706 pub const NFT_REG32_07
: ::c_int
= 15;
707 pub const NFT_REG32_08
: ::c_int
= 16;
708 pub const NFT_REG32_09
: ::c_int
= 17;
709 pub const NFT_REG32_10
: ::c_int
= 18;
710 pub const NFT_REG32_11
: ::c_int
= 19;
711 pub const NFT_REG32_12
: ::c_int
= 20;
712 pub const NFT_REG32_13
: ::c_int
= 21;
713 pub const NFT_REG32_14
: ::c_int
= 22;
714 pub const NFT_REG32_15
: ::c_int
= 23;
716 pub const NFT_REG_SIZE
: ::c_int
= 16;
717 pub const NFT_REG32_SIZE
: ::c_int
= 4;
719 pub const NFT_CONTINUE
: ::c_int
= -1;
720 pub const NFT_BREAK
: ::c_int
= -2;
721 pub const NFT_JUMP
: ::c_int
= -3;
722 pub const NFT_GOTO
: ::c_int
= -4;
723 pub const NFT_RETURN
: ::c_int
= -5;
725 pub const NFT_MSG_NEWTABLE
: ::c_int
= 0;
726 pub const NFT_MSG_GETTABLE
: ::c_int
= 1;
727 pub const NFT_MSG_DELTABLE
: ::c_int
= 2;
728 pub const NFT_MSG_NEWCHAIN
: ::c_int
= 3;
729 pub const NFT_MSG_GETCHAIN
: ::c_int
= 4;
730 pub const NFT_MSG_DELCHAIN
: ::c_int
= 5;
731 pub const NFT_MSG_NEWRULE
: ::c_int
= 6;
732 pub const NFT_MSG_GETRULE
: ::c_int
= 7;
733 pub const NFT_MSG_DELRULE
: ::c_int
= 8;
734 pub const NFT_MSG_NEWSET
: ::c_int
= 9;
735 pub const NFT_MSG_GETSET
: ::c_int
= 10;
736 pub const NFT_MSG_DELSET
: ::c_int
= 11;
737 pub const NFT_MSG_NEWSETELEM
: ::c_int
= 12;
738 pub const NFT_MSG_GETSETELEM
: ::c_int
= 13;
739 pub const NFT_MSG_DELSETELEM
: ::c_int
= 14;
740 pub const NFT_MSG_NEWGEN
: ::c_int
= 15;
741 pub const NFT_MSG_GETGEN
: ::c_int
= 16;
742 pub const NFT_MSG_TRACE
: ::c_int
= 17;
744 if #[cfg(not(target_arch = "sparc64"))] {
745 pub const NFT_MSG_NEWOBJ
: ::c_int
= 18;
746 pub const NFT_MSG_GETOBJ
: ::c_int
= 19;
747 pub const NFT_MSG_DELOBJ
: ::c_int
= 20;
748 pub const NFT_MSG_GETOBJ_RESET
: ::c_int
= 21;
751 pub const NFT_MSG_MAX
: ::c_int
= 25;
753 pub const NFT_SET_ANONYMOUS
: ::c_int
= 0x1;
754 pub const NFT_SET_CONSTANT
: ::c_int
= 0x2;
755 pub const NFT_SET_INTERVAL
: ::c_int
= 0x4;
756 pub const NFT_SET_MAP
: ::c_int
= 0x8;
757 pub const NFT_SET_TIMEOUT
: ::c_int
= 0x10;
758 pub const NFT_SET_EVAL
: ::c_int
= 0x20;
760 pub const NFT_SET_POL_PERFORMANCE
: ::c_int
= 0;
761 pub const NFT_SET_POL_MEMORY
: ::c_int
= 1;
763 pub const NFT_SET_ELEM_INTERVAL_END
: ::c_int
= 0x1;
765 pub const NFT_DATA_VALUE
: ::c_uint
= 0;
766 pub const NFT_DATA_VERDICT
: ::c_uint
= 0xffffff00;
768 pub const NFT_DATA_RESERVED_MASK
: ::c_uint
= 0xffffff00;
770 pub const NFT_DATA_VALUE_MAXLEN
: ::c_int
= 64;
772 pub const NFT_BYTEORDER_NTOH
: ::c_int
= 0;
773 pub const NFT_BYTEORDER_HTON
: ::c_int
= 1;
775 pub const NFT_CMP_EQ
: ::c_int
= 0;
776 pub const NFT_CMP_NEQ
: ::c_int
= 1;
777 pub const NFT_CMP_LT
: ::c_int
= 2;
778 pub const NFT_CMP_LTE
: ::c_int
= 3;
779 pub const NFT_CMP_GT
: ::c_int
= 4;
780 pub const NFT_CMP_GTE
: ::c_int
= 5;
782 pub const NFT_RANGE_EQ
: ::c_int
= 0;
783 pub const NFT_RANGE_NEQ
: ::c_int
= 1;
785 pub const NFT_LOOKUP_F_INV
: ::c_int
= (1 << 0);
787 pub const NFT_DYNSET_OP_ADD
: ::c_int
= 0;
788 pub const NFT_DYNSET_OP_UPDATE
: ::c_int
= 1;
790 pub const NFT_DYNSET_F_INV
: ::c_int
= (1 << 0);
792 pub const NFT_PAYLOAD_LL_HEADER
: ::c_int
= 0;
793 pub const NFT_PAYLOAD_NETWORK_HEADER
: ::c_int
= 1;
794 pub const NFT_PAYLOAD_TRANSPORT_HEADER
: ::c_int
= 2;
796 pub const NFT_PAYLOAD_CSUM_NONE
: ::c_int
= 0;
797 pub const NFT_PAYLOAD_CSUM_INET
: ::c_int
= 1;
799 pub const NFT_META_LEN
: ::c_int
= 0;
800 pub const NFT_META_PROTOCOL
: ::c_int
= 1;
801 pub const NFT_META_PRIORITY
: ::c_int
= 2;
802 pub const NFT_META_MARK
: ::c_int
= 3;
803 pub const NFT_META_IIF
: ::c_int
= 4;
804 pub const NFT_META_OIF
: ::c_int
= 5;
805 pub const NFT_META_IIFNAME
: ::c_int
= 6;
806 pub const NFT_META_OIFNAME
: ::c_int
= 7;
807 pub const NFT_META_IIFTYPE
: ::c_int
= 8;
808 pub const NFT_META_OIFTYPE
: ::c_int
= 9;
809 pub const NFT_META_SKUID
: ::c_int
= 10;
810 pub const NFT_META_SKGID
: ::c_int
= 11;
811 pub const NFT_META_NFTRACE
: ::c_int
= 12;
812 pub const NFT_META_RTCLASSID
: ::c_int
= 13;
813 pub const NFT_META_SECMARK
: ::c_int
= 14;
814 pub const NFT_META_NFPROTO
: ::c_int
= 15;
815 pub const NFT_META_L4PROTO
: ::c_int
= 16;
816 pub const NFT_META_BRI_IIFNAME
: ::c_int
= 17;
817 pub const NFT_META_BRI_OIFNAME
: ::c_int
= 18;
818 pub const NFT_META_PKTTYPE
: ::c_int
= 19;
819 pub const NFT_META_CPU
: ::c_int
= 20;
820 pub const NFT_META_IIFGROUP
: ::c_int
= 21;
821 pub const NFT_META_OIFGROUP
: ::c_int
= 22;
822 pub const NFT_META_CGROUP
: ::c_int
= 23;
823 pub const NFT_META_PRANDOM
: ::c_int
= 24;
825 pub const NFT_CT_STATE
: ::c_int
= 0;
826 pub const NFT_CT_DIRECTION
: ::c_int
= 1;
827 pub const NFT_CT_STATUS
: ::c_int
= 2;
828 pub const NFT_CT_MARK
: ::c_int
= 3;
829 pub const NFT_CT_SECMARK
: ::c_int
= 4;
830 pub const NFT_CT_EXPIRATION
: ::c_int
= 5;
831 pub const NFT_CT_HELPER
: ::c_int
= 6;
832 pub const NFT_CT_L3PROTOCOL
: ::c_int
= 7;
833 pub const NFT_CT_SRC
: ::c_int
= 8;
834 pub const NFT_CT_DST
: ::c_int
= 9;
835 pub const NFT_CT_PROTOCOL
: ::c_int
= 10;
836 pub const NFT_CT_PROTO_SRC
: ::c_int
= 11;
837 pub const NFT_CT_PROTO_DST
: ::c_int
= 12;
838 pub const NFT_CT_LABELS
: ::c_int
= 13;
839 pub const NFT_CT_PKTS
: ::c_int
= 14;
840 pub const NFT_CT_BYTES
: ::c_int
= 15;
842 pub const NFT_LIMIT_PKTS
: ::c_int
= 0;
843 pub const NFT_LIMIT_PKT_BYTES
: ::c_int
= 1;
845 pub const NFT_LIMIT_F_INV
: ::c_int
= (1 << 0);
847 pub const NFT_QUEUE_FLAG_BYPASS
: ::c_int
= 0x01;
848 pub const NFT_QUEUE_FLAG_CPU_FANOUT
: ::c_int
= 0x02;
849 pub const NFT_QUEUE_FLAG_MASK
: ::c_int
= 0x03;
851 pub const NFT_QUOTA_F_INV
: ::c_int
= (1 << 0);
853 pub const NFT_REJECT_ICMP_UNREACH
: ::c_int
= 0;
854 pub const NFT_REJECT_TCP_RST
: ::c_int
= 1;
855 pub const NFT_REJECT_ICMPX_UNREACH
: ::c_int
= 2;
857 pub const NFT_REJECT_ICMPX_NO_ROUTE
: ::c_int
= 0;
858 pub const NFT_REJECT_ICMPX_PORT_UNREACH
: ::c_int
= 1;
859 pub const NFT_REJECT_ICMPX_HOST_UNREACH
: ::c_int
= 2;
860 pub const NFT_REJECT_ICMPX_ADMIN_PROHIBITED
: ::c_int
= 3;
862 pub const NFT_NAT_SNAT
: ::c_int
= 0;
863 pub const NFT_NAT_DNAT
: ::c_int
= 1;
865 pub const NFT_TRACETYPE_UNSPEC
: ::c_int
= 0;
866 pub const NFT_TRACETYPE_POLICY
: ::c_int
= 1;
867 pub const NFT_TRACETYPE_RETURN
: ::c_int
= 2;
868 pub const NFT_TRACETYPE_RULE
: ::c_int
= 3;
870 pub const NFT_NG_INCREMENTAL
: ::c_int
= 0;
871 pub const NFT_NG_RANDOM
: ::c_int
= 1;
873 pub const M_MXFAST
: ::c_int
= 1;
874 pub const M_NLBLKS
: ::c_int
= 2;
875 pub const M_GRAIN
: ::c_int
= 3;
876 pub const M_KEEP
: ::c_int
= 4;
877 pub const M_TRIM_THRESHOLD
: ::c_int
= -1;
878 pub const M_TOP_PAD
: ::c_int
= -2;
879 pub const M_MMAP_THRESHOLD
: ::c_int
= -3;
880 pub const M_MMAP_MAX
: ::c_int
= -4;
881 pub const M_CHECK_ACTION
: ::c_int
= -5;
882 pub const M_PERTURB
: ::c_int
= -6;
883 pub const M_ARENA_TEST
: ::c_int
= -7;
884 pub const M_ARENA_MAX
: ::c_int
= -8;
887 pub const AF_MAX
: ::c_int
= 42;
889 pub const PF_MAX
: ::c_int
= AF_MAX
;
892 if #[cfg(any(target_arch = "arm", target_arch = "x86",
893 target_arch
= "x86_64"))] {
894 pub const PTHREAD_STACK_MIN
: ::size_t
= 16384;
895 } else if #[cfg(target_arch = "sparc64")] {
896 pub const PTHREAD_STACK_MIN
: ::size_t
= 0x6000;
898 pub const PTHREAD_STACK_MIN
: ::size_t
= 131072;
901 pub const PTHREAD_MUTEX_ADAPTIVE_NP
: ::c_int
= 3;
904 pub fn NLA_ALIGN(len
: ::c_int
) -> ::c_int
{
905 return ((len
) + NLA_ALIGNTO
- 1) & !(NLA_ALIGNTO
- 1)
910 pub fn utmpxname(file
: *const ::c_char
) -> ::c_int
;
911 pub fn getutxent() -> *mut utmpx
;
912 pub fn getutxid(ut
: *const utmpx
) -> *mut utmpx
;
913 pub fn getutxline(ut
: *const utmpx
) -> *mut utmpx
;
914 pub fn pututxline(ut
: *const utmpx
) -> *mut utmpx
;
917 pub fn getpt() -> ::c_int
;
918 pub fn mallopt(param
: ::c_int
, value
: ::c_int
) -> ::c_int
;
921 #[link(name = "util")]
923 pub fn ioctl(fd
: ::c_int
, request
: ::c_ulong
, ...) -> ::c_int
;
924 pub fn backtrace(buf
: *mut *mut ::c_void
,
925 sz
: ::c_int
) -> ::c_int
;
926 pub fn glob64(pattern
: *const ::c_char
,
928 errfunc
: ::Option
<extern fn(epath
: *const ::c_char
,
931 pglob
: *mut glob64_t
) -> ::c_int
;
932 pub fn globfree64(pglob
: *mut glob64_t
);
933 pub fn ptrace(request
: ::c_uint
, ...) -> ::c_long
;
934 pub fn pthread_attr_getaffinity_np(attr
: *const ::pthread_attr_t
,
935 cpusetsize
: ::size_t
,
936 cpuset
: *mut ::cpu_set_t
) -> ::c_int
;
937 pub fn pthread_attr_setaffinity_np(attr
: *mut ::pthread_attr_t
,
938 cpusetsize
: ::size_t
,
939 cpuset
: *const ::cpu_set_t
) -> ::c_int
;
940 pub fn getpriority(which
: ::__priority_which_t
, who
: ::id_t
) -> ::c_int
;
941 pub fn setpriority(which
: ::__priority_which_t
, who
: ::id_t
,
942 prio
: ::c_int
) -> ::c_int
;
943 pub fn pthread_getaffinity_np(thread
: ::pthread_t
,
944 cpusetsize
: ::size_t
,
945 cpuset
: *mut ::cpu_set_t
) -> ::c_int
;
946 pub fn pthread_setaffinity_np(thread
: ::pthread_t
,
947 cpusetsize
: ::size_t
,
948 cpuset
: *const ::cpu_set_t
) -> ::c_int
;
949 pub fn pthread_rwlockattr_getkind_np(attr
: *const ::pthread_rwlockattr_t
,
950 val
: *mut ::c_int
) -> ::c_int
;
951 pub fn pthread_rwlockattr_setkind_np(attr
: *mut ::pthread_rwlockattr_t
,
952 val
: ::c_int
) -> ::c_int
;
953 pub fn sched_getcpu() -> ::c_int
;
954 pub fn mallinfo() -> ::mallinfo
;
955 pub fn malloc_usable_size(ptr
: *mut ::c_void
) -> ::size_t
;
956 pub fn getauxval(type_
: ::c_ulong
) -> ::c_ulong
;
957 #[cfg_attr(target_os = "netbsd", link_name = "__getpwent_r50")]
958 #[cfg_attr(target_os = "solaris", link_name = "__posix_getpwent_r")]
959 pub fn getpwent_r(pwd
: *mut ::unix
::notbsd
::linux
::passwd
,
962 result
: *mut *mut ::unix
::notbsd
963 ::linux
::passwd
) -> ::c_int
;
964 #[cfg_attr(target_os = "netbsd", link_name = "__getgrent_r50")]
965 #[cfg_attr(target_os = "solaris", link_name = "__posix_getgrent_r")]
966 pub fn getgrent_r(grp
: *mut ::group
,
969 result
: *mut *mut ::group
) -> ::c_int
;
973 if #[cfg(any(target_arch = "x86",
975 target_arch
= "powerpc"))] {
977 pub use self::b32
::*;
978 } else if #[cfg(any(target_arch = "x86_64",
979 target_arch
= "aarch64",
980 target_arch
= "powerpc64",
981 target_arch
= "sparc64"))] {
983 pub use self::b64
::*;
985 // Unknown target_arch
990 if #[cfg(libc_align)] {
992 pub use self::align
::*;
995 pub use self::no_align
::*;