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 
6 s! {
7     pub struct statx {
8         pub stx_mask: u32,
9         pub stx_blksize: u32,
10         pub stx_attributes: u64,
11         pub stx_nlink: u32,
12         pub stx_uid: u32,
13         pub stx_gid: u32,
14         pub stx_mode: u16,
15         pub __statx_pad1: [u16; 1],
16         pub stx_ino: u64,
17         pub stx_size: u64,
18         pub stx_blocks: u64,
19         pub stx_attributes_mask: u64,
20         pub stx_atime: ::statx_timestamp,
21         pub stx_btime: ::statx_timestamp,
22         pub stx_ctime: ::statx_timestamp,
23         pub stx_mtime: ::statx_timestamp,
24         pub stx_rdev_major: u32,
25         pub stx_rdev_minor: u32,
26         pub stx_dev_major: u32,
27         pub stx_dev_minor: u32,
28         pub __statx_pad2: [u64; 14],
29     }
30 
31     pub struct statx_timestamp {
32         pub tv_sec: i64,
33         pub tv_nsec: u32,
34         pub __statx_timestamp_pad1: [i32; 1],
35     }
36 
37     pub struct aiocb {
38         pub aio_fildes: ::c_int,
39         pub aio_lio_opcode: ::c_int,
40         pub aio_reqprio: ::c_int,
41         pub aio_buf: *mut ::c_void,
42         pub aio_nbytes: ::size_t,
43         pub aio_sigevent: ::sigevent,
44         __next_prio: *mut aiocb,
45         __abs_prio: ::c_int,
46         __policy: ::c_int,
47         __error_code: ::c_int,
48         __return_value: ::ssize_t,
49         pub aio_offset: off_t,
50         #[cfg(all(not(target_arch = "x86_64"), target_pointer_width = "32"))]
51         __unused1: [::c_char; 4],
52         __glibc_reserved: [::c_char; 32]
53     }
54 
55     pub struct __exit_status {
56         pub e_termination: ::c_short,
57         pub e_exit: ::c_short,
58     }
59 
60     pub struct __timeval {
61         pub tv_sec: i32,
62         pub tv_usec: i32,
63     }
64 
65     pub struct glob64_t {
66         pub gl_pathc: ::size_t,
67         pub gl_pathv: *mut *mut ::c_char,
68         pub gl_offs: ::size_t,
69         pub gl_flags: ::c_int,
70 
71         __unused1: *mut ::c_void,
72         __unused2: *mut ::c_void,
73         __unused3: *mut ::c_void,
74         __unused4: *mut ::c_void,
75         __unused5: *mut ::c_void,
76     }
77 
78     pub struct msghdr {
79         pub msg_name: *mut ::c_void,
80         pub msg_namelen: ::socklen_t,
81         pub msg_iov: *mut ::iovec,
82         pub msg_iovlen: ::size_t,
83         pub msg_control: *mut ::c_void,
84         pub msg_controllen: ::size_t,
85         pub msg_flags: ::c_int,
86     }
87 
88     pub struct cmsghdr {
89         pub cmsg_len: ::size_t,
90         pub cmsg_level: ::c_int,
91         pub cmsg_type: ::c_int,
92     }
93 
94     pub struct termios {
95         pub c_iflag: ::tcflag_t,
96         pub c_oflag: ::tcflag_t,
97         pub c_cflag: ::tcflag_t,
98         pub c_lflag: ::tcflag_t,
99         pub c_line: ::cc_t,
100         pub c_cc: [::cc_t; ::NCCS],
101         #[cfg(not(any(
102             target_arch = "sparc",
103             target_arch = "sparc64",
104             target_arch = "mips",
105             target_arch = "mips64")))]
106         pub c_ispeed: ::speed_t,
107         #[cfg(not(any(
108             target_arch = "sparc",
109             target_arch = "sparc64",
110             target_arch = "mips",
111             target_arch = "mips64")))]
112         pub c_ospeed: ::speed_t,
113     }
114 
115     pub struct mallinfo {
116         pub arena: ::c_int,
117         pub ordblks: ::c_int,
118         pub smblks: ::c_int,
119         pub hblks: ::c_int,
120         pub hblkhd: ::c_int,
121         pub usmblks: ::c_int,
122         pub fsmblks: ::c_int,
123         pub uordblks: ::c_int,
124         pub fordblks: ::c_int,
125         pub keepcost: ::c_int,
126     }
127 
128     pub struct nlmsghdr {
129         pub nlmsg_len: u32,
130         pub nlmsg_type: u16,
131         pub nlmsg_flags: u16,
132         pub nlmsg_seq: u32,
133         pub nlmsg_pid: u32,
134     }
135 
136     pub struct nlmsgerr {
137         pub error: ::c_int,
138         pub msg: nlmsghdr,
139     }
140 
141     pub struct nl_pktinfo {
142         pub group: u32,
143     }
144 
145     pub struct nl_mmap_req {
146         pub nm_block_size: ::c_uint,
147         pub nm_block_nr: ::c_uint,
148         pub nm_frame_size: ::c_uint,
149         pub nm_frame_nr: ::c_uint,
150     }
151 
152     pub struct nl_mmap_hdr {
153         pub nm_status: ::c_uint,
154         pub nm_len: ::c_uint,
155         pub nm_group: u32,
156         pub nm_pid: u32,
157         pub nm_uid: u32,
158         pub nm_gid: u32,
159     }
160 
161     pub struct nlattr {
162         pub nla_len: u16,
163         pub nla_type: u16,
164     }
165 
166     pub struct rtentry {
167         pub rt_pad1: ::c_ulong,
168         pub rt_dst: ::sockaddr,
169         pub rt_gateway: ::sockaddr,
170         pub rt_genmask: ::sockaddr,
171         pub rt_flags: ::c_ushort,
172         pub rt_pad2: ::c_short,
173         pub rt_pad3: ::c_ulong,
174         pub rt_tos: ::c_uchar,
175         pub rt_class: ::c_uchar,
176         #[cfg(target_pointer_width = "64")]
177         pub rt_pad4: [::c_short; 3usize],
178         #[cfg(not(target_pointer_width = "64"))]
179         pub rt_pad4: ::c_short,
180         pub rt_metric: ::c_short,
181         pub rt_dev: *mut ::c_char,
182         pub rt_mtu: ::c_ulong,
183         pub rt_window: ::c_ulong,
184         pub rt_irtt: ::c_ushort,
185     }
186 
187     pub struct timex {
188         pub modes: ::c_uint,
189         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
190         pub offset: i64,
191         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
192         pub offset: ::c_long,
193         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
194         pub freq: i64,
195         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
196         pub freq: ::c_long,
197         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
198         pub maxerror: i64,
199         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
200         pub maxerror: ::c_long,
201         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
202         pub esterror: i64,
203         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
204         pub esterror: ::c_long,
205         pub status: ::c_int,
206         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
207         pub constant: i64,
208         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
209         pub constant: ::c_long,
210         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
211         pub precision: i64,
212         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
213         pub precision: ::c_long,
214         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
215         pub tolerance: i64,
216         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
217         pub tolerance: ::c_long,
218         pub time: ::timeval,
219         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
220         pub tick: i64,
221         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
222         pub tick: ::c_long,
223         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
224         pub ppsfreq: i64,
225         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
226         pub ppsfreq: ::c_long,
227         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
228         pub jitter: i64,
229         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
230         pub jitter: ::c_long,
231         pub shift: ::c_int,
232         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
233         pub stabil: i64,
234         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
235         pub stabil: ::c_long,
236         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
237         pub jitcnt: i64,
238         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
239         pub jitcnt: ::c_long,
240         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
241         pub calcnt: i64,
242         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
243         pub calcnt: ::c_long,
244         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
245         pub errcnt: i64,
246         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
247         pub errcnt: ::c_long,
248         #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
249         pub stbcnt: i64,
250         #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
251         pub stbcnt: ::c_long,
252         pub tai: ::c_int,
253         pub __unused1: i32,
254         pub __unused2: i32,
255         pub __unused3: i32,
256         pub __unused4: i32,
257         pub __unused5: i32,
258         pub __unused6: i32,
259         pub __unused7: i32,
260         pub __unused8: i32,
261         pub __unused9: i32,
262         pub __unused10: i32,
263         pub __unused11: i32,
264     }
265 
266     pub struct ntptimeval {
267         pub time: ::timeval,
268         pub maxerror: ::c_long,
269         pub esterror: ::c_long,
270         pub tai: ::c_long,
271         pub __glibc_reserved1: ::c_long,
272         pub __glibc_reserved2: ::c_long,
273         pub __glibc_reserved3: ::c_long,
274         pub __glibc_reserved4: ::c_long,
275     }
276 }
277 
278 impl siginfo_t {
si_addr(&self) -> *mut ::c_void279     pub unsafe fn si_addr(&self) -> *mut ::c_void {
280         #[repr(C)]
281         struct siginfo_sigfault {
282             _si_signo: ::c_int,
283             _si_errno: ::c_int,
284             _si_code: ::c_int,
285             si_addr: *mut ::c_void,
286         }
287         (*(self as *const siginfo_t as *const siginfo_sigfault)).si_addr
288     }
289 
si_value(&self) -> ::sigval290     pub unsafe fn si_value(&self) -> ::sigval {
291         #[repr(C)]
292         struct siginfo_timer {
293             _si_signo: ::c_int,
294             _si_errno: ::c_int,
295             _si_code: ::c_int,
296             _si_tid: ::c_int,
297             _si_overrun: ::c_int,
298             si_sigval: ::sigval,
299         }
300         (*(self as *const siginfo_t as *const siginfo_timer)).si_sigval
301     }
302 }
303 
304 s_no_extra_traits! {
305     pub struct utmpx {
306         pub ut_type: ::c_short,
307         pub ut_pid: ::pid_t,
308         pub ut_line: [::c_char; __UT_LINESIZE],
309         pub ut_id: [::c_char; 4],
310 
311         pub ut_user: [::c_char; __UT_NAMESIZE],
312         pub ut_host: [::c_char; __UT_HOSTSIZE],
313         pub ut_exit: __exit_status,
314 
315         #[cfg(any(target_arch = "aarch64",
316                   target_arch = "s390x",
317                   all(target_pointer_width = "32",
318                       not(target_arch = "x86_64"))))]
319         pub ut_session: ::c_long,
320         #[cfg(any(target_arch = "aarch64",
321                   target_arch = "s390x",
322                   all(target_pointer_width = "32",
323                       not(target_arch = "x86_64"))))]
324         pub ut_tv: ::timeval,
325 
326         #[cfg(not(any(target_arch = "aarch64",
327                       target_arch = "s390x",
328                       all(target_pointer_width = "32",
329                           not(target_arch = "x86_64")))))]
330         pub ut_session: i32,
331         #[cfg(not(any(target_arch = "aarch64",
332                       target_arch = "s390x",
333                       all(target_pointer_width = "32",
334                           not(target_arch = "x86_64")))))]
335         pub ut_tv: __timeval,
336 
337         pub ut_addr_v6: [i32; 4],
338         __glibc_reserved: [::c_char; 20],
339     }
340 }
341 
342 cfg_if! {
343     if #[cfg(feature = "extra_traits")] {
344         impl PartialEq for utmpx {
345             fn eq(&self, other: &utmpx) -> bool {
346                 self.ut_type == other.ut_type
347                     && self.ut_pid == other.ut_pid
348                     && self.ut_line == other.ut_line
349                     && self.ut_id == other.ut_id
350                     && self.ut_user == other.ut_user
351                     && self
352                     .ut_host
353                     .iter()
354                     .zip(other.ut_host.iter())
355                     .all(|(a,b)| a == b)
356                     && self.ut_exit == other.ut_exit
357                     && self.ut_session == other.ut_session
358                     && self.ut_tv == other.ut_tv
359                     && self.ut_addr_v6 == other.ut_addr_v6
360                     && self.__glibc_reserved == other.__glibc_reserved
361             }
362         }
363 
364         impl Eq for utmpx {}
365 
366         impl ::fmt::Debug for utmpx {
367             fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
368                 f.debug_struct("utmpx")
369                     .field("ut_type", &self.ut_type)
370                     .field("ut_pid", &self.ut_pid)
371                     .field("ut_line", &self.ut_line)
372                     .field("ut_id", &self.ut_id)
373                     .field("ut_user", &self.ut_user)
374                 // FIXME: .field("ut_host", &self.ut_host)
375                     .field("ut_exit", &self.ut_exit)
376                     .field("ut_session", &self.ut_session)
377                     .field("ut_tv", &self.ut_tv)
378                     .field("ut_addr_v6", &self.ut_addr_v6)
379                     .field("__glibc_reserved", &self.__glibc_reserved)
380                     .finish()
381             }
382         }
383 
384         impl ::hash::Hash for utmpx {
385             fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
386                 self.ut_type.hash(state);
387                 self.ut_pid.hash(state);
388                 self.ut_line.hash(state);
389                 self.ut_id.hash(state);
390                 self.ut_user.hash(state);
391                 self.ut_host.hash(state);
392                 self.ut_exit.hash(state);
393                 self.ut_session.hash(state);
394                 self.ut_tv.hash(state);
395                 self.ut_addr_v6.hash(state);
396                 self.__glibc_reserved.hash(state);
397             }
398         }
399     }
400 }
401 
402 pub const RLIMIT_CPU: ::__rlimit_resource_t = 0;
403 pub const RLIMIT_FSIZE: ::__rlimit_resource_t = 1;
404 pub const RLIMIT_DATA: ::__rlimit_resource_t = 2;
405 pub const RLIMIT_STACK: ::__rlimit_resource_t = 3;
406 pub const RLIMIT_CORE: ::__rlimit_resource_t = 4;
407 pub const RLIMIT_LOCKS: ::__rlimit_resource_t = 10;
408 pub const RLIMIT_SIGPENDING: ::__rlimit_resource_t = 11;
409 pub const RLIMIT_MSGQUEUE: ::__rlimit_resource_t = 12;
410 pub const RLIMIT_NICE: ::__rlimit_resource_t = 13;
411 pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
412 pub const RLIMIT_RTTIME: ::__rlimit_resource_t = 15;
413 pub const RLIMIT_NLIMITS: ::__rlimit_resource_t = 16;
414 
415 pub const MS_RMT_MASK: ::c_ulong = 0x02800051;
416 
417 pub const __UT_LINESIZE: usize = 32;
418 pub const __UT_NAMESIZE: usize = 32;
419 pub const __UT_HOSTSIZE: usize = 256;
420 pub const EMPTY: ::c_short = 0;
421 pub const RUN_LVL: ::c_short = 1;
422 pub const BOOT_TIME: ::c_short = 2;
423 pub const NEW_TIME: ::c_short = 3;
424 pub const OLD_TIME: ::c_short = 4;
425 pub const INIT_PROCESS: ::c_short = 5;
426 pub const LOGIN_PROCESS: ::c_short = 6;
427 pub const USER_PROCESS: ::c_short = 7;
428 pub const DEAD_PROCESS: ::c_short = 8;
429 pub const ACCOUNTING: ::c_short = 9;
430 
431 // dlfcn.h
432 pub const LM_ID_BASE: ::c_long = 0;
433 pub const LM_ID_NEWLM: ::c_long = -1;
434 
435 pub const RTLD_DI_LMID: ::c_int = 1;
436 pub const RTLD_DI_LINKMAP: ::c_int = 2;
437 pub const RTLD_DI_CONFIGADDR: ::c_int = 3;
438 pub const RTLD_DI_SERINFO: ::c_int = 4;
439 pub const RTLD_DI_SERINFOSIZE: ::c_int = 5;
440 pub const RTLD_DI_ORIGIN: ::c_int = 6;
441 pub const RTLD_DI_PROFILENAME: ::c_int = 7;
442 pub const RTLD_DI_PROFILEOUT: ::c_int = 8;
443 pub const RTLD_DI_TLS_MODID: ::c_int = 9;
444 pub const RTLD_DI_TLS_DATA: ::c_int = 10;
445 
446 pub const SOCK_NONBLOCK: ::c_int = O_NONBLOCK;
447 
448 pub const SOL_RXRPC: ::c_int = 272;
449 pub const SOL_PPPOL2TP: ::c_int = 273;
450 pub const SOL_PNPIPE: ::c_int = 275;
451 pub const SOL_RDS: ::c_int = 276;
452 pub const SOL_IUCV: ::c_int = 277;
453 pub const SOL_CAIF: ::c_int = 278;
454 pub const SOL_NFC: ::c_int = 280;
455 pub const SOL_XDP: ::c_int = 283;
456 
457 pub const MSG_TRYHARD: ::c_int = 4;
458 
459 pub const LC_PAPER: ::c_int = 7;
460 pub const LC_NAME: ::c_int = 8;
461 pub const LC_ADDRESS: ::c_int = 9;
462 pub const LC_TELEPHONE: ::c_int = 10;
463 pub const LC_MEASUREMENT: ::c_int = 11;
464 pub const LC_IDENTIFICATION: ::c_int = 12;
465 pub const LC_PAPER_MASK: ::c_int = 1 << LC_PAPER;
466 pub const LC_NAME_MASK: ::c_int = 1 << LC_NAME;
467 pub const LC_ADDRESS_MASK: ::c_int = 1 << LC_ADDRESS;
468 pub const LC_TELEPHONE_MASK: ::c_int = 1 << LC_TELEPHONE;
469 pub const LC_MEASUREMENT_MASK: ::c_int = 1 << LC_MEASUREMENT;
470 pub const LC_IDENTIFICATION_MASK: ::c_int = 1 << LC_IDENTIFICATION;
471 pub const LC_ALL_MASK: ::c_int = ::LC_CTYPE_MASK
472     | ::LC_NUMERIC_MASK
473     | ::LC_TIME_MASK
474     | ::LC_COLLATE_MASK
475     | ::LC_MONETARY_MASK
476     | ::LC_MESSAGES_MASK
477     | LC_PAPER_MASK
478     | LC_NAME_MASK
479     | LC_ADDRESS_MASK
480     | LC_TELEPHONE_MASK
481     | LC_MEASUREMENT_MASK
482     | LC_IDENTIFICATION_MASK;
483 
484 pub const ENOTSUP: ::c_int = EOPNOTSUPP;
485 
486 pub const SOCK_SEQPACKET: ::c_int = 5;
487 pub const SOCK_DCCP: ::c_int = 6;
488 pub const SOCK_PACKET: ::c_int = 10;
489 
490 pub const TCP_COOKIE_TRANSACTIONS: ::c_int = 15;
491 pub const TCP_THIN_LINEAR_TIMEOUTS: ::c_int = 16;
492 pub const TCP_THIN_DUPACK: ::c_int = 17;
493 pub const TCP_USER_TIMEOUT: ::c_int = 18;
494 pub const TCP_REPAIR: ::c_int = 19;
495 pub const TCP_REPAIR_QUEUE: ::c_int = 20;
496 pub const TCP_QUEUE_SEQ: ::c_int = 21;
497 pub const TCP_REPAIR_OPTIONS: ::c_int = 22;
498 pub const TCP_FASTOPEN: ::c_int = 23;
499 pub const TCP_TIMESTAMP: ::c_int = 24;
500 pub const TCP_FASTOPEN_CONNECT: ::c_int = 30;
501 
502 /* DCCP socket options */
503 pub const DCCP_SOCKOPT_PACKET_SIZE: ::c_int = 1;
504 pub const DCCP_SOCKOPT_SERVICE: ::c_int = 2;
505 pub const DCCP_SOCKOPT_CHANGE_L: ::c_int = 3;
506 pub const DCCP_SOCKOPT_CHANGE_R: ::c_int = 4;
507 pub const DCCP_SOCKOPT_GET_CUR_MPS: ::c_int = 5;
508 pub const DCCP_SOCKOPT_SERVER_TIMEWAIT: ::c_int = 6;
509 pub const DCCP_SOCKOPT_SEND_CSCOV: ::c_int = 10;
510 pub const DCCP_SOCKOPT_RECV_CSCOV: ::c_int = 11;
511 pub const DCCP_SOCKOPT_AVAILABLE_CCIDS: ::c_int = 12;
512 pub const DCCP_SOCKOPT_CCID: ::c_int = 13;
513 pub const DCCP_SOCKOPT_TX_CCID: ::c_int = 14;
514 pub const DCCP_SOCKOPT_RX_CCID: ::c_int = 15;
515 pub const DCCP_SOCKOPT_QPOLICY_ID: ::c_int = 16;
516 pub const DCCP_SOCKOPT_QPOLICY_TXQLEN: ::c_int = 17;
517 pub const DCCP_SOCKOPT_CCID_RX_INFO: ::c_int = 128;
518 pub const DCCP_SOCKOPT_CCID_TX_INFO: ::c_int = 192;
519 
520 /// maximum number of services provided on the same listening port
521 pub const DCCP_SERVICE_LIST_MAX_LEN: ::c_int = 32;
522 
523 pub const SIGEV_THREAD_ID: ::c_int = 4;
524 
525 pub const BUFSIZ: ::c_uint = 8192;
526 pub const TMP_MAX: ::c_uint = 238328;
527 pub const FOPEN_MAX: ::c_uint = 16;
528 pub const POSIX_MADV_DONTNEED: ::c_int = 4;
529 pub const _SC_EQUIV_CLASS_MAX: ::c_int = 41;
530 pub const _SC_CHARCLASS_NAME_MAX: ::c_int = 45;
531 pub const _SC_PII: ::c_int = 53;
532 pub const _SC_PII_XTI: ::c_int = 54;
533 pub const _SC_PII_SOCKET: ::c_int = 55;
534 pub const _SC_PII_INTERNET: ::c_int = 56;
535 pub const _SC_PII_OSI: ::c_int = 57;
536 pub const _SC_POLL: ::c_int = 58;
537 pub const _SC_SELECT: ::c_int = 59;
538 pub const _SC_PII_INTERNET_STREAM: ::c_int = 61;
539 pub const _SC_PII_INTERNET_DGRAM: ::c_int = 62;
540 pub const _SC_PII_OSI_COTS: ::c_int = 63;
541 pub const _SC_PII_OSI_CLTS: ::c_int = 64;
542 pub const _SC_PII_OSI_M: ::c_int = 65;
543 pub const _SC_T_IOV_MAX: ::c_int = 66;
544 pub const _SC_2_C_VERSION: ::c_int = 96;
545 pub const _SC_CHAR_BIT: ::c_int = 101;
546 pub const _SC_CHAR_MAX: ::c_int = 102;
547 pub const _SC_CHAR_MIN: ::c_int = 103;
548 pub const _SC_INT_MAX: ::c_int = 104;
549 pub const _SC_INT_MIN: ::c_int = 105;
550 pub const _SC_LONG_BIT: ::c_int = 106;
551 pub const _SC_WORD_BIT: ::c_int = 107;
552 pub const _SC_MB_LEN_MAX: ::c_int = 108;
553 pub const _SC_SSIZE_MAX: ::c_int = 110;
554 pub const _SC_SCHAR_MAX: ::c_int = 111;
555 pub const _SC_SCHAR_MIN: ::c_int = 112;
556 pub const _SC_SHRT_MAX: ::c_int = 113;
557 pub const _SC_SHRT_MIN: ::c_int = 114;
558 pub const _SC_UCHAR_MAX: ::c_int = 115;
559 pub const _SC_UINT_MAX: ::c_int = 116;
560 pub const _SC_ULONG_MAX: ::c_int = 117;
561 pub const _SC_USHRT_MAX: ::c_int = 118;
562 pub const _SC_NL_ARGMAX: ::c_int = 119;
563 pub const _SC_NL_LANGMAX: ::c_int = 120;
564 pub const _SC_NL_MSGMAX: ::c_int = 121;
565 pub const _SC_NL_NMAX: ::c_int = 122;
566 pub const _SC_NL_SETMAX: ::c_int = 123;
567 pub const _SC_NL_TEXTMAX: ::c_int = 124;
568 pub const _SC_BASE: ::c_int = 134;
569 pub const _SC_C_LANG_SUPPORT: ::c_int = 135;
570 pub const _SC_C_LANG_SUPPORT_R: ::c_int = 136;
571 pub const _SC_DEVICE_IO: ::c_int = 140;
572 pub const _SC_DEVICE_SPECIFIC: ::c_int = 141;
573 pub const _SC_DEVICE_SPECIFIC_R: ::c_int = 142;
574 pub const _SC_FD_MGMT: ::c_int = 143;
575 pub const _SC_FIFO: ::c_int = 144;
576 pub const _SC_PIPE: ::c_int = 145;
577 pub const _SC_FILE_ATTRIBUTES: ::c_int = 146;
578 pub const _SC_FILE_LOCKING: ::c_int = 147;
579 pub const _SC_FILE_SYSTEM: ::c_int = 148;
580 pub const _SC_MULTI_PROCESS: ::c_int = 150;
581 pub const _SC_SINGLE_PROCESS: ::c_int = 151;
582 pub const _SC_NETWORKING: ::c_int = 152;
583 pub const _SC_REGEX_VERSION: ::c_int = 156;
584 pub const _SC_SIGNALS: ::c_int = 158;
585 pub const _SC_SYSTEM_DATABASE: ::c_int = 162;
586 pub const _SC_SYSTEM_DATABASE_R: ::c_int = 163;
587 pub const _SC_USER_GROUPS: ::c_int = 166;
588 pub const _SC_USER_GROUPS_R: ::c_int = 167;
589 pub const _SC_LEVEL1_ICACHE_SIZE: ::c_int = 185;
590 pub const _SC_LEVEL1_ICACHE_ASSOC: ::c_int = 186;
591 pub const _SC_LEVEL1_ICACHE_LINESIZE: ::c_int = 187;
592 pub const _SC_LEVEL1_DCACHE_SIZE: ::c_int = 188;
593 pub const _SC_LEVEL1_DCACHE_ASSOC: ::c_int = 189;
594 pub const _SC_LEVEL1_DCACHE_LINESIZE: ::c_int = 190;
595 pub const _SC_LEVEL2_CACHE_SIZE: ::c_int = 191;
596 pub const _SC_LEVEL2_CACHE_ASSOC: ::c_int = 192;
597 pub const _SC_LEVEL2_CACHE_LINESIZE: ::c_int = 193;
598 pub const _SC_LEVEL3_CACHE_SIZE: ::c_int = 194;
599 pub const _SC_LEVEL3_CACHE_ASSOC: ::c_int = 195;
600 pub const _SC_LEVEL3_CACHE_LINESIZE: ::c_int = 196;
601 pub const _SC_LEVEL4_CACHE_SIZE: ::c_int = 197;
602 pub const _SC_LEVEL4_CACHE_ASSOC: ::c_int = 198;
603 pub const _SC_LEVEL4_CACHE_LINESIZE: ::c_int = 199;
604 pub const O_ACCMODE: ::c_int = 3;
605 pub const ST_RELATIME: ::c_ulong = 4096;
606 pub const NI_MAXHOST: ::socklen_t = 1025;
607 
608 pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
609 pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
610 pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;
611 pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45;
612 pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53;
613 pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53;
614 pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
615 pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
616 pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
617 pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6;
618 pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660;
619 pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6;
620 pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f;
621 pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f;
622 pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468;
623 pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478;
624 pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44;
625 pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c;
626 pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969;
627 pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1;
628 pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0;
629 pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f;
630 pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973;
631 pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
632 pub const TMPFS_MAGIC: ::c_long = 0x01021994;
633 pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
634 pub const CGROUP_SUPER_MAGIC: ::c_long = 0x27e0eb;
635 pub const CGROUP2_SUPER_MAGIC: ::c_long = 0x63677270;
636 
637 pub const CPU_SETSIZE: ::c_int = 0x400;
638 
639 pub const PTRACE_TRACEME: ::c_uint = 0;
640 pub const PTRACE_PEEKTEXT: ::c_uint = 1;
641 pub const PTRACE_PEEKDATA: ::c_uint = 2;
642 pub const PTRACE_PEEKUSER: ::c_uint = 3;
643 pub const PTRACE_POKETEXT: ::c_uint = 4;
644 pub const PTRACE_POKEDATA: ::c_uint = 5;
645 pub const PTRACE_POKEUSER: ::c_uint = 6;
646 pub const PTRACE_CONT: ::c_uint = 7;
647 pub const PTRACE_KILL: ::c_uint = 8;
648 pub const PTRACE_SINGLESTEP: ::c_uint = 9;
649 pub const PTRACE_ATTACH: ::c_uint = 16;
650 pub const PTRACE_SYSCALL: ::c_uint = 24;
651 pub const PTRACE_SETOPTIONS: ::c_uint = 0x4200;
652 pub const PTRACE_GETEVENTMSG: ::c_uint = 0x4201;
653 pub const PTRACE_GETSIGINFO: ::c_uint = 0x4202;
654 pub const PTRACE_SETSIGINFO: ::c_uint = 0x4203;
655 pub const PTRACE_GETREGSET: ::c_uint = 0x4204;
656 pub const PTRACE_SETREGSET: ::c_uint = 0x4205;
657 pub const PTRACE_SEIZE: ::c_uint = 0x4206;
658 pub const PTRACE_INTERRUPT: ::c_uint = 0x4207;
659 pub const PTRACE_LISTEN: ::c_uint = 0x4208;
660 pub const PTRACE_PEEKSIGINFO: ::c_uint = 0x4209;
661 
662 pub const EPOLLWAKEUP: ::c_int = 0x20000000;
663 
664 pub const SEEK_DATA: ::c_int = 3;
665 pub const SEEK_HOLE: ::c_int = 4;
666 
667 // linux/rtnetlink.h
668 pub const TCA_PAD: ::c_ushort = 9;
669 pub const TCA_DUMP_INVISIBLE: ::c_ushort = 10;
670 pub const TCA_CHAIN: ::c_ushort = 11;
671 pub const TCA_HW_OFFLOAD: ::c_ushort = 12;
672 
673 pub const RTM_DELNETCONF: u16 = 81;
674 pub const RTM_NEWSTATS: u16 = 92;
675 pub const RTM_GETSTATS: u16 = 94;
676 pub const RTM_NEWCACHEREPORT: u16 = 96;
677 
678 pub const RTM_F_LOOKUP_TABLE: ::c_uint = 0x1000;
679 pub const RTM_F_FIB_MATCH: ::c_uint = 0x2000;
680 
681 pub const RTA_VIA: ::c_ushort = 18;
682 pub const RTA_NEWDST: ::c_ushort = 19;
683 pub const RTA_PREF: ::c_ushort = 20;
684 pub const RTA_ENCAP_TYPE: ::c_ushort = 21;
685 pub const RTA_ENCAP: ::c_ushort = 22;
686 pub const RTA_EXPIRES: ::c_ushort = 23;
687 pub const RTA_PAD: ::c_ushort = 24;
688 pub const RTA_UID: ::c_ushort = 25;
689 pub const RTA_TTL_PROPAGATE: ::c_ushort = 26;
690 
691 // linux/neighbor.h
692 pub const NTF_EXT_LEARNED: u8 = 0x10;
693 pub const NTF_OFFLOADED: u8 = 0x20;
694 
695 pub const NDA_MASTER: ::c_ushort = 9;
696 pub const NDA_LINK_NETNSID: ::c_ushort = 10;
697 pub const NDA_SRC_VNI: ::c_ushort = 11;
698 
699 // linux/if_addr.h
700 pub const IFA_FLAGS: ::c_ushort = 8;
701 
702 pub const IFA_F_MANAGETEMPADDR: u32 = 0x100;
703 pub const IFA_F_NOPREFIXROUTE: u32 = 0x200;
704 pub const IFA_F_MCAUTOJOIN: u32 = 0x400;
705 pub const IFA_F_STABLE_PRIVACY: u32 = 0x800;
706 
707 pub const MAX_LINKS: ::c_int = 32;
708 
709 pub const GENL_UNS_ADMIN_PERM: ::c_int = 0x10;
710 
711 pub const GENL_ID_VFS_DQUOT: ::c_int = ::NLMSG_MIN_TYPE + 1;
712 pub const GENL_ID_PMCRAID: ::c_int = ::NLMSG_MIN_TYPE + 2;
713 
714 pub const TIOCM_LE: ::c_int = 0x001;
715 pub const TIOCM_DTR: ::c_int = 0x002;
716 pub const TIOCM_RTS: ::c_int = 0x004;
717 pub const TIOCM_CD: ::c_int = TIOCM_CAR;
718 pub const TIOCM_RI: ::c_int = TIOCM_RNG;
719 
720 pub const NF_NETDEV_INGRESS: ::c_int = 0;
721 pub const NF_NETDEV_NUMHOOKS: ::c_int = 1;
722 
723 pub const NFPROTO_INET: ::c_int = 1;
724 pub const NFPROTO_NETDEV: ::c_int = 5;
725 
726 // linux/keyctl.h
727 pub const KEYCTL_DH_COMPUTE: u32 = 23;
728 pub const KEYCTL_PKEY_QUERY: u32 = 24;
729 pub const KEYCTL_PKEY_ENCRYPT: u32 = 25;
730 pub const KEYCTL_PKEY_DECRYPT: u32 = 26;
731 pub const KEYCTL_PKEY_SIGN: u32 = 27;
732 pub const KEYCTL_PKEY_VERIFY: u32 = 28;
733 pub const KEYCTL_RESTRICT_KEYRING: u32 = 29;
734 
735 pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 0x01;
736 pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 0x02;
737 pub const KEYCTL_SUPPORTS_SIGN: u32 = 0x04;
738 pub const KEYCTL_SUPPORTS_VERIFY: u32 = 0x08;
739 cfg_if! {
740     if #[cfg(not(any(target_arch="mips", target_arch="mips64")))] {
741         pub const KEYCTL_MOVE: u32 = 30;
742         pub const KEYCTL_CAPABILITIES: u32 = 31;
743 
744         pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 0x01;
745         pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 0x02;
746         pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 0x04;
747         pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 0x08;
748         pub const KEYCTL_CAPS0_BIG_KEY: u32 = 0x10;
749         pub const KEYCTL_CAPS0_INVALIDATE: u32 = 0x20;
750         pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 0x40;
751         pub const KEYCTL_CAPS0_MOVE: u32 = 0x80;
752         pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 0x01;
753         pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 0x02;
754     }
755 }
756 
757 // linux/netfilter/nf_tables.h
758 pub const NFT_TABLE_MAXNAMELEN: ::c_int = 256;
759 pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 256;
760 pub const NFT_SET_MAXNAMELEN: ::c_int = 256;
761 pub const NFT_OBJ_MAXNAMELEN: ::c_int = 256;
762 pub const NFT_USERDATA_MAXLEN: ::c_int = 256;
763 
764 pub const NFT_REG_VERDICT: ::c_int = 0;
765 pub const NFT_REG_1: ::c_int = 1;
766 pub const NFT_REG_2: ::c_int = 2;
767 pub const NFT_REG_3: ::c_int = 3;
768 pub const NFT_REG_4: ::c_int = 4;
769 pub const __NFT_REG_MAX: ::c_int = 5;
770 pub const NFT_REG32_00: ::c_int = 8;
771 pub const NFT_REG32_01: ::c_int = 9;
772 pub const NFT_REG32_02: ::c_int = 10;
773 pub const NFT_REG32_03: ::c_int = 11;
774 pub const NFT_REG32_04: ::c_int = 12;
775 pub const NFT_REG32_05: ::c_int = 13;
776 pub const NFT_REG32_06: ::c_int = 14;
777 pub const NFT_REG32_07: ::c_int = 15;
778 pub const NFT_REG32_08: ::c_int = 16;
779 pub const NFT_REG32_09: ::c_int = 17;
780 pub const NFT_REG32_10: ::c_int = 18;
781 pub const NFT_REG32_11: ::c_int = 19;
782 pub const NFT_REG32_12: ::c_int = 20;
783 pub const NFT_REG32_13: ::c_int = 21;
784 pub const NFT_REG32_14: ::c_int = 22;
785 pub const NFT_REG32_15: ::c_int = 23;
786 
787 pub const NFT_REG_SIZE: ::c_int = 16;
788 pub const NFT_REG32_SIZE: ::c_int = 4;
789 
790 pub const NFT_CONTINUE: ::c_int = -1;
791 pub const NFT_BREAK: ::c_int = -2;
792 pub const NFT_JUMP: ::c_int = -3;
793 pub const NFT_GOTO: ::c_int = -4;
794 pub const NFT_RETURN: ::c_int = -5;
795 
796 pub const NFT_MSG_NEWTABLE: ::c_int = 0;
797 pub const NFT_MSG_GETTABLE: ::c_int = 1;
798 pub const NFT_MSG_DELTABLE: ::c_int = 2;
799 pub const NFT_MSG_NEWCHAIN: ::c_int = 3;
800 pub const NFT_MSG_GETCHAIN: ::c_int = 4;
801 pub const NFT_MSG_DELCHAIN: ::c_int = 5;
802 pub const NFT_MSG_NEWRULE: ::c_int = 6;
803 pub const NFT_MSG_GETRULE: ::c_int = 7;
804 pub const NFT_MSG_DELRULE: ::c_int = 8;
805 pub const NFT_MSG_NEWSET: ::c_int = 9;
806 pub const NFT_MSG_GETSET: ::c_int = 10;
807 pub const NFT_MSG_DELSET: ::c_int = 11;
808 pub const NFT_MSG_NEWSETELEM: ::c_int = 12;
809 pub const NFT_MSG_GETSETELEM: ::c_int = 13;
810 pub const NFT_MSG_DELSETELEM: ::c_int = 14;
811 pub const NFT_MSG_NEWGEN: ::c_int = 15;
812 pub const NFT_MSG_GETGEN: ::c_int = 16;
813 pub const NFT_MSG_TRACE: ::c_int = 17;
814 cfg_if! {
815     if #[cfg(not(target_arch = "sparc64"))] {
816         pub const NFT_MSG_NEWOBJ: ::c_int = 18;
817         pub const NFT_MSG_GETOBJ: ::c_int = 19;
818         pub const NFT_MSG_DELOBJ: ::c_int = 20;
819         pub const NFT_MSG_GETOBJ_RESET: ::c_int = 21;
820     }
821 }
822 pub const NFT_MSG_MAX: ::c_int = 25;
823 
824 pub const NFT_SET_ANONYMOUS: ::c_int = 0x1;
825 pub const NFT_SET_CONSTANT: ::c_int = 0x2;
826 pub const NFT_SET_INTERVAL: ::c_int = 0x4;
827 pub const NFT_SET_MAP: ::c_int = 0x8;
828 pub const NFT_SET_TIMEOUT: ::c_int = 0x10;
829 pub const NFT_SET_EVAL: ::c_int = 0x20;
830 
831 pub const NFT_SET_POL_PERFORMANCE: ::c_int = 0;
832 pub const NFT_SET_POL_MEMORY: ::c_int = 1;
833 
834 pub const NFT_SET_ELEM_INTERVAL_END: ::c_int = 0x1;
835 
836 pub const NFT_DATA_VALUE: ::c_uint = 0;
837 pub const NFT_DATA_VERDICT: ::c_uint = 0xffffff00;
838 
839 pub const NFT_DATA_RESERVED_MASK: ::c_uint = 0xffffff00;
840 
841 pub const NFT_DATA_VALUE_MAXLEN: ::c_int = 64;
842 
843 pub const NFT_BYTEORDER_NTOH: ::c_int = 0;
844 pub const NFT_BYTEORDER_HTON: ::c_int = 1;
845 
846 pub const NFT_CMP_EQ: ::c_int = 0;
847 pub const NFT_CMP_NEQ: ::c_int = 1;
848 pub const NFT_CMP_LT: ::c_int = 2;
849 pub const NFT_CMP_LTE: ::c_int = 3;
850 pub const NFT_CMP_GT: ::c_int = 4;
851 pub const NFT_CMP_GTE: ::c_int = 5;
852 
853 pub const NFT_RANGE_EQ: ::c_int = 0;
854 pub const NFT_RANGE_NEQ: ::c_int = 1;
855 
856 pub const NFT_LOOKUP_F_INV: ::c_int = 1 << 0;
857 
858 pub const NFT_DYNSET_OP_ADD: ::c_int = 0;
859 pub const NFT_DYNSET_OP_UPDATE: ::c_int = 1;
860 
861 pub const NFT_DYNSET_F_INV: ::c_int = 1 << 0;
862 
863 pub const NFT_PAYLOAD_LL_HEADER: ::c_int = 0;
864 pub const NFT_PAYLOAD_NETWORK_HEADER: ::c_int = 1;
865 pub const NFT_PAYLOAD_TRANSPORT_HEADER: ::c_int = 2;
866 
867 pub const NFT_PAYLOAD_CSUM_NONE: ::c_int = 0;
868 pub const NFT_PAYLOAD_CSUM_INET: ::c_int = 1;
869 
870 pub const NFT_META_LEN: ::c_int = 0;
871 pub const NFT_META_PROTOCOL: ::c_int = 1;
872 pub const NFT_META_PRIORITY: ::c_int = 2;
873 pub const NFT_META_MARK: ::c_int = 3;
874 pub const NFT_META_IIF: ::c_int = 4;
875 pub const NFT_META_OIF: ::c_int = 5;
876 pub const NFT_META_IIFNAME: ::c_int = 6;
877 pub const NFT_META_OIFNAME: ::c_int = 7;
878 pub const NFT_META_IIFTYPE: ::c_int = 8;
879 pub const NFT_META_OIFTYPE: ::c_int = 9;
880 pub const NFT_META_SKUID: ::c_int = 10;
881 pub const NFT_META_SKGID: ::c_int = 11;
882 pub const NFT_META_NFTRACE: ::c_int = 12;
883 pub const NFT_META_RTCLASSID: ::c_int = 13;
884 pub const NFT_META_SECMARK: ::c_int = 14;
885 pub const NFT_META_NFPROTO: ::c_int = 15;
886 pub const NFT_META_L4PROTO: ::c_int = 16;
887 pub const NFT_META_BRI_IIFNAME: ::c_int = 17;
888 pub const NFT_META_BRI_OIFNAME: ::c_int = 18;
889 pub const NFT_META_PKTTYPE: ::c_int = 19;
890 pub const NFT_META_CPU: ::c_int = 20;
891 pub const NFT_META_IIFGROUP: ::c_int = 21;
892 pub const NFT_META_OIFGROUP: ::c_int = 22;
893 pub const NFT_META_CGROUP: ::c_int = 23;
894 pub const NFT_META_PRANDOM: ::c_int = 24;
895 
896 pub const NFT_CT_STATE: ::c_int = 0;
897 pub const NFT_CT_DIRECTION: ::c_int = 1;
898 pub const NFT_CT_STATUS: ::c_int = 2;
899 pub const NFT_CT_MARK: ::c_int = 3;
900 pub const NFT_CT_SECMARK: ::c_int = 4;
901 pub const NFT_CT_EXPIRATION: ::c_int = 5;
902 pub const NFT_CT_HELPER: ::c_int = 6;
903 pub const NFT_CT_L3PROTOCOL: ::c_int = 7;
904 pub const NFT_CT_SRC: ::c_int = 8;
905 pub const NFT_CT_DST: ::c_int = 9;
906 pub const NFT_CT_PROTOCOL: ::c_int = 10;
907 pub const NFT_CT_PROTO_SRC: ::c_int = 11;
908 pub const NFT_CT_PROTO_DST: ::c_int = 12;
909 pub const NFT_CT_LABELS: ::c_int = 13;
910 pub const NFT_CT_PKTS: ::c_int = 14;
911 pub const NFT_CT_BYTES: ::c_int = 15;
912 
913 pub const NFT_LIMIT_PKTS: ::c_int = 0;
914 pub const NFT_LIMIT_PKT_BYTES: ::c_int = 1;
915 
916 pub const NFT_LIMIT_F_INV: ::c_int = 1 << 0;
917 
918 pub const NFT_QUEUE_FLAG_BYPASS: ::c_int = 0x01;
919 pub const NFT_QUEUE_FLAG_CPU_FANOUT: ::c_int = 0x02;
920 pub const NFT_QUEUE_FLAG_MASK: ::c_int = 0x03;
921 
922 pub const NFT_QUOTA_F_INV: ::c_int = 1 << 0;
923 
924 pub const NFT_REJECT_ICMP_UNREACH: ::c_int = 0;
925 pub const NFT_REJECT_TCP_RST: ::c_int = 1;
926 pub const NFT_REJECT_ICMPX_UNREACH: ::c_int = 2;
927 
928 pub const NFT_REJECT_ICMPX_NO_ROUTE: ::c_int = 0;
929 pub const NFT_REJECT_ICMPX_PORT_UNREACH: ::c_int = 1;
930 pub const NFT_REJECT_ICMPX_HOST_UNREACH: ::c_int = 2;
931 pub const NFT_REJECT_ICMPX_ADMIN_PROHIBITED: ::c_int = 3;
932 
933 pub const NFT_NAT_SNAT: ::c_int = 0;
934 pub const NFT_NAT_DNAT: ::c_int = 1;
935 
936 pub const NFT_TRACETYPE_UNSPEC: ::c_int = 0;
937 pub const NFT_TRACETYPE_POLICY: ::c_int = 1;
938 pub const NFT_TRACETYPE_RETURN: ::c_int = 2;
939 pub const NFT_TRACETYPE_RULE: ::c_int = 3;
940 
941 pub const NFT_NG_INCREMENTAL: ::c_int = 0;
942 pub const NFT_NG_RANDOM: ::c_int = 1;
943 
944 pub const M_MXFAST: ::c_int = 1;
945 pub const M_NLBLKS: ::c_int = 2;
946 pub const M_GRAIN: ::c_int = 3;
947 pub const M_KEEP: ::c_int = 4;
948 pub const M_TRIM_THRESHOLD: ::c_int = -1;
949 pub const M_TOP_PAD: ::c_int = -2;
950 pub const M_MMAP_THRESHOLD: ::c_int = -3;
951 pub const M_MMAP_MAX: ::c_int = -4;
952 pub const M_CHECK_ACTION: ::c_int = -5;
953 pub const M_PERTURB: ::c_int = -6;
954 pub const M_ARENA_TEST: ::c_int = -7;
955 pub const M_ARENA_MAX: ::c_int = -8;
956 
957 pub const AT_STATX_SYNC_TYPE: ::c_int = 0x6000;
958 pub const AT_STATX_SYNC_AS_STAT: ::c_int = 0x0000;
959 pub const AT_STATX_FORCE_SYNC: ::c_int = 0x2000;
960 pub const AT_STATX_DONT_SYNC: ::c_int = 0x4000;
961 pub const STATX_TYPE: ::c_uint = 0x0001;
962 pub const STATX_MODE: ::c_uint = 0x0002;
963 pub const STATX_NLINK: ::c_uint = 0x0004;
964 pub const STATX_UID: ::c_uint = 0x0008;
965 pub const STATX_GID: ::c_uint = 0x0010;
966 pub const STATX_ATIME: ::c_uint = 0x0020;
967 pub const STATX_MTIME: ::c_uint = 0x0040;
968 pub const STATX_CTIME: ::c_uint = 0x0080;
969 pub const STATX_INO: ::c_uint = 0x0100;
970 pub const STATX_SIZE: ::c_uint = 0x0200;
971 pub const STATX_BLOCKS: ::c_uint = 0x0400;
972 pub const STATX_BASIC_STATS: ::c_uint = 0x07ff;
973 pub const STATX_BTIME: ::c_uint = 0x0800;
974 pub const STATX_ALL: ::c_uint = 0x0fff;
975 pub const STATX__RESERVED: ::c_int = 0x80000000;
976 pub const STATX_ATTR_COMPRESSED: ::c_int = 0x0004;
977 pub const STATX_ATTR_IMMUTABLE: ::c_int = 0x0010;
978 pub const STATX_ATTR_APPEND: ::c_int = 0x0020;
979 pub const STATX_ATTR_NODUMP: ::c_int = 0x0040;
980 pub const STATX_ATTR_ENCRYPTED: ::c_int = 0x0800;
981 pub const STATX_ATTR_AUTOMOUNT: ::c_int = 0x1000;
982 
983 // sys/auxv.h
984 pub const AT_NULL: ::c_ulong = 0;
985 pub const AT_IGNORE: ::c_ulong = 1;
986 pub const AT_EXECFD: ::c_ulong = 2;
987 pub const AT_PHDR: ::c_ulong = 3;
988 pub const AT_PHENT: ::c_ulong = 4;
989 pub const AT_PHNUM: ::c_ulong = 5;
990 pub const AT_PAGESZ: ::c_ulong = 6;
991 pub const AT_BASE: ::c_ulong = 7;
992 pub const AT_FLAGS: ::c_ulong = 8;
993 pub const AT_ENTRY: ::c_ulong = 9;
994 pub const AT_NOTELF: ::c_ulong = 10;
995 pub const AT_UID: ::c_ulong = 11;
996 pub const AT_EUID: ::c_ulong = 12;
997 pub const AT_GID: ::c_ulong = 13;
998 pub const AT_EGID: ::c_ulong = 14;
999 pub const AT_PLATFORM: ::c_ulong = 15;
1000 pub const AT_HWCAP: ::c_ulong = 16;
1001 pub const AT_CLKTCK: ::c_ulong = 17;
1002 // AT_* values 18 through 22 are reserved
1003 pub const AT_SECURE: ::c_ulong = 23;
1004 pub const AT_BASE_PLATFORM: ::c_ulong = 24;
1005 pub const AT_RANDOM: ::c_ulong = 25;
1006 pub const AT_HWCAP2: ::c_ulong = 26;
1007 
1008 pub const AT_EXECFN: ::c_ulong = 31;
1009 
1010 //sys/timex.h
1011 pub const ADJ_OFFSET: ::c_uint = 0x0001;
1012 pub const ADJ_FREQUENCY: ::c_uint = 0x0002;
1013 pub const ADJ_MAXERROR: ::c_uint = 0x0004;
1014 pub const ADJ_ESTERROR: ::c_uint = 0x0008;
1015 pub const ADJ_STATUS: ::c_uint = 0x0010;
1016 pub const ADJ_TIMECONST: ::c_uint = 0x0020;
1017 pub const ADJ_TAI: ::c_uint = 0x0080;
1018 pub const ADJ_SETOFFSET: ::c_uint = 0x0100;
1019 pub const ADJ_MICRO: ::c_uint = 0x1000;
1020 pub const ADJ_NANO: ::c_uint = 0x2000;
1021 pub const ADJ_TICK: ::c_uint = 0x4000;
1022 pub const ADJ_OFFSET_SINGLESHOT: ::c_uint = 0x8001;
1023 pub const ADJ_OFFSET_SS_READ: ::c_uint = 0xa001;
1024 pub const MOD_OFFSET: ::c_uint = ADJ_OFFSET;
1025 pub const MOD_FREQUENCY: ::c_uint = ADJ_FREQUENCY;
1026 pub const MOD_MAXERROR: ::c_uint = ADJ_MAXERROR;
1027 pub const MOD_ESTERROR: ::c_uint = ADJ_ESTERROR;
1028 pub const MOD_STATUS: ::c_uint = ADJ_STATUS;
1029 pub const MOD_TIMECONST: ::c_uint = ADJ_TIMECONST;
1030 pub const MOD_CLKB: ::c_uint = ADJ_TICK;
1031 pub const MOD_CLKA: ::c_uint = ADJ_OFFSET_SINGLESHOT;
1032 pub const MOD_TAI: ::c_uint = ADJ_TAI;
1033 pub const MOD_MICRO: ::c_uint = ADJ_MICRO;
1034 pub const MOD_NANO: ::c_uint = ADJ_NANO;
1035 pub const STA_PLL: ::c_int = 0x0001;
1036 pub const STA_PPSFREQ: ::c_int = 0x0002;
1037 pub const STA_PPSTIME: ::c_int = 0x0004;
1038 pub const STA_FLL: ::c_int = 0x0008;
1039 pub const STA_INS: ::c_int = 0x0010;
1040 pub const STA_DEL: ::c_int = 0x0020;
1041 pub const STA_UNSYNC: ::c_int = 0x0040;
1042 pub const STA_FREQHOLD: ::c_int = 0x0080;
1043 pub const STA_PPSSIGNAL: ::c_int = 0x0100;
1044 pub const STA_PPSJITTER: ::c_int = 0x0200;
1045 pub const STA_PPSWANDER: ::c_int = 0x0400;
1046 pub const STA_PPSERROR: ::c_int = 0x0800;
1047 pub const STA_CLOCKERR: ::c_int = 0x1000;
1048 pub const STA_NANO: ::c_int = 0x2000;
1049 pub const STA_MODE: ::c_int = 0x4000;
1050 pub const STA_CLK: ::c_int = 0x8000;
1051 pub const STA_RONLY: ::c_int = STA_PPSSIGNAL
1052     | STA_PPSJITTER
1053     | STA_PPSWANDER
1054     | STA_PPSERROR
1055     | STA_CLOCKERR
1056     | STA_NANO
1057     | STA_MODE
1058     | STA_CLK;
1059 pub const NTP_API: ::c_int = 4;
1060 pub const TIME_OK: ::c_int = 0;
1061 pub const TIME_INS: ::c_int = 1;
1062 pub const TIME_DEL: ::c_int = 2;
1063 pub const TIME_OOP: ::c_int = 3;
1064 pub const TIME_WAIT: ::c_int = 4;
1065 pub const TIME_ERROR: ::c_int = 5;
1066 pub const TIME_BAD: ::c_int = TIME_ERROR;
1067 pub const MAXTC: ::c_long = 6;
1068 
1069 cfg_if! {
1070     if #[cfg(any(
1071         target_arch = "arm",
1072         target_arch = "x86",
1073         target_arch = "x86_64",
1074         target_arch = "s390x",
1075         target_arch = "riscv64"
1076     ))] {
1077         pub const PTHREAD_STACK_MIN: ::size_t = 16384;
1078     } else if #[cfg(any(
1079                target_arch = "sparc",
1080                target_arch = "sparc64"
1081            ))] {
1082         pub const PTHREAD_STACK_MIN: ::size_t = 0x6000;
1083     } else {
1084         pub const PTHREAD_STACK_MIN: ::size_t = 131072;
1085     }
1086 }
1087 pub const PTHREAD_MUTEX_ADAPTIVE_NP: ::c_int = 3;
1088 
1089 extern "C" {
fgetspent_r( fp: *mut ::FILE, spbuf: *mut ::spwd, buf: *mut ::c_char, buflen: ::size_t, spbufp: *mut *mut ::spwd, ) -> ::c_int1090     pub fn fgetspent_r(
1091         fp: *mut ::FILE,
1092         spbuf: *mut ::spwd,
1093         buf: *mut ::c_char,
1094         buflen: ::size_t,
1095         spbufp: *mut *mut ::spwd,
1096     ) -> ::c_int;
sgetspent_r( s: *const ::c_char, spbuf: *mut ::spwd, buf: *mut ::c_char, buflen: ::size_t, spbufp: *mut *mut ::spwd, ) -> ::c_int1097     pub fn sgetspent_r(
1098         s: *const ::c_char,
1099         spbuf: *mut ::spwd,
1100         buf: *mut ::c_char,
1101         buflen: ::size_t,
1102         spbufp: *mut *mut ::spwd,
1103     ) -> ::c_int;
getspent_r( spbuf: *mut ::spwd, buf: *mut ::c_char, buflen: ::size_t, spbufp: *mut *mut ::spwd, ) -> ::c_int1104     pub fn getspent_r(
1105         spbuf: *mut ::spwd,
1106         buf: *mut ::c_char,
1107         buflen: ::size_t,
1108         spbufp: *mut *mut ::spwd,
1109     ) -> ::c_int;
qsort_r( base: *mut ::c_void, num: ::size_t, size: ::size_t, compar: ::Option< unsafe extern "C" fn( *const ::c_void, *const ::c_void, *mut ::c_void, ) -> ::c_int, >, arg: *mut ::c_void, )1110     pub fn qsort_r(
1111         base: *mut ::c_void,
1112         num: ::size_t,
1113         size: ::size_t,
1114         compar: ::Option<
1115             unsafe extern "C" fn(
1116                 *const ::c_void,
1117                 *const ::c_void,
1118                 *mut ::c_void,
1119             ) -> ::c_int,
1120         >,
1121         arg: *mut ::c_void,
1122     );
sendmmsg( sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint, flags: ::c_int, ) -> ::c_int1123     pub fn sendmmsg(
1124         sockfd: ::c_int,
1125         msgvec: *mut ::mmsghdr,
1126         vlen: ::c_uint,
1127         flags: ::c_int,
1128     ) -> ::c_int;
recvmmsg( sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint, flags: ::c_int, timeout: *mut ::timespec, ) -> ::c_int1129     pub fn recvmmsg(
1130         sockfd: ::c_int,
1131         msgvec: *mut ::mmsghdr,
1132         vlen: ::c_uint,
1133         flags: ::c_int,
1134         timeout: *mut ::timespec,
1135     ) -> ::c_int;
1136 
getrlimit64( resource: ::__rlimit_resource_t, rlim: *mut ::rlimit64, ) -> ::c_int1137     pub fn getrlimit64(
1138         resource: ::__rlimit_resource_t,
1139         rlim: *mut ::rlimit64,
1140     ) -> ::c_int;
setrlimit64( resource: ::__rlimit_resource_t, rlim: *const ::rlimit64, ) -> ::c_int1141     pub fn setrlimit64(
1142         resource: ::__rlimit_resource_t,
1143         rlim: *const ::rlimit64,
1144     ) -> ::c_int;
getrlimit( resource: ::__rlimit_resource_t, rlim: *mut ::rlimit, ) -> ::c_int1145     pub fn getrlimit(
1146         resource: ::__rlimit_resource_t,
1147         rlim: *mut ::rlimit,
1148     ) -> ::c_int;
setrlimit( resource: ::__rlimit_resource_t, rlim: *const ::rlimit, ) -> ::c_int1149     pub fn setrlimit(
1150         resource: ::__rlimit_resource_t,
1151         rlim: *const ::rlimit,
1152     ) -> ::c_int;
prlimit( pid: ::pid_t, resource: ::__rlimit_resource_t, new_limit: *const ::rlimit, old_limit: *mut ::rlimit, ) -> ::c_int1153     pub fn prlimit(
1154         pid: ::pid_t,
1155         resource: ::__rlimit_resource_t,
1156         new_limit: *const ::rlimit,
1157         old_limit: *mut ::rlimit,
1158     ) -> ::c_int;
prlimit64( pid: ::pid_t, resource: ::__rlimit_resource_t, new_limit: *const ::rlimit64, old_limit: *mut ::rlimit64, ) -> ::c_int1159     pub fn prlimit64(
1160         pid: ::pid_t,
1161         resource: ::__rlimit_resource_t,
1162         new_limit: *const ::rlimit64,
1163         old_limit: *mut ::rlimit64,
1164     ) -> ::c_int;
utmpname(file: *const ::c_char) -> ::c_int1165     pub fn utmpname(file: *const ::c_char) -> ::c_int;
utmpxname(file: *const ::c_char) -> ::c_int1166     pub fn utmpxname(file: *const ::c_char) -> ::c_int;
getutxent() -> *mut utmpx1167     pub fn getutxent() -> *mut utmpx;
getutxid(ut: *const utmpx) -> *mut utmpx1168     pub fn getutxid(ut: *const utmpx) -> *mut utmpx;
getutxline(ut: *const utmpx) -> *mut utmpx1169     pub fn getutxline(ut: *const utmpx) -> *mut utmpx;
pututxline(ut: *const utmpx) -> *mut utmpx1170     pub fn pututxline(ut: *const utmpx) -> *mut utmpx;
setutxent()1171     pub fn setutxent();
endutxent()1172     pub fn endutxent();
getpt() -> ::c_int1173     pub fn getpt() -> ::c_int;
mallopt(param: ::c_int, value: ::c_int) -> ::c_int1174     pub fn mallopt(param: ::c_int, value: ::c_int) -> ::c_int;
gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int1175     pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int;
statx( dirfd: ::c_int, pathname: *const c_char, flags: ::c_int, mask: ::c_uint, statxbuf: *mut statx, ) -> ::c_int1176     pub fn statx(
1177         dirfd: ::c_int,
1178         pathname: *const c_char,
1179         flags: ::c_int,
1180         mask: ::c_uint,
1181         statxbuf: *mut statx,
1182     ) -> ::c_int;
getrandom( buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint, ) -> ::ssize_t1183     pub fn getrandom(
1184         buf: *mut ::c_void,
1185         buflen: ::size_t,
1186         flags: ::c_uint,
1187     ) -> ::ssize_t;
1188 
memmem( haystack: *const ::c_void, haystacklen: ::size_t, needle: *const ::c_void, needlelen: ::size_t, ) -> *mut ::c_void1189     pub fn memmem(
1190         haystack: *const ::c_void,
1191         haystacklen: ::size_t,
1192         needle: *const ::c_void,
1193         needlelen: ::size_t,
1194     ) -> *mut ::c_void;
getauxval(type_: ::c_ulong) -> ::c_ulong1195     pub fn getauxval(type_: ::c_ulong) -> ::c_ulong;
1196 
adjtimex(buf: *mut timex) -> ::c_int1197     pub fn adjtimex(buf: *mut timex) -> ::c_int;
ntp_adjtime(buf: *mut timex) -> ::c_int1198     pub fn ntp_adjtime(buf: *mut timex) -> ::c_int;
1199     #[link_name = "ntp_gettimex"]
ntp_gettime(buf: *mut ntptimeval) -> ::c_int1200     pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int;
1201 }
1202 
1203 #[link(name = "util")]
1204 extern "C" {
ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int1205     pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
backtrace(buf: *mut *mut ::c_void, sz: ::c_int) -> ::c_int1206     pub fn backtrace(buf: *mut *mut ::c_void, sz: ::c_int) -> ::c_int;
glob64( pattern: *const ::c_char, flags: ::c_int, errfunc: ::Option< extern "C" fn(epath: *const ::c_char, errno: ::c_int) -> ::c_int, >, pglob: *mut glob64_t, ) -> ::c_int1207     pub fn glob64(
1208         pattern: *const ::c_char,
1209         flags: ::c_int,
1210         errfunc: ::Option<
1211             extern "C" fn(epath: *const ::c_char, errno: ::c_int) -> ::c_int,
1212         >,
1213         pglob: *mut glob64_t,
1214     ) -> ::c_int;
globfree64(pglob: *mut glob64_t)1215     pub fn globfree64(pglob: *mut glob64_t);
ptrace(request: ::c_uint, ...) -> ::c_long1216     pub fn ptrace(request: ::c_uint, ...) -> ::c_long;
pthread_attr_getaffinity_np( attr: *const ::pthread_attr_t, cpusetsize: ::size_t, cpuset: *mut ::cpu_set_t, ) -> ::c_int1217     pub fn pthread_attr_getaffinity_np(
1218         attr: *const ::pthread_attr_t,
1219         cpusetsize: ::size_t,
1220         cpuset: *mut ::cpu_set_t,
1221     ) -> ::c_int;
pthread_attr_setaffinity_np( attr: *mut ::pthread_attr_t, cpusetsize: ::size_t, cpuset: *const ::cpu_set_t, ) -> ::c_int1222     pub fn pthread_attr_setaffinity_np(
1223         attr: *mut ::pthread_attr_t,
1224         cpusetsize: ::size_t,
1225         cpuset: *const ::cpu_set_t,
1226     ) -> ::c_int;
getpriority(which: ::__priority_which_t, who: ::id_t) -> ::c_int1227     pub fn getpriority(which: ::__priority_which_t, who: ::id_t) -> ::c_int;
setpriority( which: ::__priority_which_t, who: ::id_t, prio: ::c_int, ) -> ::c_int1228     pub fn setpriority(
1229         which: ::__priority_which_t,
1230         who: ::id_t,
1231         prio: ::c_int,
1232     ) -> ::c_int;
pthread_getaffinity_np( thread: ::pthread_t, cpusetsize: ::size_t, cpuset: *mut ::cpu_set_t, ) -> ::c_int1233     pub fn pthread_getaffinity_np(
1234         thread: ::pthread_t,
1235         cpusetsize: ::size_t,
1236         cpuset: *mut ::cpu_set_t,
1237     ) -> ::c_int;
pthread_setaffinity_np( thread: ::pthread_t, cpusetsize: ::size_t, cpuset: *const ::cpu_set_t, ) -> ::c_int1238     pub fn pthread_setaffinity_np(
1239         thread: ::pthread_t,
1240         cpusetsize: ::size_t,
1241         cpuset: *const ::cpu_set_t,
1242     ) -> ::c_int;
pthread_rwlockattr_getkind_np( attr: *const ::pthread_rwlockattr_t, val: *mut ::c_int, ) -> ::c_int1243     pub fn pthread_rwlockattr_getkind_np(
1244         attr: *const ::pthread_rwlockattr_t,
1245         val: *mut ::c_int,
1246     ) -> ::c_int;
pthread_rwlockattr_setkind_np( attr: *mut ::pthread_rwlockattr_t, val: ::c_int, ) -> ::c_int1247     pub fn pthread_rwlockattr_setkind_np(
1248         attr: *mut ::pthread_rwlockattr_t,
1249         val: ::c_int,
1250     ) -> ::c_int;
sched_getcpu() -> ::c_int1251     pub fn sched_getcpu() -> ::c_int;
mallinfo() -> ::mallinfo1252     pub fn mallinfo() -> ::mallinfo;
malloc_usable_size(ptr: *mut ::c_void) -> ::size_t1253     pub fn malloc_usable_size(ptr: *mut ::c_void) -> ::size_t;
1254     #[cfg_attr(target_os = "netbsd", link_name = "__getpwent_r50")]
1255     #[cfg_attr(target_os = "solaris", link_name = "__posix_getpwent_r")]
getpwent_r( pwd: *mut ::passwd, buf: *mut ::c_char, buflen: ::size_t, result: *mut *mut ::passwd, ) -> ::c_int1256     pub fn getpwent_r(
1257         pwd: *mut ::passwd,
1258         buf: *mut ::c_char,
1259         buflen: ::size_t,
1260         result: *mut *mut ::passwd,
1261     ) -> ::c_int;
1262     #[cfg_attr(target_os = "netbsd", link_name = "__getgrent_r50")]
1263     #[cfg_attr(target_os = "solaris", link_name = "__posix_getgrent_r")]
getgrent_r( grp: *mut ::group, buf: *mut ::c_char, buflen: ::size_t, result: *mut *mut ::group, ) -> ::c_int1264     pub fn getgrent_r(
1265         grp: *mut ::group,
1266         buf: *mut ::c_char,
1267         buflen: ::size_t,
1268         result: *mut *mut ::group,
1269     ) -> ::c_int;
pthread_getname_np( thread: ::pthread_t, name: *mut ::c_char, len: ::size_t, ) -> ::c_int1270     pub fn pthread_getname_np(
1271         thread: ::pthread_t,
1272         name: *mut ::c_char,
1273         len: ::size_t,
1274     ) -> ::c_int;
pthread_setname_np( thread: ::pthread_t, name: *const ::c_char, ) -> ::c_int1275     pub fn pthread_setname_np(
1276         thread: ::pthread_t,
1277         name: *const ::c_char,
1278     ) -> ::c_int;
1279 }
1280 
1281 #[link(name = "dl")]
1282 extern "C" {
dlmopen( lmid: Lmid_t, filename: *const ::c_char, flag: ::c_int, ) -> *mut ::c_void1283     pub fn dlmopen(
1284         lmid: Lmid_t,
1285         filename: *const ::c_char,
1286         flag: ::c_int,
1287     ) -> *mut ::c_void;
dlinfo( handle: *mut ::c_void, request: ::c_int, info: *mut ::c_void, ) -> ::c_int1288     pub fn dlinfo(
1289         handle: *mut ::c_void,
1290         request: ::c_int,
1291         info: *mut ::c_void,
1292     ) -> ::c_int;
1293 }
1294 
1295 cfg_if! {
1296     if #[cfg(any(target_arch = "x86",
1297                  target_arch = "arm",
1298                  target_arch = "mips",
1299                  target_arch = "powerpc",
1300                  target_arch = "sparc"))] {
1301         mod b32;
1302         pub use self::b32::*;
1303     } else if #[cfg(any(target_arch = "x86_64",
1304                         target_arch = "aarch64",
1305                         target_arch = "powerpc64",
1306                         target_arch = "mips64",
1307                         target_arch = "s390x",
1308                         target_arch = "sparc64",
1309                         target_arch = "riscv64"))] {
1310         mod b64;
1311         pub use self::b64::*;
1312     } else {
1313         // Unknown target_arch
1314     }
1315 }
1316 
1317 cfg_if! {
1318     if #[cfg(libc_align)] {
1319         mod align;
1320         pub use self::align::*;
1321     } else {
1322         mod no_align;
1323         pub use self::no_align::*;
1324     }
1325 }
1326