1 pub type pthread_t
= c_ulong
;
2 pub type __priority_which_t
= ::c_uint
;
3 pub type __rlimit_resource_t
= ::c_uint
;
4 pub type Lmid_t
= ::c_long
;
5 pub type regoff_t
= ::c_int
;
11 pub stx_attributes
: u64,
16 __statx_pad1
: [u16; 1],
20 pub stx_attributes_mask
: u64,
21 pub stx_atime
: ::statx_timestamp
,
22 pub stx_btime
: ::statx_timestamp
,
23 pub stx_ctime
: ::statx_timestamp
,
24 pub stx_mtime
: ::statx_timestamp
,
25 pub stx_rdev_major
: u32,
26 pub stx_rdev_minor
: u32,
27 pub stx_dev_major
: u32,
28 pub stx_dev_minor
: u32,
31 __statx_pad3
: [u64; 12],
34 pub struct statx_timestamp
{
37 pub __statx_timestamp_pad1
: [i32; 1],
41 pub aio_fildes
: ::c_int
,
42 pub aio_lio_opcode
: ::c_int
,
43 pub aio_reqprio
: ::c_int
,
44 pub aio_buf
: *mut ::c_void
,
45 pub aio_nbytes
: ::size_t
,
46 pub aio_sigevent
: ::sigevent
,
47 __next_prio
: *mut aiocb
,
50 __error_code
: ::c_int
,
51 __return_value
: ::ssize_t
,
52 pub aio_offset
: off_t
,
53 #[cfg(all(not(target_arch = "x86_64"), target_pointer_width = "32"))]
54 __unused1
: [::c_char
; 4],
55 __glibc_reserved
: [::c_char
; 32]
58 pub struct __exit_status
{
59 pub e_termination
: ::c_short
,
60 pub e_exit
: ::c_short
,
63 pub struct __timeval
{
69 pub gl_pathc
: ::size_t
,
70 pub gl_pathv
: *mut *mut ::c_char
,
71 pub gl_offs
: ::size_t
,
72 pub gl_flags
: ::c_int
,
74 __unused1
: *mut ::c_void
,
75 __unused2
: *mut ::c_void
,
76 __unused3
: *mut ::c_void
,
77 __unused4
: *mut ::c_void
,
78 __unused5
: *mut ::c_void
,
82 pub msg_name
: *mut ::c_void
,
83 pub msg_namelen
: ::socklen_t
,
84 pub msg_iov
: *mut ::iovec
,
85 pub msg_iovlen
: ::size_t
,
86 pub msg_control
: *mut ::c_void
,
87 pub msg_controllen
: ::size_t
,
88 pub msg_flags
: ::c_int
,
92 pub cmsg_len
: ::size_t
,
93 pub cmsg_level
: ::c_int
,
94 pub cmsg_type
: ::c_int
,
98 pub c_iflag
: ::tcflag_t
,
99 pub c_oflag
: ::tcflag_t
,
100 pub c_cflag
: ::tcflag_t
,
101 pub c_lflag
: ::tcflag_t
,
103 pub c_cc
: [::cc_t
; ::NCCS
],
105 target_arch
= "sparc",
106 target_arch
= "sparc64",
107 target_arch
= "mips",
108 target_arch
= "mips64")))]
109 pub c_ispeed
: ::speed_t
,
111 target_arch
= "sparc",
112 target_arch
= "sparc64",
113 target_arch
= "mips",
114 target_arch
= "mips64")))]
115 pub c_ospeed
: ::speed_t
,
118 pub struct mallinfo
{
120 pub ordblks
: ::c_int
,
124 pub usmblks
: ::c_int
,
125 pub fsmblks
: ::c_int
,
126 pub uordblks
: ::c_int
,
127 pub fordblks
: ::c_int
,
128 pub keepcost
: ::c_int
,
131 pub struct nlmsghdr
{
134 pub nlmsg_flags
: u16,
139 pub struct nlmsgerr
{
144 pub struct nl_pktinfo
{
148 pub struct nl_mmap_req
{
149 pub nm_block_size
: ::c_uint
,
150 pub nm_block_nr
: ::c_uint
,
151 pub nm_frame_size
: ::c_uint
,
152 pub nm_frame_nr
: ::c_uint
,
155 pub struct nl_mmap_hdr
{
156 pub nm_status
: ::c_uint
,
157 pub nm_len
: ::c_uint
,
170 pub rt_pad1
: ::c_ulong
,
171 pub rt_dst
: ::sockaddr
,
172 pub rt_gateway
: ::sockaddr
,
173 pub rt_genmask
: ::sockaddr
,
174 pub rt_flags
: ::c_ushort
,
175 pub rt_pad2
: ::c_short
,
176 pub rt_pad3
: ::c_ulong
,
177 pub rt_tos
: ::c_uchar
,
178 pub rt_class
: ::c_uchar
,
179 #[cfg(target_pointer_width = "64")]
180 pub rt_pad4
: [::c_short
; 3usize
],
181 #[cfg(not(target_pointer_width = "64"))]
182 pub rt_pad4
: ::c_short
,
183 pub rt_metric
: ::c_short
,
184 pub rt_dev
: *mut ::c_char
,
185 pub rt_mtu
: ::c_ulong
,
186 pub rt_window
: ::c_ulong
,
187 pub rt_irtt
: ::c_ushort
,
192 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
194 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
195 pub offset
: ::c_long
,
196 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
198 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
200 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
202 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
203 pub maxerror
: ::c_long
,
204 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
206 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
207 pub esterror
: ::c_long
,
209 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
211 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
212 pub constant
: ::c_long
,
213 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
215 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
216 pub precision
: ::c_long
,
217 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
219 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
220 pub tolerance
: ::c_long
,
222 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
224 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
226 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
228 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
229 pub ppsfreq
: ::c_long
,
230 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
232 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
233 pub jitter
: ::c_long
,
235 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
237 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
238 pub stabil
: ::c_long
,
239 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
241 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
242 pub jitcnt
: ::c_long
,
243 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
245 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
246 pub calcnt
: ::c_long
,
247 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
249 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
250 pub errcnt
: ::c_long
,
251 #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
253 #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
254 pub stbcnt
: ::c_long
,
269 pub struct ntptimeval
{
271 pub maxerror
: ::c_long
,
272 pub esterror
: ::c_long
,
274 pub __glibc_reserved1
: ::c_long
,
275 pub __glibc_reserved2
: ::c_long
,
276 pub __glibc_reserved3
: ::c_long
,
277 pub __glibc_reserved4
: ::c_long
,
281 __buffer
: *mut ::c_void
,
282 __allocated
: ::size_t
,
285 __fastmap
: *mut ::c_char
,
286 __translate
: *mut ::c_char
,
291 pub struct Elf64_Chdr
{
292 pub ch_type
: ::Elf64_Word
,
293 pub ch_reserved
: ::Elf64_Word
,
294 pub ch_size
: ::Elf64_Xword
,
295 pub ch_addralign
: ::Elf64_Xword
,
298 pub struct Elf32_Chdr
{
299 pub ch_type
: ::Elf32_Word
,
300 pub ch_size
: ::Elf32_Word
,
301 pub ch_addralign
: ::Elf32_Word
,
306 pub unsafe fn si_addr(&self) -> *mut ::c_void
{
308 struct siginfo_sigfault
{
312 si_addr
: *mut ::c_void
,
314 (*(self as *const siginfo_t
as *const siginfo_sigfault
)).si_addr
317 pub unsafe fn si_value(&self) -> ::sigval
{
319 struct siginfo_timer
{
324 _si_overrun
: ::c_int
,
327 (*(self as *const siginfo_t
as *const siginfo_timer
)).si_sigval
332 if #[cfg(libc_union)] {
333 // Internal, for casts to access union fields
335 struct sifields_sigchld
{
342 impl ::Copy
for sifields_sigchld {}
343 impl ::Clone
for sifields_sigchld
{
344 fn clone(&self) -> sifields_sigchld
{
349 // Internal, for casts to access union fields
352 _align_pointer
: *mut ::c_void
,
353 sigchld
: sifields_sigchld
,
356 // Internal, for casts to access union fields. Note that some variants
357 // of sifields start with a pointer, which makes the alignment of
358 // sifields vary on 32-bit and 64-bit architectures.
361 _siginfo_base
: [::c_int
; 3],
366 unsafe fn sifields(&self) -> &sifields
{
367 &(*(self as *const siginfo_t
as *const siginfo_f
)).sifields
370 pub unsafe fn si_pid(&self) -> ::pid_t
{
371 self.sifields().sigchld
.si_pid
374 pub unsafe fn si_uid(&self) -> ::uid_t
{
375 self.sifields().sigchld
.si_uid
378 pub unsafe fn si_status(&self) -> ::c_int
{
379 self.sifields().sigchld
.si_status
382 pub unsafe fn si_utime(&self) -> ::c_long
{
383 self.sifields().sigchld
.si_utime
386 pub unsafe fn si_stime(&self) -> ::c_long
{
387 self.sifields().sigchld
.si_stime
395 pub ut_type
: ::c_short
,
397 pub ut_line
: [::c_char
; __UT_LINESIZE
],
398 pub ut_id
: [::c_char
; 4],
400 pub ut_user
: [::c_char
; __UT_NAMESIZE
],
401 pub ut_host
: [::c_char
; __UT_HOSTSIZE
],
402 pub ut_exit
: __exit_status
,
404 #[cfg(any(target_arch = "aarch64",
405 target_arch
= "s390x",
406 all(target_pointer_width
= "32",
407 not(target_arch
= "x86_64"))))]
408 pub ut_session
: ::c_long
,
409 #[cfg(any(target_arch = "aarch64",
410 target_arch
= "s390x",
411 all(target_pointer_width
= "32",
412 not(target_arch
= "x86_64"))))]
413 pub ut_tv
: ::timeval
,
415 #[cfg(not(any(target_arch = "aarch64",
416 target_arch
= "s390x",
417 all(target_pointer_width
= "32",
418 not(target_arch
= "x86_64")))))]
420 #[cfg(not(any(target_arch = "aarch64",
421 target_arch
= "s390x",
422 all(target_pointer_width
= "32",
423 not(target_arch
= "x86_64")))))]
424 pub ut_tv
: __timeval
,
426 pub ut_addr_v6
: [i32; 4],
427 __glibc_reserved
: [::c_char
; 20],
432 if #[cfg(feature = "extra_traits")] {
433 impl PartialEq
for utmpx
{
434 fn eq(&self, other
: &utmpx
) -> bool
{
435 self.ut_type
== other
.ut_type
436 && self.ut_pid
== other
.ut_pid
437 && self.ut_line
== other
.ut_line
438 && self.ut_id
== other
.ut_id
439 && self.ut_user
== other
.ut_user
443 .zip(other
.ut_host
.iter())
445 && self.ut_exit
== other
.ut_exit
446 && self.ut_session
== other
.ut_session
447 && self.ut_tv
== other
.ut_tv
448 && self.ut_addr_v6
== other
.ut_addr_v6
449 && self.__glibc_reserved
== other
.__glibc_reserved
455 impl ::fmt
::Debug
for utmpx
{
456 fn fmt(&self, f
: &mut ::fmt
::Formatter
) -> ::fmt
::Result
{
457 f
.debug_struct("utmpx")
458 .field("ut_type", &self.ut_type
)
459 .field("ut_pid", &self.ut_pid
)
460 .field("ut_line", &self.ut_line
)
461 .field("ut_id", &self.ut_id
)
462 .field("ut_user", &self.ut_user
)
463 // FIXME: .field("ut_host", &self.ut_host)
464 .field("ut_exit", &self.ut_exit
)
465 .field("ut_session", &self.ut_session
)
466 .field("ut_tv", &self.ut_tv
)
467 .field("ut_addr_v6", &self.ut_addr_v6
)
468 .field("__glibc_reserved", &self.__glibc_reserved
)
473 impl ::hash
::Hash
for utmpx
{
474 fn hash
<H
: ::hash
::Hasher
>(&self, state
: &mut H
) {
475 self.ut_type
.hash(state
);
476 self.ut_pid
.hash(state
);
477 self.ut_line
.hash(state
);
478 self.ut_id
.hash(state
);
479 self.ut_user
.hash(state
);
480 self.ut_host
.hash(state
);
481 self.ut_exit
.hash(state
);
482 self.ut_session
.hash(state
);
483 self.ut_tv
.hash(state
);
484 self.ut_addr_v6
.hash(state
);
485 self.__glibc_reserved
.hash(state
);
491 // include/uapi/asm-generic/hugetlb_encode.h
492 pub const HUGETLB_FLAG_ENCODE_SHIFT
: ::c_int
= 26;
493 pub const HUGETLB_FLAG_ENCODE_MASK
: ::c_int
= 0x3f;
495 pub const HUGETLB_FLAG_ENCODE_64KB
: ::c_int
= 16 << HUGETLB_FLAG_ENCODE_SHIFT
;
496 pub const HUGETLB_FLAG_ENCODE_512KB
: ::c_int
= 19 << HUGETLB_FLAG_ENCODE_SHIFT
;
497 pub const HUGETLB_FLAG_ENCODE_1MB
: ::c_int
= 20 << HUGETLB_FLAG_ENCODE_SHIFT
;
498 pub const HUGETLB_FLAG_ENCODE_2MB
: ::c_int
= 21 << HUGETLB_FLAG_ENCODE_SHIFT
;
499 pub const HUGETLB_FLAG_ENCODE_8MB
: ::c_int
= 23 << HUGETLB_FLAG_ENCODE_SHIFT
;
500 pub const HUGETLB_FLAG_ENCODE_16MB
: ::c_int
= 24 << HUGETLB_FLAG_ENCODE_SHIFT
;
501 pub const HUGETLB_FLAG_ENCODE_32MB
: ::c_int
= 25 << HUGETLB_FLAG_ENCODE_SHIFT
;
502 pub const HUGETLB_FLAG_ENCODE_256MB
: ::c_int
= 28 << HUGETLB_FLAG_ENCODE_SHIFT
;
503 pub const HUGETLB_FLAG_ENCODE_512MB
: ::c_int
= 29 << HUGETLB_FLAG_ENCODE_SHIFT
;
504 pub const HUGETLB_FLAG_ENCODE_1GB
: ::c_int
= 30 << HUGETLB_FLAG_ENCODE_SHIFT
;
505 pub const HUGETLB_FLAG_ENCODE_2GB
: ::c_int
= 31 << HUGETLB_FLAG_ENCODE_SHIFT
;
506 pub const HUGETLB_FLAG_ENCODE_16GB
: ::c_int
= 34 << HUGETLB_FLAG_ENCODE_SHIFT
;
508 // include/uapi/linux/mman.h
510 * Huge page size encoding when MAP_HUGETLB is specified, and a huge page
511 * size other than the default is desired. See hugetlb_encode.h.
512 * All known huge page size encodings are provided here. It is the
513 * responsibility of the application to know which sizes are supported on
514 * the running system. See mmap(2) man page for details.
516 pub const MAP_HUGE_SHIFT
: ::c_int
= HUGETLB_FLAG_ENCODE_SHIFT
;
517 pub const MAP_HUGE_MASK
: ::c_int
= HUGETLB_FLAG_ENCODE_MASK
;
519 pub const MAP_HUGE_64KB
: ::c_int
= HUGETLB_FLAG_ENCODE_64KB
;
520 pub const MAP_HUGE_512KB
: ::c_int
= HUGETLB_FLAG_ENCODE_512KB
;
521 pub const MAP_HUGE_1MB
: ::c_int
= HUGETLB_FLAG_ENCODE_1MB
;
522 pub const MAP_HUGE_2MB
: ::c_int
= HUGETLB_FLAG_ENCODE_2MB
;
523 pub const MAP_HUGE_8MB
: ::c_int
= HUGETLB_FLAG_ENCODE_8MB
;
524 pub const MAP_HUGE_16MB
: ::c_int
= HUGETLB_FLAG_ENCODE_16MB
;
525 pub const MAP_HUGE_32MB
: ::c_int
= HUGETLB_FLAG_ENCODE_32MB
;
526 pub const MAP_HUGE_256MB
: ::c_int
= HUGETLB_FLAG_ENCODE_256MB
;
527 pub const MAP_HUGE_512MB
: ::c_int
= HUGETLB_FLAG_ENCODE_512MB
;
528 pub const MAP_HUGE_1GB
: ::c_int
= HUGETLB_FLAG_ENCODE_1GB
;
529 pub const MAP_HUGE_2GB
: ::c_int
= HUGETLB_FLAG_ENCODE_2GB
;
530 pub const MAP_HUGE_16GB
: ::c_int
= HUGETLB_FLAG_ENCODE_16GB
;
532 pub const RLIMIT_CPU
: ::__rlimit_resource_t
= 0;
533 pub const RLIMIT_FSIZE
: ::__rlimit_resource_t
= 1;
534 pub const RLIMIT_DATA
: ::__rlimit_resource_t
= 2;
535 pub const RLIMIT_STACK
: ::__rlimit_resource_t
= 3;
536 pub const RLIMIT_CORE
: ::__rlimit_resource_t
= 4;
537 pub const RLIMIT_LOCKS
: ::__rlimit_resource_t
= 10;
538 pub const RLIMIT_SIGPENDING
: ::__rlimit_resource_t
= 11;
539 pub const RLIMIT_MSGQUEUE
: ::__rlimit_resource_t
= 12;
540 pub const RLIMIT_NICE
: ::__rlimit_resource_t
= 13;
541 pub const RLIMIT_RTPRIO
: ::__rlimit_resource_t
= 14;
542 pub const RLIMIT_RTTIME
: ::__rlimit_resource_t
= 15;
543 pub const RLIMIT_NLIMITS
: ::__rlimit_resource_t
= 16;
545 pub const PRIO_PROCESS
: ::__priority_which_t
= 0;
546 pub const PRIO_PGRP
: ::__priority_which_t
= 1;
547 pub const PRIO_USER
: ::__priority_which_t
= 2;
549 pub const MS_RMT_MASK
: ::c_ulong
= 0x02800051;
551 pub const __UT_LINESIZE
: usize = 32;
552 pub const __UT_NAMESIZE
: usize = 32;
553 pub const __UT_HOSTSIZE
: usize = 256;
554 pub const EMPTY
: ::c_short
= 0;
555 pub const RUN_LVL
: ::c_short
= 1;
556 pub const BOOT_TIME
: ::c_short
= 2;
557 pub const NEW_TIME
: ::c_short
= 3;
558 pub const OLD_TIME
: ::c_short
= 4;
559 pub const INIT_PROCESS
: ::c_short
= 5;
560 pub const LOGIN_PROCESS
: ::c_short
= 6;
561 pub const USER_PROCESS
: ::c_short
= 7;
562 pub const DEAD_PROCESS
: ::c_short
= 8;
563 pub const ACCOUNTING
: ::c_short
= 9;
566 pub const LM_ID_BASE
: ::c_long
= 0;
567 pub const LM_ID_NEWLM
: ::c_long
= -1;
569 pub const RTLD_DI_LMID
: ::c_int
= 1;
570 pub const RTLD_DI_LINKMAP
: ::c_int
= 2;
571 pub const RTLD_DI_CONFIGADDR
: ::c_int
= 3;
572 pub const RTLD_DI_SERINFO
: ::c_int
= 4;
573 pub const RTLD_DI_SERINFOSIZE
: ::c_int
= 5;
574 pub const RTLD_DI_ORIGIN
: ::c_int
= 6;
575 pub const RTLD_DI_PROFILENAME
: ::c_int
= 7;
576 pub const RTLD_DI_PROFILEOUT
: ::c_int
= 8;
577 pub const RTLD_DI_TLS_MODID
: ::c_int
= 9;
578 pub const RTLD_DI_TLS_DATA
: ::c_int
= 10;
580 pub const SOCK_NONBLOCK
: ::c_int
= O_NONBLOCK
;
582 pub const SOL_RXRPC
: ::c_int
= 272;
583 pub const SOL_PPPOL2TP
: ::c_int
= 273;
584 pub const SOL_PNPIPE
: ::c_int
= 275;
585 pub const SOL_RDS
: ::c_int
= 276;
586 pub const SOL_IUCV
: ::c_int
= 277;
587 pub const SOL_CAIF
: ::c_int
= 278;
588 pub const SOL_NFC
: ::c_int
= 280;
589 pub const SOL_XDP
: ::c_int
= 283;
591 pub const MSG_TRYHARD
: ::c_int
= 4;
593 pub const LC_PAPER
: ::c_int
= 7;
594 pub const LC_NAME
: ::c_int
= 8;
595 pub const LC_ADDRESS
: ::c_int
= 9;
596 pub const LC_TELEPHONE
: ::c_int
= 10;
597 pub const LC_MEASUREMENT
: ::c_int
= 11;
598 pub const LC_IDENTIFICATION
: ::c_int
= 12;
599 pub const LC_PAPER_MASK
: ::c_int
= 1 << LC_PAPER
;
600 pub const LC_NAME_MASK
: ::c_int
= 1 << LC_NAME
;
601 pub const LC_ADDRESS_MASK
: ::c_int
= 1 << LC_ADDRESS
;
602 pub const LC_TELEPHONE_MASK
: ::c_int
= 1 << LC_TELEPHONE
;
603 pub const LC_MEASUREMENT_MASK
: ::c_int
= 1 << LC_MEASUREMENT
;
604 pub const LC_IDENTIFICATION_MASK
: ::c_int
= 1 << LC_IDENTIFICATION
;
605 pub const LC_ALL_MASK
: ::c_int
= ::LC_CTYPE_MASK
615 | LC_MEASUREMENT_MASK
616 | LC_IDENTIFICATION_MASK
;
618 pub const ENOTSUP
: ::c_int
= EOPNOTSUPP
;
620 pub const SOCK_SEQPACKET
: ::c_int
= 5;
621 pub const SOCK_DCCP
: ::c_int
= 6;
622 pub const SOCK_PACKET
: ::c_int
= 10;
624 pub const TCP_COOKIE_TRANSACTIONS
: ::c_int
= 15;
625 pub const TCP_THIN_LINEAR_TIMEOUTS
: ::c_int
= 16;
626 pub const TCP_THIN_DUPACK
: ::c_int
= 17;
627 pub const TCP_USER_TIMEOUT
: ::c_int
= 18;
628 pub const TCP_REPAIR
: ::c_int
= 19;
629 pub const TCP_REPAIR_QUEUE
: ::c_int
= 20;
630 pub const TCP_QUEUE_SEQ
: ::c_int
= 21;
631 pub const TCP_REPAIR_OPTIONS
: ::c_int
= 22;
632 pub const TCP_FASTOPEN
: ::c_int
= 23;
633 pub const TCP_TIMESTAMP
: ::c_int
= 24;
634 pub const TCP_FASTOPEN_CONNECT
: ::c_int
= 30;
636 pub const FAN_MARK_INODE
: ::c_uint
= 0x0000_0000;
637 pub const FAN_MARK_MOUNT
: ::c_uint
= 0x0000_0010;
638 // NOTE: FAN_MARK_FILESYSTEM requires Linux Kernel >= 4.20.0
639 pub const FAN_MARK_FILESYSTEM
: ::c_uint
= 0x0000_0100;
641 pub const AF_IB
: ::c_int
= 27;
642 pub const AF_MPLS
: ::c_int
= 28;
643 pub const AF_NFC
: ::c_int
= 39;
644 pub const AF_VSOCK
: ::c_int
= 40;
645 pub const AF_XDP
: ::c_int
= 44;
646 pub const PF_IB
: ::c_int
= AF_IB
;
647 pub const PF_MPLS
: ::c_int
= AF_MPLS
;
648 pub const PF_NFC
: ::c_int
= AF_NFC
;
649 pub const PF_VSOCK
: ::c_int
= AF_VSOCK
;
650 pub const PF_XDP
: ::c_int
= AF_XDP
;
652 /* DCCP socket options */
653 pub const DCCP_SOCKOPT_PACKET_SIZE
: ::c_int
= 1;
654 pub const DCCP_SOCKOPT_SERVICE
: ::c_int
= 2;
655 pub const DCCP_SOCKOPT_CHANGE_L
: ::c_int
= 3;
656 pub const DCCP_SOCKOPT_CHANGE_R
: ::c_int
= 4;
657 pub const DCCP_SOCKOPT_GET_CUR_MPS
: ::c_int
= 5;
658 pub const DCCP_SOCKOPT_SERVER_TIMEWAIT
: ::c_int
= 6;
659 pub const DCCP_SOCKOPT_SEND_CSCOV
: ::c_int
= 10;
660 pub const DCCP_SOCKOPT_RECV_CSCOV
: ::c_int
= 11;
661 pub const DCCP_SOCKOPT_AVAILABLE_CCIDS
: ::c_int
= 12;
662 pub const DCCP_SOCKOPT_CCID
: ::c_int
= 13;
663 pub const DCCP_SOCKOPT_TX_CCID
: ::c_int
= 14;
664 pub const DCCP_SOCKOPT_RX_CCID
: ::c_int
= 15;
665 pub const DCCP_SOCKOPT_QPOLICY_ID
: ::c_int
= 16;
666 pub const DCCP_SOCKOPT_QPOLICY_TXQLEN
: ::c_int
= 17;
667 pub const DCCP_SOCKOPT_CCID_RX_INFO
: ::c_int
= 128;
668 pub const DCCP_SOCKOPT_CCID_TX_INFO
: ::c_int
= 192;
670 /// maximum number of services provided on the same listening port
671 pub const DCCP_SERVICE_LIST_MAX_LEN
: ::c_int
= 32;
673 pub const SIGEV_THREAD_ID
: ::c_int
= 4;
675 pub const BUFSIZ
: ::c_uint
= 8192;
676 pub const TMP_MAX
: ::c_uint
= 238328;
677 pub const FOPEN_MAX
: ::c_uint
= 16;
678 pub const FILENAME_MAX
: ::c_uint
= 4096;
679 pub const POSIX_MADV_DONTNEED
: ::c_int
= 4;
680 pub const _SC_EQUIV_CLASS_MAX
: ::c_int
= 41;
681 pub const _SC_CHARCLASS_NAME_MAX
: ::c_int
= 45;
682 pub const _SC_PII
: ::c_int
= 53;
683 pub const _SC_PII_XTI
: ::c_int
= 54;
684 pub const _SC_PII_SOCKET
: ::c_int
= 55;
685 pub const _SC_PII_INTERNET
: ::c_int
= 56;
686 pub const _SC_PII_OSI
: ::c_int
= 57;
687 pub const _SC_POLL
: ::c_int
= 58;
688 pub const _SC_SELECT
: ::c_int
= 59;
689 pub const _SC_PII_INTERNET_STREAM
: ::c_int
= 61;
690 pub const _SC_PII_INTERNET_DGRAM
: ::c_int
= 62;
691 pub const _SC_PII_OSI_COTS
: ::c_int
= 63;
692 pub const _SC_PII_OSI_CLTS
: ::c_int
= 64;
693 pub const _SC_PII_OSI_M
: ::c_int
= 65;
694 pub const _SC_T_IOV_MAX
: ::c_int
= 66;
695 pub const _SC_2_C_VERSION
: ::c_int
= 96;
696 pub const _SC_CHAR_BIT
: ::c_int
= 101;
697 pub const _SC_CHAR_MAX
: ::c_int
= 102;
698 pub const _SC_CHAR_MIN
: ::c_int
= 103;
699 pub const _SC_INT_MAX
: ::c_int
= 104;
700 pub const _SC_INT_MIN
: ::c_int
= 105;
701 pub const _SC_LONG_BIT
: ::c_int
= 106;
702 pub const _SC_WORD_BIT
: ::c_int
= 107;
703 pub const _SC_MB_LEN_MAX
: ::c_int
= 108;
704 pub const _SC_SSIZE_MAX
: ::c_int
= 110;
705 pub const _SC_SCHAR_MAX
: ::c_int
= 111;
706 pub const _SC_SCHAR_MIN
: ::c_int
= 112;
707 pub const _SC_SHRT_MAX
: ::c_int
= 113;
708 pub const _SC_SHRT_MIN
: ::c_int
= 114;
709 pub const _SC_UCHAR_MAX
: ::c_int
= 115;
710 pub const _SC_UINT_MAX
: ::c_int
= 116;
711 pub const _SC_ULONG_MAX
: ::c_int
= 117;
712 pub const _SC_USHRT_MAX
: ::c_int
= 118;
713 pub const _SC_NL_ARGMAX
: ::c_int
= 119;
714 pub const _SC_NL_LANGMAX
: ::c_int
= 120;
715 pub const _SC_NL_MSGMAX
: ::c_int
= 121;
716 pub const _SC_NL_NMAX
: ::c_int
= 122;
717 pub const _SC_NL_SETMAX
: ::c_int
= 123;
718 pub const _SC_NL_TEXTMAX
: ::c_int
= 124;
719 pub const _SC_BASE
: ::c_int
= 134;
720 pub const _SC_C_LANG_SUPPORT
: ::c_int
= 135;
721 pub const _SC_C_LANG_SUPPORT_R
: ::c_int
= 136;
722 pub const _SC_DEVICE_IO
: ::c_int
= 140;
723 pub const _SC_DEVICE_SPECIFIC
: ::c_int
= 141;
724 pub const _SC_DEVICE_SPECIFIC_R
: ::c_int
= 142;
725 pub const _SC_FD_MGMT
: ::c_int
= 143;
726 pub const _SC_FIFO
: ::c_int
= 144;
727 pub const _SC_PIPE
: ::c_int
= 145;
728 pub const _SC_FILE_ATTRIBUTES
: ::c_int
= 146;
729 pub const _SC_FILE_LOCKING
: ::c_int
= 147;
730 pub const _SC_FILE_SYSTEM
: ::c_int
= 148;
731 pub const _SC_MULTI_PROCESS
: ::c_int
= 150;
732 pub const _SC_SINGLE_PROCESS
: ::c_int
= 151;
733 pub const _SC_NETWORKING
: ::c_int
= 152;
734 pub const _SC_REGEX_VERSION
: ::c_int
= 156;
735 pub const _SC_SIGNALS
: ::c_int
= 158;
736 pub const _SC_SYSTEM_DATABASE
: ::c_int
= 162;
737 pub const _SC_SYSTEM_DATABASE_R
: ::c_int
= 163;
738 pub const _SC_USER_GROUPS
: ::c_int
= 166;
739 pub const _SC_USER_GROUPS_R
: ::c_int
= 167;
740 pub const _SC_LEVEL1_ICACHE_SIZE
: ::c_int
= 185;
741 pub const _SC_LEVEL1_ICACHE_ASSOC
: ::c_int
= 186;
742 pub const _SC_LEVEL1_ICACHE_LINESIZE
: ::c_int
= 187;
743 pub const _SC_LEVEL1_DCACHE_SIZE
: ::c_int
= 188;
744 pub const _SC_LEVEL1_DCACHE_ASSOC
: ::c_int
= 189;
745 pub const _SC_LEVEL1_DCACHE_LINESIZE
: ::c_int
= 190;
746 pub const _SC_LEVEL2_CACHE_SIZE
: ::c_int
= 191;
747 pub const _SC_LEVEL2_CACHE_ASSOC
: ::c_int
= 192;
748 pub const _SC_LEVEL2_CACHE_LINESIZE
: ::c_int
= 193;
749 pub const _SC_LEVEL3_CACHE_SIZE
: ::c_int
= 194;
750 pub const _SC_LEVEL3_CACHE_ASSOC
: ::c_int
= 195;
751 pub const _SC_LEVEL3_CACHE_LINESIZE
: ::c_int
= 196;
752 pub const _SC_LEVEL4_CACHE_SIZE
: ::c_int
= 197;
753 pub const _SC_LEVEL4_CACHE_ASSOC
: ::c_int
= 198;
754 pub const _SC_LEVEL4_CACHE_LINESIZE
: ::c_int
= 199;
755 pub const O_ACCMODE
: ::c_int
= 3;
756 pub const ST_RELATIME
: ::c_ulong
= 4096;
757 pub const NI_MAXHOST
: ::socklen_t
= 1025;
760 if #[cfg(not(target_arch = "s390x"))] {
761 pub const ADFS_SUPER_MAGIC
: ::c_long
= 0x0000adf5;
762 pub const AFFS_SUPER_MAGIC
: ::c_long
= 0x0000adff;
763 pub const AFS_SUPER_MAGIC
: ::c_long
= 0x5346414f;
764 pub const AUTOFS_SUPER_MAGIC
: ::c_long
= 0x0187;
765 pub const BINDERFS_SUPER_MAGIC
: ::c_long
= 0x6c6f6f70;
766 pub const BPF_FS_MAGIC
: ::c_long
= 0xcafe4a11;
767 pub const BTRFS_SUPER_MAGIC
: ::c_long
= 0x9123683e;
768 pub const CGROUP2_SUPER_MAGIC
: ::c_long
= 0x63677270;
769 pub const CGROUP_SUPER_MAGIC
: ::c_long
= 0x27e0eb;
770 pub const CODA_SUPER_MAGIC
: ::c_long
= 0x73757245;
771 pub const CRAMFS_MAGIC
: ::c_long
= 0x28cd3d45;
772 pub const DEBUGFS_MAGIC
: ::c_long
= 0x64626720;
773 pub const DEVPTS_SUPER_MAGIC
: ::c_long
= 0x1cd1;
774 pub const ECRYPTFS_SUPER_MAGIC
: ::c_long
= 0xf15f;
775 pub const EFS_SUPER_MAGIC
: ::c_long
= 0x00414a53;
776 pub const EXT2_SUPER_MAGIC
: ::c_long
= 0x0000ef53;
777 pub const EXT3_SUPER_MAGIC
: ::c_long
= 0x0000ef53;
778 pub const EXT4_SUPER_MAGIC
: ::c_long
= 0x0000ef53;
779 pub const F2FS_SUPER_MAGIC
: ::c_long
= 0xf2f52010;
780 pub const FUTEXFS_SUPER_MAGIC
: ::c_long
= 0xbad1dea;
781 pub const HOSTFS_SUPER_MAGIC
: ::c_long
= 0x00c0ffee;
782 pub const HPFS_SUPER_MAGIC
: ::c_long
= 0xf995e849;
783 pub const HUGETLBFS_MAGIC
: ::c_long
= 0x958458f6;
784 pub const ISOFS_SUPER_MAGIC
: ::c_long
= 0x00009660;
785 pub const JFFS2_SUPER_MAGIC
: ::c_long
= 0x000072b6;
786 pub const MINIX2_SUPER_MAGIC2
: ::c_long
= 0x00002478;
787 pub const MINIX2_SUPER_MAGIC
: ::c_long
= 0x00002468;
788 pub const MINIX3_SUPER_MAGIC
: ::c_long
= 0x4d5a;
789 pub const MINIX_SUPER_MAGIC2
: ::c_long
= 0x0000138f;
790 pub const MINIX_SUPER_MAGIC
: ::c_long
= 0x0000137f;
791 pub const MSDOS_SUPER_MAGIC
: ::c_long
= 0x00004d44;
792 pub const NCP_SUPER_MAGIC
: ::c_long
= 0x0000564c;
793 pub const NFS_SUPER_MAGIC
: ::c_long
= 0x00006969;
794 pub const NILFS_SUPER_MAGIC
: ::c_long
= 0x3434;
795 pub const OCFS2_SUPER_MAGIC
: ::c_long
= 0x7461636f;
796 pub const OPENPROM_SUPER_MAGIC
: ::c_long
= 0x00009fa1;
797 pub const OVERLAYFS_SUPER_MAGIC
: ::c_long
= 0x794c7630;
798 pub const PROC_SUPER_MAGIC
: ::c_long
= 0x00009fa0;
799 pub const QNX4_SUPER_MAGIC
: ::c_long
= 0x0000002f;
800 pub const QNX6_SUPER_MAGIC
: ::c_long
= 0x68191122;
801 pub const RDTGROUP_SUPER_MAGIC
: ::c_long
= 0x7655821;
802 pub const REISERFS_SUPER_MAGIC
: ::c_long
= 0x52654973;
803 pub const SECURITYFS_MAGIC
: ::c_long
= 0x73636673;
804 pub const SELINUX_MAGIC
: ::c_long
= 0xf97cff8c;
805 pub const SMACK_MAGIC
: ::c_long
= 0x43415d53;
806 pub const SMB_SUPER_MAGIC
: ::c_long
= 0x0000517b;
807 pub const SYSFS_MAGIC
: ::c_long
= 0x62656572;
808 pub const TMPFS_MAGIC
: ::c_long
= 0x01021994;
809 pub const TRACEFS_MAGIC
: ::c_long
= 0x74726163;
810 pub const UDF_SUPER_MAGIC
: ::c_long
= 0x15013346;
811 pub const USBDEVICE_SUPER_MAGIC
: ::c_long
= 0x00009fa2;
812 pub const XENFS_SUPER_MAGIC
: ::c_long
= 0xabba1974;
813 pub const XFS_SUPER_MAGIC
: ::c_long
= 0x58465342;
814 } else if #[cfg(target_arch = "s390x")] {
815 pub const ADFS_SUPER_MAGIC
: ::c_uint
= 0x0000adf5;
816 pub const AFFS_SUPER_MAGIC
: ::c_uint
= 0x0000adff;
817 pub const AFS_SUPER_MAGIC
: ::c_uint
= 0x5346414f;
818 pub const AUTOFS_SUPER_MAGIC
: ::c_uint
= 0x0187;
819 pub const BINDERFS_SUPER_MAGIC
: ::c_uint
= 0x6c6f6f70;
820 pub const BPF_FS_MAGIC
: ::c_uint
= 0xcafe4a11;
821 pub const BTRFS_SUPER_MAGIC
: ::c_uint
= 0x9123683e;
822 pub const CGROUP2_SUPER_MAGIC
: ::c_uint
= 0x63677270;
823 pub const CGROUP_SUPER_MAGIC
: ::c_uint
= 0x27e0eb;
824 pub const CODA_SUPER_MAGIC
: ::c_uint
= 0x73757245;
825 pub const CRAMFS_MAGIC
: ::c_uint
= 0x28cd3d45;
826 pub const DEBUGFS_MAGIC
: ::c_uint
= 0x64626720;
827 pub const DEVPTS_SUPER_MAGIC
: ::c_uint
= 0x1cd1;
828 pub const ECRYPTFS_SUPER_MAGIC
: ::c_uint
= 0xf15f;
829 pub const EFS_SUPER_MAGIC
: ::c_uint
= 0x00414a53;
830 pub const EXT2_SUPER_MAGIC
: ::c_uint
= 0x0000ef53;
831 pub const EXT3_SUPER_MAGIC
: ::c_uint
= 0x0000ef53;
832 pub const EXT4_SUPER_MAGIC
: ::c_uint
= 0x0000ef53;
833 pub const F2FS_SUPER_MAGIC
: ::c_uint
= 0xf2f52010;
834 pub const FUTEXFS_SUPER_MAGIC
: ::c_uint
= 0xbad1dea;
835 pub const HOSTFS_SUPER_MAGIC
: ::c_uint
= 0x00c0ffee;
836 pub const HPFS_SUPER_MAGIC
: ::c_uint
= 0xf995e849;
837 pub const HUGETLBFS_MAGIC
: ::c_uint
= 0x958458f6;
838 pub const ISOFS_SUPER_MAGIC
: ::c_uint
= 0x00009660;
839 pub const JFFS2_SUPER_MAGIC
: ::c_uint
= 0x000072b6;
840 pub const MINIX2_SUPER_MAGIC2
: ::c_uint
= 0x00002478;
841 pub const MINIX2_SUPER_MAGIC
: ::c_uint
= 0x00002468;
842 pub const MINIX3_SUPER_MAGIC
: ::c_uint
= 0x4d5a;
843 pub const MINIX_SUPER_MAGIC2
: ::c_uint
= 0x0000138f;
844 pub const MINIX_SUPER_MAGIC
: ::c_uint
= 0x0000137f;
845 pub const MSDOS_SUPER_MAGIC
: ::c_uint
= 0x00004d44;
846 pub const NCP_SUPER_MAGIC
: ::c_uint
= 0x0000564c;
847 pub const NFS_SUPER_MAGIC
: ::c_uint
= 0x00006969;
848 pub const NILFS_SUPER_MAGIC
: ::c_uint
= 0x3434;
849 pub const OCFS2_SUPER_MAGIC
: ::c_uint
= 0x7461636f;
850 pub const OPENPROM_SUPER_MAGIC
: ::c_uint
= 0x00009fa1;
851 pub const OVERLAYFS_SUPER_MAGIC
: ::c_uint
= 0x794c7630;
852 pub const PROC_SUPER_MAGIC
: ::c_uint
= 0x00009fa0;
853 pub const QNX4_SUPER_MAGIC
: ::c_uint
= 0x0000002f;
854 pub const QNX6_SUPER_MAGIC
: ::c_uint
= 0x68191122;
855 pub const RDTGROUP_SUPER_MAGIC
: ::c_uint
= 0x7655821;
856 pub const REISERFS_SUPER_MAGIC
: ::c_uint
= 0x52654973;
857 pub const SECURITYFS_MAGIC
: ::c_uint
= 0x73636673;
858 pub const SELINUX_MAGIC
: ::c_uint
= 0xf97cff8c;
859 pub const SMACK_MAGIC
: ::c_uint
= 0x43415d53;
860 pub const SMB_SUPER_MAGIC
: ::c_uint
= 0x0000517b;
861 pub const SYSFS_MAGIC
: ::c_uint
= 0x62656572;
862 pub const TMPFS_MAGIC
: ::c_uint
= 0x01021994;
863 pub const TRACEFS_MAGIC
: ::c_uint
= 0x74726163;
864 pub const UDF_SUPER_MAGIC
: ::c_uint
= 0x15013346;
865 pub const USBDEVICE_SUPER_MAGIC
: ::c_uint
= 0x00009fa2;
866 pub const XENFS_SUPER_MAGIC
: ::c_uint
= 0xabba1974;
867 pub const XFS_SUPER_MAGIC
: ::c_uint
= 0x58465342;
871 pub const CPU_SETSIZE
: ::c_int
= 0x400;
873 pub const PTRACE_TRACEME
: ::c_uint
= 0;
874 pub const PTRACE_PEEKTEXT
: ::c_uint
= 1;
875 pub const PTRACE_PEEKDATA
: ::c_uint
= 2;
876 pub const PTRACE_PEEKUSER
: ::c_uint
= 3;
877 pub const PTRACE_POKETEXT
: ::c_uint
= 4;
878 pub const PTRACE_POKEDATA
: ::c_uint
= 5;
879 pub const PTRACE_POKEUSER
: ::c_uint
= 6;
880 pub const PTRACE_CONT
: ::c_uint
= 7;
881 pub const PTRACE_KILL
: ::c_uint
= 8;
882 pub const PTRACE_SINGLESTEP
: ::c_uint
= 9;
883 pub const PTRACE_ATTACH
: ::c_uint
= 16;
884 pub const PTRACE_SYSCALL
: ::c_uint
= 24;
885 pub const PTRACE_SETOPTIONS
: ::c_uint
= 0x4200;
886 pub const PTRACE_GETEVENTMSG
: ::c_uint
= 0x4201;
887 pub const PTRACE_GETSIGINFO
: ::c_uint
= 0x4202;
888 pub const PTRACE_SETSIGINFO
: ::c_uint
= 0x4203;
889 pub const PTRACE_GETREGSET
: ::c_uint
= 0x4204;
890 pub const PTRACE_SETREGSET
: ::c_uint
= 0x4205;
891 pub const PTRACE_SEIZE
: ::c_uint
= 0x4206;
892 pub const PTRACE_INTERRUPT
: ::c_uint
= 0x4207;
893 pub const PTRACE_LISTEN
: ::c_uint
= 0x4208;
894 pub const PTRACE_PEEKSIGINFO
: ::c_uint
= 0x4209;
898 // Flags for preadv2/pwritev2
899 pub const RWF_HIPRI
: ::c_int
= 0x00000001;
900 pub const RWF_DSYNC
: ::c_int
= 0x00000002;
901 pub const RWF_SYNC
: ::c_int
= 0x00000004;
902 pub const RWF_NOWAIT
: ::c_int
= 0x00000008;
903 pub const RWF_APPEND
: ::c_int
= 0x00000010;
906 pub const TCA_PAD
: ::c_ushort
= 9;
907 pub const TCA_DUMP_INVISIBLE
: ::c_ushort
= 10;
908 pub const TCA_CHAIN
: ::c_ushort
= 11;
909 pub const TCA_HW_OFFLOAD
: ::c_ushort
= 12;
911 pub const RTM_DELNETCONF
: u16 = 81;
912 pub const RTM_NEWSTATS
: u16 = 92;
913 pub const RTM_GETSTATS
: u16 = 94;
914 pub const RTM_NEWCACHEREPORT
: u16 = 96;
916 pub const RTM_F_LOOKUP_TABLE
: ::c_uint
= 0x1000;
917 pub const RTM_F_FIB_MATCH
: ::c_uint
= 0x2000;
919 pub const RTA_VIA
: ::c_ushort
= 18;
920 pub const RTA_NEWDST
: ::c_ushort
= 19;
921 pub const RTA_PREF
: ::c_ushort
= 20;
922 pub const RTA_ENCAP_TYPE
: ::c_ushort
= 21;
923 pub const RTA_ENCAP
: ::c_ushort
= 22;
924 pub const RTA_EXPIRES
: ::c_ushort
= 23;
925 pub const RTA_PAD
: ::c_ushort
= 24;
926 pub const RTA_UID
: ::c_ushort
= 25;
927 pub const RTA_TTL_PROPAGATE
: ::c_ushort
= 26;
930 pub const NTF_EXT_LEARNED
: u8 = 0x10;
931 pub const NTF_OFFLOADED
: u8 = 0x20;
933 pub const NDA_MASTER
: ::c_ushort
= 9;
934 pub const NDA_LINK_NETNSID
: ::c_ushort
= 10;
935 pub const NDA_SRC_VNI
: ::c_ushort
= 11;
937 // linux/personality.h
938 pub const UNAME26
: ::c_int
= 0x0020000;
939 pub const FDPIC_FUNCPTRS
: ::c_int
= 0x0080000;
942 pub const IFA_FLAGS
: ::c_ushort
= 8;
944 pub const IFA_F_MANAGETEMPADDR
: u32 = 0x100;
945 pub const IFA_F_NOPREFIXROUTE
: u32 = 0x200;
946 pub const IFA_F_MCAUTOJOIN
: u32 = 0x400;
947 pub const IFA_F_STABLE_PRIVACY
: u32 = 0x800;
949 pub const MAX_LINKS
: ::c_int
= 32;
951 pub const GENL_UNS_ADMIN_PERM
: ::c_int
= 0x10;
953 pub const GENL_ID_VFS_DQUOT
: ::c_int
= ::NLMSG_MIN_TYPE
+ 1;
954 pub const GENL_ID_PMCRAID
: ::c_int
= ::NLMSG_MIN_TYPE
+ 2;
956 pub const TIOCM_LE
: ::c_int
= 0x001;
957 pub const TIOCM_DTR
: ::c_int
= 0x002;
958 pub const TIOCM_RTS
: ::c_int
= 0x004;
959 pub const TIOCM_CD
: ::c_int
= TIOCM_CAR
;
960 pub const TIOCM_RI
: ::c_int
= TIOCM_RNG
;
962 pub const NF_NETDEV_INGRESS
: ::c_int
= 0;
963 pub const NF_NETDEV_NUMHOOKS
: ::c_int
= 1;
965 pub const NFPROTO_INET
: ::c_int
= 1;
966 pub const NFPROTO_NETDEV
: ::c_int
= 5;
969 pub const KEYCTL_DH_COMPUTE
: u32 = 23;
970 pub const KEYCTL_PKEY_QUERY
: u32 = 24;
971 pub const KEYCTL_PKEY_ENCRYPT
: u32 = 25;
972 pub const KEYCTL_PKEY_DECRYPT
: u32 = 26;
973 pub const KEYCTL_PKEY_SIGN
: u32 = 27;
974 pub const KEYCTL_PKEY_VERIFY
: u32 = 28;
975 pub const KEYCTL_RESTRICT_KEYRING
: u32 = 29;
977 pub const KEYCTL_SUPPORTS_ENCRYPT
: u32 = 0x01;
978 pub const KEYCTL_SUPPORTS_DECRYPT
: u32 = 0x02;
979 pub const KEYCTL_SUPPORTS_SIGN
: u32 = 0x04;
980 pub const KEYCTL_SUPPORTS_VERIFY
: u32 = 0x08;
982 if #[cfg(not(any(target_arch="mips", target_arch="mips64")))] {
983 pub const KEYCTL_MOVE
: u32 = 30;
984 pub const KEYCTL_CAPABILITIES
: u32 = 31;
986 pub const KEYCTL_CAPS0_CAPABILITIES
: u32 = 0x01;
987 pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS
: u32 = 0x02;
988 pub const KEYCTL_CAPS0_DIFFIE_HELLMAN
: u32 = 0x04;
989 pub const KEYCTL_CAPS0_PUBLIC_KEY
: u32 = 0x08;
990 pub const KEYCTL_CAPS0_BIG_KEY
: u32 = 0x10;
991 pub const KEYCTL_CAPS0_INVALIDATE
: u32 = 0x20;
992 pub const KEYCTL_CAPS0_RESTRICT_KEYRING
: u32 = 0x40;
993 pub const KEYCTL_CAPS0_MOVE
: u32 = 0x80;
994 pub const KEYCTL_CAPS1_NS_KEYRING_NAME
: u32 = 0x01;
995 pub const KEYCTL_CAPS1_NS_KEY_TAG
: u32 = 0x02;
999 // linux/netfilter/nf_tables.h
1000 pub const NFT_TABLE_MAXNAMELEN
: ::c_int
= 256;
1001 pub const NFT_CHAIN_MAXNAMELEN
: ::c_int
= 256;
1002 pub const NFT_SET_MAXNAMELEN
: ::c_int
= 256;
1003 pub const NFT_OBJ_MAXNAMELEN
: ::c_int
= 256;
1004 pub const NFT_USERDATA_MAXLEN
: ::c_int
= 256;
1006 pub const NFT_REG_VERDICT
: ::c_int
= 0;
1007 pub const NFT_REG_1
: ::c_int
= 1;
1008 pub const NFT_REG_2
: ::c_int
= 2;
1009 pub const NFT_REG_3
: ::c_int
= 3;
1010 pub const NFT_REG_4
: ::c_int
= 4;
1011 pub const __NFT_REG_MAX
: ::c_int
= 5;
1012 pub const NFT_REG32_00
: ::c_int
= 8;
1013 pub const NFT_REG32_01
: ::c_int
= 9;
1014 pub const NFT_REG32_02
: ::c_int
= 10;
1015 pub const NFT_REG32_03
: ::c_int
= 11;
1016 pub const NFT_REG32_04
: ::c_int
= 12;
1017 pub const NFT_REG32_05
: ::c_int
= 13;
1018 pub const NFT_REG32_06
: ::c_int
= 14;
1019 pub const NFT_REG32_07
: ::c_int
= 15;
1020 pub const NFT_REG32_08
: ::c_int
= 16;
1021 pub const NFT_REG32_09
: ::c_int
= 17;
1022 pub const NFT_REG32_10
: ::c_int
= 18;
1023 pub const NFT_REG32_11
: ::c_int
= 19;
1024 pub const NFT_REG32_12
: ::c_int
= 20;
1025 pub const NFT_REG32_13
: ::c_int
= 21;
1026 pub const NFT_REG32_14
: ::c_int
= 22;
1027 pub const NFT_REG32_15
: ::c_int
= 23;
1029 pub const NFT_REG_SIZE
: ::c_int
= 16;
1030 pub const NFT_REG32_SIZE
: ::c_int
= 4;
1032 pub const NFT_CONTINUE
: ::c_int
= -1;
1033 pub const NFT_BREAK
: ::c_int
= -2;
1034 pub const NFT_JUMP
: ::c_int
= -3;
1035 pub const NFT_GOTO
: ::c_int
= -4;
1036 pub const NFT_RETURN
: ::c_int
= -5;
1038 pub const NFT_MSG_NEWTABLE
: ::c_int
= 0;
1039 pub const NFT_MSG_GETTABLE
: ::c_int
= 1;
1040 pub const NFT_MSG_DELTABLE
: ::c_int
= 2;
1041 pub const NFT_MSG_NEWCHAIN
: ::c_int
= 3;
1042 pub const NFT_MSG_GETCHAIN
: ::c_int
= 4;
1043 pub const NFT_MSG_DELCHAIN
: ::c_int
= 5;
1044 pub const NFT_MSG_NEWRULE
: ::c_int
= 6;
1045 pub const NFT_MSG_GETRULE
: ::c_int
= 7;
1046 pub const NFT_MSG_DELRULE
: ::c_int
= 8;
1047 pub const NFT_MSG_NEWSET
: ::c_int
= 9;
1048 pub const NFT_MSG_GETSET
: ::c_int
= 10;
1049 pub const NFT_MSG_DELSET
: ::c_int
= 11;
1050 pub const NFT_MSG_NEWSETELEM
: ::c_int
= 12;
1051 pub const NFT_MSG_GETSETELEM
: ::c_int
= 13;
1052 pub const NFT_MSG_DELSETELEM
: ::c_int
= 14;
1053 pub const NFT_MSG_NEWGEN
: ::c_int
= 15;
1054 pub const NFT_MSG_GETGEN
: ::c_int
= 16;
1055 pub const NFT_MSG_TRACE
: ::c_int
= 17;
1057 if #[cfg(not(target_arch = "sparc64"))] {
1058 pub const NFT_MSG_NEWOBJ
: ::c_int
= 18;
1059 pub const NFT_MSG_GETOBJ
: ::c_int
= 19;
1060 pub const NFT_MSG_DELOBJ
: ::c_int
= 20;
1061 pub const NFT_MSG_GETOBJ_RESET
: ::c_int
= 21;
1064 pub const NFT_MSG_MAX
: ::c_int
= 25;
1066 pub const NFT_SET_ANONYMOUS
: ::c_int
= 0x1;
1067 pub const NFT_SET_CONSTANT
: ::c_int
= 0x2;
1068 pub const NFT_SET_INTERVAL
: ::c_int
= 0x4;
1069 pub const NFT_SET_MAP
: ::c_int
= 0x8;
1070 pub const NFT_SET_TIMEOUT
: ::c_int
= 0x10;
1071 pub const NFT_SET_EVAL
: ::c_int
= 0x20;
1073 pub const NFT_SET_POL_PERFORMANCE
: ::c_int
= 0;
1074 pub const NFT_SET_POL_MEMORY
: ::c_int
= 1;
1076 pub const NFT_SET_ELEM_INTERVAL_END
: ::c_int
= 0x1;
1078 pub const NFT_DATA_VALUE
: ::c_uint
= 0;
1079 pub const NFT_DATA_VERDICT
: ::c_uint
= 0xffffff00;
1081 pub const NFT_DATA_RESERVED_MASK
: ::c_uint
= 0xffffff00;
1083 pub const NFT_DATA_VALUE_MAXLEN
: ::c_int
= 64;
1085 pub const NFT_BYTEORDER_NTOH
: ::c_int
= 0;
1086 pub const NFT_BYTEORDER_HTON
: ::c_int
= 1;
1088 pub const NFT_CMP_EQ
: ::c_int
= 0;
1089 pub const NFT_CMP_NEQ
: ::c_int
= 1;
1090 pub const NFT_CMP_LT
: ::c_int
= 2;
1091 pub const NFT_CMP_LTE
: ::c_int
= 3;
1092 pub const NFT_CMP_GT
: ::c_int
= 4;
1093 pub const NFT_CMP_GTE
: ::c_int
= 5;
1095 pub const NFT_RANGE_EQ
: ::c_int
= 0;
1096 pub const NFT_RANGE_NEQ
: ::c_int
= 1;
1098 pub const NFT_LOOKUP_F_INV
: ::c_int
= 1 << 0;
1100 pub const NFT_DYNSET_OP_ADD
: ::c_int
= 0;
1101 pub const NFT_DYNSET_OP_UPDATE
: ::c_int
= 1;
1103 pub const NFT_DYNSET_F_INV
: ::c_int
= 1 << 0;
1105 pub const NFT_PAYLOAD_LL_HEADER
: ::c_int
= 0;
1106 pub const NFT_PAYLOAD_NETWORK_HEADER
: ::c_int
= 1;
1107 pub const NFT_PAYLOAD_TRANSPORT_HEADER
: ::c_int
= 2;
1109 pub const NFT_PAYLOAD_CSUM_NONE
: ::c_int
= 0;
1110 pub const NFT_PAYLOAD_CSUM_INET
: ::c_int
= 1;
1112 pub const NFT_META_LEN
: ::c_int
= 0;
1113 pub const NFT_META_PROTOCOL
: ::c_int
= 1;
1114 pub const NFT_META_PRIORITY
: ::c_int
= 2;
1115 pub const NFT_META_MARK
: ::c_int
= 3;
1116 pub const NFT_META_IIF
: ::c_int
= 4;
1117 pub const NFT_META_OIF
: ::c_int
= 5;
1118 pub const NFT_META_IIFNAME
: ::c_int
= 6;
1119 pub const NFT_META_OIFNAME
: ::c_int
= 7;
1120 pub const NFT_META_IIFTYPE
: ::c_int
= 8;
1121 pub const NFT_META_OIFTYPE
: ::c_int
= 9;
1122 pub const NFT_META_SKUID
: ::c_int
= 10;
1123 pub const NFT_META_SKGID
: ::c_int
= 11;
1124 pub const NFT_META_NFTRACE
: ::c_int
= 12;
1125 pub const NFT_META_RTCLASSID
: ::c_int
= 13;
1126 pub const NFT_META_SECMARK
: ::c_int
= 14;
1127 pub const NFT_META_NFPROTO
: ::c_int
= 15;
1128 pub const NFT_META_L4PROTO
: ::c_int
= 16;
1129 pub const NFT_META_BRI_IIFNAME
: ::c_int
= 17;
1130 pub const NFT_META_BRI_OIFNAME
: ::c_int
= 18;
1131 pub const NFT_META_PKTTYPE
: ::c_int
= 19;
1132 pub const NFT_META_CPU
: ::c_int
= 20;
1133 pub const NFT_META_IIFGROUP
: ::c_int
= 21;
1134 pub const NFT_META_OIFGROUP
: ::c_int
= 22;
1135 pub const NFT_META_CGROUP
: ::c_int
= 23;
1136 pub const NFT_META_PRANDOM
: ::c_int
= 24;
1138 pub const NFT_CT_STATE
: ::c_int
= 0;
1139 pub const NFT_CT_DIRECTION
: ::c_int
= 1;
1140 pub const NFT_CT_STATUS
: ::c_int
= 2;
1141 pub const NFT_CT_MARK
: ::c_int
= 3;
1142 pub const NFT_CT_SECMARK
: ::c_int
= 4;
1143 pub const NFT_CT_EXPIRATION
: ::c_int
= 5;
1144 pub const NFT_CT_HELPER
: ::c_int
= 6;
1145 pub const NFT_CT_L3PROTOCOL
: ::c_int
= 7;
1146 pub const NFT_CT_SRC
: ::c_int
= 8;
1147 pub const NFT_CT_DST
: ::c_int
= 9;
1148 pub const NFT_CT_PROTOCOL
: ::c_int
= 10;
1149 pub const NFT_CT_PROTO_SRC
: ::c_int
= 11;
1150 pub const NFT_CT_PROTO_DST
: ::c_int
= 12;
1151 pub const NFT_CT_LABELS
: ::c_int
= 13;
1152 pub const NFT_CT_PKTS
: ::c_int
= 14;
1153 pub const NFT_CT_BYTES
: ::c_int
= 15;
1155 pub const NFT_LIMIT_PKTS
: ::c_int
= 0;
1156 pub const NFT_LIMIT_PKT_BYTES
: ::c_int
= 1;
1158 pub const NFT_LIMIT_F_INV
: ::c_int
= 1 << 0;
1160 pub const NFT_QUEUE_FLAG_BYPASS
: ::c_int
= 0x01;
1161 pub const NFT_QUEUE_FLAG_CPU_FANOUT
: ::c_int
= 0x02;
1162 pub const NFT_QUEUE_FLAG_MASK
: ::c_int
= 0x03;
1164 pub const NFT_QUOTA_F_INV
: ::c_int
= 1 << 0;
1166 pub const NFT_REJECT_ICMP_UNREACH
: ::c_int
= 0;
1167 pub const NFT_REJECT_TCP_RST
: ::c_int
= 1;
1168 pub const NFT_REJECT_ICMPX_UNREACH
: ::c_int
= 2;
1170 pub const NFT_REJECT_ICMPX_NO_ROUTE
: ::c_int
= 0;
1171 pub const NFT_REJECT_ICMPX_PORT_UNREACH
: ::c_int
= 1;
1172 pub const NFT_REJECT_ICMPX_HOST_UNREACH
: ::c_int
= 2;
1173 pub const NFT_REJECT_ICMPX_ADMIN_PROHIBITED
: ::c_int
= 3;
1175 pub const NFT_NAT_SNAT
: ::c_int
= 0;
1176 pub const NFT_NAT_DNAT
: ::c_int
= 1;
1178 pub const NFT_TRACETYPE_UNSPEC
: ::c_int
= 0;
1179 pub const NFT_TRACETYPE_POLICY
: ::c_int
= 1;
1180 pub const NFT_TRACETYPE_RETURN
: ::c_int
= 2;
1181 pub const NFT_TRACETYPE_RULE
: ::c_int
= 3;
1183 pub const NFT_NG_INCREMENTAL
: ::c_int
= 0;
1184 pub const NFT_NG_RANDOM
: ::c_int
= 1;
1186 pub const M_MXFAST
: ::c_int
= 1;
1187 pub const M_NLBLKS
: ::c_int
= 2;
1188 pub const M_GRAIN
: ::c_int
= 3;
1189 pub const M_KEEP
: ::c_int
= 4;
1190 pub const M_TRIM_THRESHOLD
: ::c_int
= -1;
1191 pub const M_TOP_PAD
: ::c_int
= -2;
1192 pub const M_MMAP_THRESHOLD
: ::c_int
= -3;
1193 pub const M_MMAP_MAX
: ::c_int
= -4;
1194 pub const M_CHECK_ACTION
: ::c_int
= -5;
1195 pub const M_PERTURB
: ::c_int
= -6;
1196 pub const M_ARENA_TEST
: ::c_int
= -7;
1197 pub const M_ARENA_MAX
: ::c_int
= -8;
1199 pub const AT_STATX_SYNC_TYPE
: ::c_int
= 0x6000;
1200 pub const AT_STATX_SYNC_AS_STAT
: ::c_int
= 0x0000;
1201 pub const AT_STATX_FORCE_SYNC
: ::c_int
= 0x2000;
1202 pub const AT_STATX_DONT_SYNC
: ::c_int
= 0x4000;
1203 pub const STATX_TYPE
: ::c_uint
= 0x0001;
1204 pub const STATX_MODE
: ::c_uint
= 0x0002;
1205 pub const STATX_NLINK
: ::c_uint
= 0x0004;
1206 pub const STATX_UID
: ::c_uint
= 0x0008;
1207 pub const STATX_GID
: ::c_uint
= 0x0010;
1208 pub const STATX_ATIME
: ::c_uint
= 0x0020;
1209 pub const STATX_MTIME
: ::c_uint
= 0x0040;
1210 pub const STATX_CTIME
: ::c_uint
= 0x0080;
1211 pub const STATX_INO
: ::c_uint
= 0x0100;
1212 pub const STATX_SIZE
: ::c_uint
= 0x0200;
1213 pub const STATX_BLOCKS
: ::c_uint
= 0x0400;
1214 pub const STATX_BASIC_STATS
: ::c_uint
= 0x07ff;
1215 pub const STATX_BTIME
: ::c_uint
= 0x0800;
1216 pub const STATX_MNT_ID
: ::c_uint
= 0x1000;
1217 pub const STATX_ALL
: ::c_uint
= 0x0fff;
1218 pub const STATX__RESERVED
: ::c_int
= 0x80000000;
1219 pub const STATX_ATTR_COMPRESSED
: ::c_int
= 0x0004;
1220 pub const STATX_ATTR_IMMUTABLE
: ::c_int
= 0x0010;
1221 pub const STATX_ATTR_APPEND
: ::c_int
= 0x0020;
1222 pub const STATX_ATTR_NODUMP
: ::c_int
= 0x0040;
1223 pub const STATX_ATTR_ENCRYPTED
: ::c_int
= 0x0800;
1224 pub const STATX_ATTR_AUTOMOUNT
: ::c_int
= 0x1000;
1227 pub const ADJ_OFFSET
: ::c_uint
= 0x0001;
1228 pub const ADJ_FREQUENCY
: ::c_uint
= 0x0002;
1229 pub const ADJ_MAXERROR
: ::c_uint
= 0x0004;
1230 pub const ADJ_ESTERROR
: ::c_uint
= 0x0008;
1231 pub const ADJ_STATUS
: ::c_uint
= 0x0010;
1232 pub const ADJ_TIMECONST
: ::c_uint
= 0x0020;
1233 pub const ADJ_TAI
: ::c_uint
= 0x0080;
1234 pub const ADJ_SETOFFSET
: ::c_uint
= 0x0100;
1235 pub const ADJ_MICRO
: ::c_uint
= 0x1000;
1236 pub const ADJ_NANO
: ::c_uint
= 0x2000;
1237 pub const ADJ_TICK
: ::c_uint
= 0x4000;
1238 pub const ADJ_OFFSET_SINGLESHOT
: ::c_uint
= 0x8001;
1239 pub const ADJ_OFFSET_SS_READ
: ::c_uint
= 0xa001;
1240 pub const MOD_OFFSET
: ::c_uint
= ADJ_OFFSET
;
1241 pub const MOD_FREQUENCY
: ::c_uint
= ADJ_FREQUENCY
;
1242 pub const MOD_MAXERROR
: ::c_uint
= ADJ_MAXERROR
;
1243 pub const MOD_ESTERROR
: ::c_uint
= ADJ_ESTERROR
;
1244 pub const MOD_STATUS
: ::c_uint
= ADJ_STATUS
;
1245 pub const MOD_TIMECONST
: ::c_uint
= ADJ_TIMECONST
;
1246 pub const MOD_CLKB
: ::c_uint
= ADJ_TICK
;
1247 pub const MOD_CLKA
: ::c_uint
= ADJ_OFFSET_SINGLESHOT
;
1248 pub const MOD_TAI
: ::c_uint
= ADJ_TAI
;
1249 pub const MOD_MICRO
: ::c_uint
= ADJ_MICRO
;
1250 pub const MOD_NANO
: ::c_uint
= ADJ_NANO
;
1251 pub const STA_PLL
: ::c_int
= 0x0001;
1252 pub const STA_PPSFREQ
: ::c_int
= 0x0002;
1253 pub const STA_PPSTIME
: ::c_int
= 0x0004;
1254 pub const STA_FLL
: ::c_int
= 0x0008;
1255 pub const STA_INS
: ::c_int
= 0x0010;
1256 pub const STA_DEL
: ::c_int
= 0x0020;
1257 pub const STA_UNSYNC
: ::c_int
= 0x0040;
1258 pub const STA_FREQHOLD
: ::c_int
= 0x0080;
1259 pub const STA_PPSSIGNAL
: ::c_int
= 0x0100;
1260 pub const STA_PPSJITTER
: ::c_int
= 0x0200;
1261 pub const STA_PPSWANDER
: ::c_int
= 0x0400;
1262 pub const STA_PPSERROR
: ::c_int
= 0x0800;
1263 pub const STA_CLOCKERR
: ::c_int
= 0x1000;
1264 pub const STA_NANO
: ::c_int
= 0x2000;
1265 pub const STA_MODE
: ::c_int
= 0x4000;
1266 pub const STA_CLK
: ::c_int
= 0x8000;
1267 pub const STA_RONLY
: ::c_int
= STA_PPSSIGNAL
1275 pub const NTP_API
: ::c_int
= 4;
1276 pub const TIME_OK
: ::c_int
= 0;
1277 pub const TIME_INS
: ::c_int
= 1;
1278 pub const TIME_DEL
: ::c_int
= 2;
1279 pub const TIME_OOP
: ::c_int
= 3;
1280 pub const TIME_WAIT
: ::c_int
= 4;
1281 pub const TIME_ERROR
: ::c_int
= 5;
1282 pub const TIME_BAD
: ::c_int
= TIME_ERROR
;
1283 pub const MAXTC
: ::c_long
= 6;
1287 target_arch
= "arm",
1288 target_arch
= "x86",
1289 target_arch
= "x86_64",
1290 target_arch
= "s390x",
1291 target_arch
= "riscv64",
1292 target_arch
= "riscv32"
1294 pub const PTHREAD_STACK_MIN
: ::size_t
= 16384;
1295 } else if #[cfg(any(
1296 target_arch
= "sparc",
1297 target_arch
= "sparc64"
1299 pub const PTHREAD_STACK_MIN
: ::size_t
= 0x6000;
1301 pub const PTHREAD_STACK_MIN
: ::size_t
= 131072;
1304 pub const PTHREAD_MUTEX_ADAPTIVE_NP
: ::c_int
= 3;
1306 pub const REG_STARTEND
: ::c_int
= 4;
1308 pub const REG_EEND
: ::c_int
= 14;
1309 pub const REG_ESIZE
: ::c_int
= 15;
1310 pub const REG_ERPAREN
: ::c_int
= 16;
1318 spbufp
: *mut *mut ::spwd
,
1325 spbufp
: *mut *mut ::spwd
,
1331 spbufp
: *mut *mut ::spwd
,
1334 base
: *mut ::c_void
,
1338 unsafe extern "C" fn(*const ::c_void
, *const ::c_void
, *mut ::c_void
) -> ::c_int
,
1344 msgvec
: *mut ::mmsghdr
,
1350 msgvec
: *mut ::mmsghdr
,
1353 timeout
: *mut ::timespec
,
1356 pub fn getrlimit64(resource
: ::__rlimit_resource_t
, rlim
: *mut ::rlimit64
) -> ::c_int
;
1357 pub fn setrlimit64(resource
: ::__rlimit_resource_t
, rlim
: *const ::rlimit64
) -> ::c_int
;
1358 pub fn getrlimit(resource
: ::__rlimit_resource_t
, rlim
: *mut ::rlimit
) -> ::c_int
;
1359 pub fn setrlimit(resource
: ::__rlimit_resource_t
, rlim
: *const ::rlimit
) -> ::c_int
;
1362 resource
: ::__rlimit_resource_t
,
1363 new_limit
: *const ::rlimit
,
1364 old_limit
: *mut ::rlimit
,
1368 resource
: ::__rlimit_resource_t
,
1369 new_limit
: *const ::rlimit64
,
1370 old_limit
: *mut ::rlimit64
,
1372 pub fn utmpname(file
: *const ::c_char
) -> ::c_int
;
1373 pub fn utmpxname(file
: *const ::c_char
) -> ::c_int
;
1374 pub fn getutxent() -> *mut utmpx
;
1375 pub fn getutxid(ut
: *const utmpx
) -> *mut utmpx
;
1376 pub fn getutxline(ut
: *const utmpx
) -> *mut utmpx
;
1377 pub fn pututxline(ut
: *const utmpx
) -> *mut utmpx
;
1380 pub fn getpt() -> ::c_int
;
1381 pub fn mallopt(param
: ::c_int
, value
: ::c_int
) -> ::c_int
;
1382 pub fn gettimeofday(tp
: *mut ::timeval
, tz
: *mut ::timezone
) -> ::c_int
;
1385 pathname
: *const c_char
,
1388 statxbuf
: *mut statx
,
1390 pub fn getrandom(buf
: *mut ::c_void
, buflen
: ::size_t
, flags
: ::c_uint
) -> ::ssize_t
;
1393 haystack
: *const ::c_void
,
1394 haystacklen
: ::size_t
,
1395 needle
: *const ::c_void
,
1396 needlelen
: ::size_t
,
1398 pub fn getauxval(type_
: ::c_ulong
) -> ::c_ulong
;
1400 pub fn adjtimex(buf
: *mut timex
) -> ::c_int
;
1401 pub fn ntp_adjtime(buf
: *mut timex
) -> ::c_int
;
1402 #[link_name = "ntp_gettimex"]
1403 pub fn ntp_gettime(buf
: *mut ntptimeval
) -> ::c_int
;
1404 pub fn copy_file_range(
1406 off_in
: *mut ::off64_t
,
1408 off_out
: *mut ::off64_t
,
1412 pub fn fanotify_mark(
1417 path
: *const ::c_char
,
1421 iov
: *const ::iovec
,
1428 iov
: *const ::iovec
,
1435 oldpath
: *const ::c_char
,
1437 newpath
: *const ::c_char
,
1443 pub fn ioctl(fd
: ::c_int
, request
: ::c_ulong
, ...) -> ::c_int
;
1444 pub fn backtrace(buf
: *mut *mut ::c_void
, sz
: ::c_int
) -> ::c_int
;
1446 pattern
: *const ::c_char
,
1448 errfunc
: ::Option
<extern "C" fn(epath
: *const ::c_char
, errno
: ::c_int
) -> ::c_int
>,
1449 pglob
: *mut glob64_t
,
1451 pub fn globfree64(pglob
: *mut glob64_t
);
1452 pub fn ptrace(request
: ::c_uint
, ...) -> ::c_long
;
1453 pub fn pthread_attr_getaffinity_np(
1454 attr
: *const ::pthread_attr_t
,
1455 cpusetsize
: ::size_t
,
1456 cpuset
: *mut ::cpu_set_t
,
1458 pub fn pthread_attr_setaffinity_np(
1459 attr
: *mut ::pthread_attr_t
,
1460 cpusetsize
: ::size_t
,
1461 cpuset
: *const ::cpu_set_t
,
1463 pub fn getpriority(which
: ::__priority_which_t
, who
: ::id_t
) -> ::c_int
;
1464 pub fn setpriority(which
: ::__priority_which_t
, who
: ::id_t
, prio
: ::c_int
) -> ::c_int
;
1465 pub fn pthread_getaffinity_np(
1466 thread
: ::pthread_t
,
1467 cpusetsize
: ::size_t
,
1468 cpuset
: *mut ::cpu_set_t
,
1470 pub fn pthread_setaffinity_np(
1471 thread
: ::pthread_t
,
1472 cpusetsize
: ::size_t
,
1473 cpuset
: *const ::cpu_set_t
,
1475 pub fn pthread_rwlockattr_getkind_np(
1476 attr
: *const ::pthread_rwlockattr_t
,
1479 pub fn pthread_rwlockattr_setkind_np(
1480 attr
: *mut ::pthread_rwlockattr_t
,
1483 pub fn sched_getcpu() -> ::c_int
;
1484 pub fn mallinfo() -> ::mallinfo
;
1485 pub fn malloc_usable_size(ptr
: *mut ::c_void
) -> ::size_t
;
1490 result
: *mut *mut ::passwd
,
1496 result
: *mut *mut ::group
,
1498 pub fn pthread_getname_np(thread
: ::pthread_t
, name
: *mut ::c_char
, len
: ::size_t
) -> ::c_int
;
1499 pub fn pthread_setname_np(thread
: ::pthread_t
, name
: *const ::c_char
) -> ::c_int
;
1503 pub fn dlmopen(lmid
: Lmid_t
, filename
: *const ::c_char
, flag
: ::c_int
) -> *mut ::c_void
;
1504 pub fn dlinfo(handle
: *mut ::c_void
, request
: ::c_int
, info
: *mut ::c_void
) -> ::c_int
;
1508 if #[cfg(any(target_arch = "x86",
1509 target_arch
= "arm",
1510 target_arch
= "mips",
1511 target_arch
= "powerpc",
1512 target_arch
= "sparc",
1513 target_arch
= "riscv32"))] {
1515 pub use self::b32
::*;
1516 } else if #[cfg(any(target_arch = "x86_64",
1517 target_arch
= "aarch64",
1518 target_arch
= "powerpc64",
1519 target_arch
= "mips64",
1520 target_arch
= "s390x",
1521 target_arch
= "sparc64",
1522 target_arch
= "riscv64"))] {
1524 pub use self::b64
::*;
1526 // Unknown target_arch
1531 if #[cfg(libc_align)] {
1533 pub use self::align
::*;
1536 pub use self::no_align
::*;