1#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
2#![cfg_attr(not(feature = "std"), no_std)]
3#![allow(unused_unsafe)]
9
10#[cfg(feature = "std")]
11pub use std::os::raw as ctypes;
12
13#[cfg(all(not(feature = "std"), feature = "no_std"))]
14pub mod ctypes {
15 #[cfg(any(
18 target_arch = "aarch64",
19 target_arch = "arm",
20 target_arch = "msp430",
21 target_arch = "powerpc",
22 target_arch = "powerpc64",
23 target_arch = "riscv32",
24 target_arch = "riscv64",
25 target_arch = "s390x",
26 ))]
27 pub type c_char = c_uchar;
28 #[cfg(any(
29 target_arch = "loongarch64",
30 target_arch = "mips",
31 target_arch = "mips64",
32 target_arch = "sparc",
33 target_arch = "sparc64",
34 target_arch = "x86",
35 target_arch = "x86_64",
36 target_arch = "xtensa",
37 ))]
38 pub type c_char = c_schar;
39
40 pub type c_schar = i8;
48 pub type c_uchar = u8;
49 pub type c_short = i16;
50 pub type c_ushort = u16;
51 pub type c_int = i32;
52 pub type c_uint = u32;
53 #[cfg(target_pointer_width = "32")]
54 pub type c_long = i32;
55 #[cfg(target_pointer_width = "32")]
56 pub type c_ulong = u32;
57 #[cfg(target_pointer_width = "64")]
58 pub type c_long = i64;
59 #[cfg(target_pointer_width = "64")]
60 pub type c_ulong = u64;
61 pub type c_longlong = i64;
62 pub type c_ulonglong = u64;
63 pub type c_float = f32;
64 pub type c_double = f64;
65
66 pub use core::ffi::c_void;
67}
68
69#[cfg(test)]
71mod assertions {
72 use super::ctypes;
73 static_assertions::assert_eq_size!(ctypes::c_char, libc::c_char);
74 static_assertions::assert_type_eq_all!(ctypes::c_schar, libc::c_schar);
75 static_assertions::assert_type_eq_all!(ctypes::c_uchar, libc::c_uchar);
76 static_assertions::assert_type_eq_all!(ctypes::c_short, libc::c_short);
77 static_assertions::assert_type_eq_all!(ctypes::c_ushort, libc::c_ushort);
78 static_assertions::assert_type_eq_all!(ctypes::c_int, libc::c_int);
79 static_assertions::assert_type_eq_all!(ctypes::c_uint, libc::c_uint);
80 static_assertions::assert_type_eq_all!(ctypes::c_long, libc::c_long);
81 static_assertions::assert_type_eq_all!(ctypes::c_ulong, libc::c_ulong);
82 static_assertions::assert_type_eq_all!(ctypes::c_longlong, libc::c_longlong);
83 static_assertions::assert_type_eq_all!(ctypes::c_ulonglong, libc::c_ulonglong);
84 static_assertions::assert_type_eq_all!(ctypes::c_float, libc::c_float);
85 static_assertions::assert_type_eq_all!(ctypes::c_double, libc::c_double);
86}
87
88#[cfg(feature = "general")]
92impl PartialEq for general::__kernel_timespec {
93 fn eq(&self, other: &Self) -> bool {
94 ({
95 let Self { tv_sec, tv_nsec } = self;
96 (tv_sec, tv_nsec)
97 }) == ({
98 let Self { tv_sec, tv_nsec } = other;
99 (tv_sec, tv_nsec)
100 })
101 }
102}
103#[cfg(feature = "general")]
104impl Eq for general::__kernel_timespec {}
105
106#[cfg(feature = "net")]
107pub mod cmsg_macros {
108 use crate::ctypes::{c_long, c_uchar, c_uint};
109 use crate::net::{cmsghdr, msghdr};
110 use core::mem::size_of;
111 use core::ptr;
112
113 pub const unsafe fn CMSG_ALIGN(len: c_uint) -> c_uint {
114 let c_long_size = size_of::<c_long>() as c_uint;
115 (len + c_long_size - 1) & !(c_long_size - 1)
116 }
117
118 pub const unsafe fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar {
119 (cmsg as *mut c_uchar).add(size_of::<cmsghdr>())
120 }
121
122 pub const unsafe fn CMSG_SPACE(len: c_uint) -> c_uint {
123 size_of::<cmsghdr>() as c_uint + CMSG_ALIGN(len)
124 }
125
126 pub const unsafe fn CMSG_LEN(len: c_uint) -> c_uint {
127 size_of::<cmsghdr>() as c_uint + len
128 }
129
130 pub const unsafe fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
131 if (*mhdr).msg_controllen < size_of::<cmsghdr>() as _ {
132 return ptr::null_mut();
133 }
134
135 (*mhdr).msg_control as *mut cmsghdr
136 }
137
138 pub unsafe fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr {
139 let cmsg_len = (*cmsg).cmsg_len;
144 let next_cmsg = (cmsg as *mut u8).add(CMSG_ALIGN(cmsg_len as _) as usize) as *mut cmsghdr;
145 let max = ((*mhdr).msg_control as usize) + ((*mhdr).msg_controllen as usize);
146
147 if cmsg_len < size_of::<cmsghdr>() as _ {
148 return ptr::null_mut();
149 }
150
151 if next_cmsg.add(1) as usize > max
152 || next_cmsg as usize + CMSG_ALIGN((*next_cmsg).cmsg_len as _) as usize > max
153 {
154 return ptr::null_mut();
155 }
156
157 next_cmsg
158 }
159}
160
161#[cfg(feature = "general")]
162pub mod select_macros {
163 use crate::ctypes::c_int;
164 use crate::general::__kernel_fd_set;
165 use core::mem::size_of;
166
167 pub unsafe fn FD_CLR(fd: c_int, set: *mut __kernel_fd_set) {
168 let bytes = set as *mut u8;
169 if fd >= 0 {
170 *bytes.add((fd / 8) as usize) &= !(1 << (fd % 8));
171 }
172 }
173
174 pub unsafe fn FD_SET(fd: c_int, set: *mut __kernel_fd_set) {
175 let bytes = set as *mut u8;
176 if fd >= 0 {
177 *bytes.add((fd / 8) as usize) |= 1 << (fd % 8);
178 }
179 }
180
181 pub unsafe fn FD_ISSET(fd: c_int, set: *const __kernel_fd_set) -> bool {
182 let bytes = set as *const u8;
183 if fd >= 0 {
184 *bytes.add((fd / 8) as usize) & (1 << (fd % 8)) != 0
185 } else {
186 false
187 }
188 }
189
190 pub unsafe fn FD_ZERO(set: *mut __kernel_fd_set) {
191 let bytes = set as *mut u8;
192 core::ptr::write_bytes(bytes, 0, size_of::<__kernel_fd_set>());
193 }
194}
195
196#[cfg(feature = "general")]
197pub mod signal_macros {
198 pub const SIG_DFL: super::general::__kernel_sighandler_t = None;
199
200 #[inline]
205 pub const fn sig_ign() -> super::general::__kernel_sighandler_t {
206 Some(unsafe {
209 core::mem::transmute::<usize, unsafe extern "C" fn(crate::ctypes::c_int)>(1)
210 })
211 }
212}
213
214#[cfg(feature = "elf")]
215pub mod elf;
216
217#[cfg(feature = "bootparam")]
219#[cfg(target_arch = "arm")]
220#[path = "arm/bootparam.rs"]
221pub mod bootparam;
222#[cfg(feature = "btrfs")]
223#[cfg(target_arch = "arm")]
224#[path = "arm/btrfs.rs"]
225pub mod btrfs;
226#[cfg(feature = "elf_uapi")]
227#[cfg(target_arch = "arm")]
228#[path = "arm/elf_uapi.rs"]
229pub mod elf_uapi;
230#[cfg(feature = "errno")]
231#[cfg(target_arch = "arm")]
232#[path = "arm/errno.rs"]
233pub mod errno;
234#[cfg(feature = "general")]
235#[cfg(target_arch = "arm")]
236#[path = "arm/general.rs"]
237pub mod general;
238#[cfg(feature = "if_arp")]
239#[cfg(target_arch = "arm")]
240#[path = "arm/if_arp.rs"]
241pub mod if_arp;
242#[cfg(feature = "if_ether")]
243#[cfg(target_arch = "arm")]
244#[path = "arm/if_ether.rs"]
245pub mod if_ether;
246#[cfg(feature = "if_packet")]
247#[cfg(target_arch = "arm")]
248#[path = "arm/if_packet.rs"]
249pub mod if_packet;
250#[cfg(feature = "image")]
251#[cfg(target_arch = "arm")]
252#[path = "arm/image.rs"]
253pub mod image;
254#[cfg(feature = "io_uring")]
255#[cfg(target_arch = "arm")]
256#[path = "arm/io_uring.rs"]
257pub mod io_uring;
258#[cfg(feature = "ioctl")]
259#[cfg(target_arch = "arm")]
260#[path = "arm/ioctl.rs"]
261pub mod ioctl;
262#[cfg(feature = "landlock")]
263#[cfg(target_arch = "arm")]
264#[path = "arm/landlock.rs"]
265pub mod landlock;
266#[cfg(feature = "loop_device")]
267#[cfg(target_arch = "arm")]
268#[path = "arm/loop_device.rs"]
269pub mod loop_device;
270#[cfg(feature = "mempolicy")]
271#[cfg(target_arch = "arm")]
272#[path = "arm/mempolicy.rs"]
273pub mod mempolicy;
274#[cfg(feature = "net")]
275#[cfg(target_arch = "arm")]
276#[path = "arm/net.rs"]
277pub mod net;
278#[cfg(feature = "netlink")]
279#[cfg(target_arch = "arm")]
280#[path = "arm/netlink.rs"]
281pub mod netlink;
282#[cfg(feature = "prctl")]
283#[cfg(target_arch = "arm")]
284#[path = "arm/prctl.rs"]
285pub mod prctl;
286#[cfg(feature = "ptrace")]
287#[cfg(target_arch = "arm")]
288#[path = "arm/ptrace.rs"]
289pub mod ptrace;
290#[cfg(feature = "system")]
291#[cfg(target_arch = "arm")]
292#[path = "arm/system.rs"]
293pub mod system;
294#[cfg(feature = "xdp")]
295#[cfg(target_arch = "arm")]
296#[path = "arm/xdp.rs"]
297pub mod xdp;
298#[cfg(feature = "bootparam")]
299#[cfg(target_arch = "aarch64")]
300#[path = "aarch64/bootparam.rs"]
301pub mod bootparam;
302#[cfg(feature = "btrfs")]
303#[cfg(target_arch = "aarch64")]
304#[path = "aarch64/btrfs.rs"]
305pub mod btrfs;
306#[cfg(feature = "elf_uapi")]
307#[cfg(target_arch = "aarch64")]
308#[path = "aarch64/elf_uapi.rs"]
309pub mod elf_uapi;
310#[cfg(feature = "errno")]
311#[cfg(target_arch = "aarch64")]
312#[path = "aarch64/errno.rs"]
313pub mod errno;
314#[cfg(feature = "general")]
315#[cfg(target_arch = "aarch64")]
316#[path = "aarch64/general.rs"]
317pub mod general;
318#[cfg(feature = "if_arp")]
319#[cfg(target_arch = "aarch64")]
320#[path = "aarch64/if_arp.rs"]
321pub mod if_arp;
322#[cfg(feature = "if_ether")]
323#[cfg(target_arch = "aarch64")]
324#[path = "aarch64/if_ether.rs"]
325pub mod if_ether;
326#[cfg(feature = "if_packet")]
327#[cfg(target_arch = "aarch64")]
328#[path = "aarch64/if_packet.rs"]
329pub mod if_packet;
330#[cfg(feature = "image")]
331#[cfg(target_arch = "aarch64")]
332#[path = "aarch64/image.rs"]
333pub mod image;
334#[cfg(feature = "io_uring")]
335#[cfg(target_arch = "aarch64")]
336#[path = "aarch64/io_uring.rs"]
337pub mod io_uring;
338#[cfg(feature = "ioctl")]
339#[cfg(target_arch = "aarch64")]
340#[path = "aarch64/ioctl.rs"]
341pub mod ioctl;
342#[cfg(feature = "landlock")]
343#[cfg(target_arch = "aarch64")]
344#[path = "aarch64/landlock.rs"]
345pub mod landlock;
346#[cfg(feature = "loop_device")]
347#[cfg(target_arch = "aarch64")]
348#[path = "aarch64/loop_device.rs"]
349pub mod loop_device;
350#[cfg(feature = "mempolicy")]
351#[cfg(target_arch = "aarch64")]
352#[path = "aarch64/mempolicy.rs"]
353pub mod mempolicy;
354#[cfg(feature = "net")]
355#[cfg(target_arch = "aarch64")]
356#[path = "aarch64/net.rs"]
357pub mod net;
358#[cfg(feature = "netlink")]
359#[cfg(target_arch = "aarch64")]
360#[path = "aarch64/netlink.rs"]
361pub mod netlink;
362#[cfg(feature = "prctl")]
363#[cfg(target_arch = "aarch64")]
364#[path = "aarch64/prctl.rs"]
365pub mod prctl;
366#[cfg(feature = "ptrace")]
367#[cfg(target_arch = "aarch64")]
368#[path = "aarch64/ptrace.rs"]
369pub mod ptrace;
370#[cfg(feature = "system")]
371#[cfg(target_arch = "aarch64")]
372#[path = "aarch64/system.rs"]
373pub mod system;
374#[cfg(feature = "xdp")]
375#[cfg(target_arch = "aarch64")]
376#[path = "aarch64/xdp.rs"]
377pub mod xdp;
378#[cfg(feature = "bootparam")]
379#[cfg(target_arch = "csky")]
380#[path = "csky/bootparam.rs"]
381pub mod bootparam;
382#[cfg(feature = "btrfs")]
383#[cfg(target_arch = "csky")]
384#[path = "csky/btrfs.rs"]
385pub mod btrfs;
386#[cfg(feature = "elf_uapi")]
387#[cfg(target_arch = "csky")]
388#[path = "csky/elf_uapi.rs"]
389pub mod elf_uapi;
390#[cfg(feature = "errno")]
391#[cfg(target_arch = "csky")]
392#[path = "csky/errno.rs"]
393pub mod errno;
394#[cfg(feature = "general")]
395#[cfg(target_arch = "csky")]
396#[path = "csky/general.rs"]
397pub mod general;
398#[cfg(feature = "if_arp")]
399#[cfg(target_arch = "csky")]
400#[path = "csky/if_arp.rs"]
401pub mod if_arp;
402#[cfg(feature = "if_ether")]
403#[cfg(target_arch = "csky")]
404#[path = "csky/if_ether.rs"]
405pub mod if_ether;
406#[cfg(feature = "if_packet")]
407#[cfg(target_arch = "csky")]
408#[path = "csky/if_packet.rs"]
409pub mod if_packet;
410#[cfg(feature = "image")]
411#[cfg(target_arch = "csky")]
412#[path = "csky/image.rs"]
413pub mod image;
414#[cfg(feature = "io_uring")]
415#[cfg(target_arch = "csky")]
416#[path = "csky/io_uring.rs"]
417pub mod io_uring;
418#[cfg(feature = "ioctl")]
419#[cfg(target_arch = "csky")]
420#[path = "csky/ioctl.rs"]
421pub mod ioctl;
422#[cfg(feature = "landlock")]
423#[cfg(target_arch = "csky")]
424#[path = "csky/landlock.rs"]
425pub mod landlock;
426#[cfg(feature = "loop_device")]
427#[cfg(target_arch = "csky")]
428#[path = "csky/loop_device.rs"]
429pub mod loop_device;
430#[cfg(feature = "mempolicy")]
431#[cfg(target_arch = "csky")]
432#[path = "csky/mempolicy.rs"]
433pub mod mempolicy;
434#[cfg(feature = "net")]
435#[cfg(target_arch = "csky")]
436#[path = "csky/net.rs"]
437pub mod net;
438#[cfg(feature = "netlink")]
439#[cfg(target_arch = "csky")]
440#[path = "csky/netlink.rs"]
441pub mod netlink;
442#[cfg(feature = "prctl")]
443#[cfg(target_arch = "csky")]
444#[path = "csky/prctl.rs"]
445pub mod prctl;
446#[cfg(feature = "ptrace")]
447#[cfg(target_arch = "csky")]
448#[path = "csky/ptrace.rs"]
449pub mod ptrace;
450#[cfg(feature = "system")]
451#[cfg(target_arch = "csky")]
452#[path = "csky/system.rs"]
453pub mod system;
454#[cfg(feature = "xdp")]
455#[cfg(target_arch = "csky")]
456#[path = "csky/xdp.rs"]
457pub mod xdp;
458#[cfg(feature = "bootparam")]
459#[cfg(target_arch = "loongarch64")]
460#[path = "loongarch64/bootparam.rs"]
461pub mod bootparam;
462#[cfg(feature = "btrfs")]
463#[cfg(target_arch = "loongarch64")]
464#[path = "loongarch64/btrfs.rs"]
465pub mod btrfs;
466#[cfg(feature = "elf_uapi")]
467#[cfg(target_arch = "loongarch64")]
468#[path = "loongarch64/elf_uapi.rs"]
469pub mod elf_uapi;
470#[cfg(feature = "errno")]
471#[cfg(target_arch = "loongarch64")]
472#[path = "loongarch64/errno.rs"]
473pub mod errno;
474#[cfg(feature = "general")]
475#[cfg(target_arch = "loongarch64")]
476#[path = "loongarch64/general.rs"]
477pub mod general;
478#[cfg(feature = "if_arp")]
479#[cfg(target_arch = "loongarch64")]
480#[path = "loongarch64/if_arp.rs"]
481pub mod if_arp;
482#[cfg(feature = "if_ether")]
483#[cfg(target_arch = "loongarch64")]
484#[path = "loongarch64/if_ether.rs"]
485pub mod if_ether;
486#[cfg(feature = "if_packet")]
487#[cfg(target_arch = "loongarch64")]
488#[path = "loongarch64/if_packet.rs"]
489pub mod if_packet;
490#[cfg(feature = "image")]
491#[cfg(target_arch = "loongarch64")]
492#[path = "loongarch64/image.rs"]
493pub mod image;
494#[cfg(feature = "io_uring")]
495#[cfg(target_arch = "loongarch64")]
496#[path = "loongarch64/io_uring.rs"]
497pub mod io_uring;
498#[cfg(feature = "ioctl")]
499#[cfg(target_arch = "loongarch64")]
500#[path = "loongarch64/ioctl.rs"]
501pub mod ioctl;
502#[cfg(feature = "landlock")]
503#[cfg(target_arch = "loongarch64")]
504#[path = "loongarch64/landlock.rs"]
505pub mod landlock;
506#[cfg(feature = "loop_device")]
507#[cfg(target_arch = "loongarch64")]
508#[path = "loongarch64/loop_device.rs"]
509pub mod loop_device;
510#[cfg(feature = "mempolicy")]
511#[cfg(target_arch = "loongarch64")]
512#[path = "loongarch64/mempolicy.rs"]
513pub mod mempolicy;
514#[cfg(feature = "net")]
515#[cfg(target_arch = "loongarch64")]
516#[path = "loongarch64/net.rs"]
517pub mod net;
518#[cfg(feature = "netlink")]
519#[cfg(target_arch = "loongarch64")]
520#[path = "loongarch64/netlink.rs"]
521pub mod netlink;
522#[cfg(feature = "prctl")]
523#[cfg(target_arch = "loongarch64")]
524#[path = "loongarch64/prctl.rs"]
525pub mod prctl;
526#[cfg(feature = "ptrace")]
527#[cfg(target_arch = "loongarch64")]
528#[path = "loongarch64/ptrace.rs"]
529pub mod ptrace;
530#[cfg(feature = "system")]
531#[cfg(target_arch = "loongarch64")]
532#[path = "loongarch64/system.rs"]
533pub mod system;
534#[cfg(feature = "xdp")]
535#[cfg(target_arch = "loongarch64")]
536#[path = "loongarch64/xdp.rs"]
537pub mod xdp;
538#[cfg(feature = "bootparam")]
539#[cfg(target_arch = "mips")]
540#[path = "mips/bootparam.rs"]
541pub mod bootparam;
542#[cfg(feature = "btrfs")]
543#[cfg(target_arch = "mips")]
544#[path = "mips/btrfs.rs"]
545pub mod btrfs;
546#[cfg(feature = "elf_uapi")]
547#[cfg(target_arch = "mips")]
548#[path = "mips/elf_uapi.rs"]
549pub mod elf_uapi;
550#[cfg(feature = "errno")]
551#[cfg(target_arch = "mips")]
552#[path = "mips/errno.rs"]
553pub mod errno;
554#[cfg(feature = "general")]
555#[cfg(target_arch = "mips")]
556#[path = "mips/general.rs"]
557pub mod general;
558#[cfg(feature = "if_arp")]
559#[cfg(target_arch = "mips")]
560#[path = "mips/if_arp.rs"]
561pub mod if_arp;
562#[cfg(feature = "if_ether")]
563#[cfg(target_arch = "mips")]
564#[path = "mips/if_ether.rs"]
565pub mod if_ether;
566#[cfg(feature = "if_packet")]
567#[cfg(target_arch = "mips")]
568#[path = "mips/if_packet.rs"]
569pub mod if_packet;
570#[cfg(feature = "image")]
571#[cfg(target_arch = "mips")]
572#[path = "mips/image.rs"]
573pub mod image;
574#[cfg(feature = "io_uring")]
575#[cfg(target_arch = "mips")]
576#[path = "mips/io_uring.rs"]
577pub mod io_uring;
578#[cfg(feature = "ioctl")]
579#[cfg(target_arch = "mips")]
580#[path = "mips/ioctl.rs"]
581pub mod ioctl;
582#[cfg(feature = "landlock")]
583#[cfg(target_arch = "mips")]
584#[path = "mips/landlock.rs"]
585pub mod landlock;
586#[cfg(feature = "loop_device")]
587#[cfg(target_arch = "mips")]
588#[path = "mips/loop_device.rs"]
589pub mod loop_device;
590#[cfg(feature = "mempolicy")]
591#[cfg(target_arch = "mips")]
592#[path = "mips/mempolicy.rs"]
593pub mod mempolicy;
594#[cfg(feature = "net")]
595#[cfg(target_arch = "mips")]
596#[path = "mips/net.rs"]
597pub mod net;
598#[cfg(feature = "netlink")]
599#[cfg(target_arch = "mips")]
600#[path = "mips/netlink.rs"]
601pub mod netlink;
602#[cfg(feature = "prctl")]
603#[cfg(target_arch = "mips")]
604#[path = "mips/prctl.rs"]
605pub mod prctl;
606#[cfg(feature = "ptrace")]
607#[cfg(target_arch = "mips")]
608#[path = "mips/ptrace.rs"]
609pub mod ptrace;
610#[cfg(feature = "system")]
611#[cfg(target_arch = "mips")]
612#[path = "mips/system.rs"]
613pub mod system;
614#[cfg(feature = "xdp")]
615#[cfg(target_arch = "mips")]
616#[path = "mips/xdp.rs"]
617pub mod xdp;
618#[cfg(feature = "bootparam")]
619#[cfg(target_arch = "mips64")]
620#[path = "mips64/bootparam.rs"]
621pub mod bootparam;
622#[cfg(feature = "btrfs")]
623#[cfg(target_arch = "mips64")]
624#[path = "mips64/btrfs.rs"]
625pub mod btrfs;
626#[cfg(feature = "elf_uapi")]
627#[cfg(target_arch = "mips64")]
628#[path = "mips64/elf_uapi.rs"]
629pub mod elf_uapi;
630#[cfg(feature = "errno")]
631#[cfg(target_arch = "mips64")]
632#[path = "mips64/errno.rs"]
633pub mod errno;
634#[cfg(feature = "general")]
635#[cfg(target_arch = "mips64")]
636#[path = "mips64/general.rs"]
637pub mod general;
638#[cfg(feature = "if_arp")]
639#[cfg(target_arch = "mips64")]
640#[path = "mips64/if_arp.rs"]
641pub mod if_arp;
642#[cfg(feature = "if_ether")]
643#[cfg(target_arch = "mips64")]
644#[path = "mips64/if_ether.rs"]
645pub mod if_ether;
646#[cfg(feature = "if_packet")]
647#[cfg(target_arch = "mips64")]
648#[path = "mips64/if_packet.rs"]
649pub mod if_packet;
650#[cfg(feature = "image")]
651#[cfg(target_arch = "mips64")]
652#[path = "mips64/image.rs"]
653pub mod image;
654#[cfg(feature = "io_uring")]
655#[cfg(target_arch = "mips64")]
656#[path = "mips64/io_uring.rs"]
657pub mod io_uring;
658#[cfg(feature = "ioctl")]
659#[cfg(target_arch = "mips64")]
660#[path = "mips64/ioctl.rs"]
661pub mod ioctl;
662#[cfg(feature = "landlock")]
663#[cfg(target_arch = "mips64")]
664#[path = "mips64/landlock.rs"]
665pub mod landlock;
666#[cfg(feature = "loop_device")]
667#[cfg(target_arch = "mips64")]
668#[path = "mips64/loop_device.rs"]
669pub mod loop_device;
670#[cfg(feature = "mempolicy")]
671#[cfg(target_arch = "mips64")]
672#[path = "mips64/mempolicy.rs"]
673pub mod mempolicy;
674#[cfg(feature = "net")]
675#[cfg(target_arch = "mips64")]
676#[path = "mips64/net.rs"]
677pub mod net;
678#[cfg(feature = "netlink")]
679#[cfg(target_arch = "mips64")]
680#[path = "mips64/netlink.rs"]
681pub mod netlink;
682#[cfg(feature = "prctl")]
683#[cfg(target_arch = "mips64")]
684#[path = "mips64/prctl.rs"]
685pub mod prctl;
686#[cfg(feature = "ptrace")]
687#[cfg(target_arch = "mips64")]
688#[path = "mips64/ptrace.rs"]
689pub mod ptrace;
690#[cfg(feature = "system")]
691#[cfg(target_arch = "mips64")]
692#[path = "mips64/system.rs"]
693pub mod system;
694#[cfg(feature = "xdp")]
695#[cfg(target_arch = "mips64")]
696#[path = "mips64/xdp.rs"]
697pub mod xdp;
698#[cfg(feature = "bootparam")]
699#[cfg(target_arch = "mips32r6")]
700#[path = "mips32r6/bootparam.rs"]
701pub mod bootparam;
702#[cfg(feature = "btrfs")]
703#[cfg(target_arch = "mips32r6")]
704#[path = "mips32r6/btrfs.rs"]
705pub mod btrfs;
706#[cfg(feature = "elf_uapi")]
707#[cfg(target_arch = "mips32r6")]
708#[path = "mips32r6/elf_uapi.rs"]
709pub mod elf_uapi;
710#[cfg(feature = "errno")]
711#[cfg(target_arch = "mips32r6")]
712#[path = "mips32r6/errno.rs"]
713pub mod errno;
714#[cfg(feature = "general")]
715#[cfg(target_arch = "mips32r6")]
716#[path = "mips32r6/general.rs"]
717pub mod general;
718#[cfg(feature = "if_arp")]
719#[cfg(target_arch = "mips32r6")]
720#[path = "mips32r6/if_arp.rs"]
721pub mod if_arp;
722#[cfg(feature = "if_ether")]
723#[cfg(target_arch = "mips32r6")]
724#[path = "mips32r6/if_ether.rs"]
725pub mod if_ether;
726#[cfg(feature = "if_packet")]
727#[cfg(target_arch = "mips32r6")]
728#[path = "mips32r6/if_packet.rs"]
729pub mod if_packet;
730#[cfg(feature = "image")]
731#[cfg(target_arch = "mips32r6")]
732#[path = "mips32r6/image.rs"]
733pub mod image;
734#[cfg(feature = "io_uring")]
735#[cfg(target_arch = "mips32r6")]
736#[path = "mips32r6/io_uring.rs"]
737pub mod io_uring;
738#[cfg(feature = "ioctl")]
739#[cfg(target_arch = "mips32r6")]
740#[path = "mips32r6/ioctl.rs"]
741pub mod ioctl;
742#[cfg(feature = "landlock")]
743#[cfg(target_arch = "mips32r6")]
744#[path = "mips32r6/landlock.rs"]
745pub mod landlock;
746#[cfg(feature = "loop_device")]
747#[cfg(target_arch = "mips32r6")]
748#[path = "mips32r6/loop_device.rs"]
749pub mod loop_device;
750#[cfg(feature = "mempolicy")]
751#[cfg(target_arch = "mips32r6")]
752#[path = "mips32r6/mempolicy.rs"]
753pub mod mempolicy;
754#[cfg(feature = "net")]
755#[cfg(target_arch = "mips32r6")]
756#[path = "mips32r6/net.rs"]
757pub mod net;
758#[cfg(feature = "netlink")]
759#[cfg(target_arch = "mips32r6")]
760#[path = "mips32r6/netlink.rs"]
761pub mod netlink;
762#[cfg(feature = "prctl")]
763#[cfg(target_arch = "mips32r6")]
764#[path = "mips32r6/prctl.rs"]
765pub mod prctl;
766#[cfg(feature = "ptrace")]
767#[cfg(target_arch = "mips32r6")]
768#[path = "mips32r6/ptrace.rs"]
769pub mod ptrace;
770#[cfg(feature = "system")]
771#[cfg(target_arch = "mips32r6")]
772#[path = "mips32r6/system.rs"]
773pub mod system;
774#[cfg(feature = "xdp")]
775#[cfg(target_arch = "mips32r6")]
776#[path = "mips32r6/xdp.rs"]
777pub mod xdp;
778#[cfg(feature = "bootparam")]
779#[cfg(target_arch = "mips64r6")]
780#[path = "mips64r6/bootparam.rs"]
781pub mod bootparam;
782#[cfg(feature = "btrfs")]
783#[cfg(target_arch = "mips64r6")]
784#[path = "mips64r6/btrfs.rs"]
785pub mod btrfs;
786#[cfg(feature = "elf_uapi")]
787#[cfg(target_arch = "mips64r6")]
788#[path = "mips64r6/elf_uapi.rs"]
789pub mod elf_uapi;
790#[cfg(feature = "errno")]
791#[cfg(target_arch = "mips64r6")]
792#[path = "mips64r6/errno.rs"]
793pub mod errno;
794#[cfg(feature = "general")]
795#[cfg(target_arch = "mips64r6")]
796#[path = "mips64r6/general.rs"]
797pub mod general;
798#[cfg(feature = "if_arp")]
799#[cfg(target_arch = "mips64r6")]
800#[path = "mips64r6/if_arp.rs"]
801pub mod if_arp;
802#[cfg(feature = "if_ether")]
803#[cfg(target_arch = "mips64r6")]
804#[path = "mips64r6/if_ether.rs"]
805pub mod if_ether;
806#[cfg(feature = "if_packet")]
807#[cfg(target_arch = "mips64r6")]
808#[path = "mips64r6/if_packet.rs"]
809pub mod if_packet;
810#[cfg(feature = "image")]
811#[cfg(target_arch = "mips64r6")]
812#[path = "mips64r6/image.rs"]
813pub mod image;
814#[cfg(feature = "io_uring")]
815#[cfg(target_arch = "mips64r6")]
816#[path = "mips64r6/io_uring.rs"]
817pub mod io_uring;
818#[cfg(feature = "ioctl")]
819#[cfg(target_arch = "mips64r6")]
820#[path = "mips64r6/ioctl.rs"]
821pub mod ioctl;
822#[cfg(feature = "landlock")]
823#[cfg(target_arch = "mips64r6")]
824#[path = "mips64r6/landlock.rs"]
825pub mod landlock;
826#[cfg(feature = "loop_device")]
827#[cfg(target_arch = "mips64r6")]
828#[path = "mips64r6/loop_device.rs"]
829pub mod loop_device;
830#[cfg(feature = "mempolicy")]
831#[cfg(target_arch = "mips64r6")]
832#[path = "mips64r6/mempolicy.rs"]
833pub mod mempolicy;
834#[cfg(feature = "net")]
835#[cfg(target_arch = "mips64r6")]
836#[path = "mips64r6/net.rs"]
837pub mod net;
838#[cfg(feature = "netlink")]
839#[cfg(target_arch = "mips64r6")]
840#[path = "mips64r6/netlink.rs"]
841pub mod netlink;
842#[cfg(feature = "prctl")]
843#[cfg(target_arch = "mips64r6")]
844#[path = "mips64r6/prctl.rs"]
845pub mod prctl;
846#[cfg(feature = "ptrace")]
847#[cfg(target_arch = "mips64r6")]
848#[path = "mips64r6/ptrace.rs"]
849pub mod ptrace;
850#[cfg(feature = "system")]
851#[cfg(target_arch = "mips64r6")]
852#[path = "mips64r6/system.rs"]
853pub mod system;
854#[cfg(feature = "xdp")]
855#[cfg(target_arch = "mips64r6")]
856#[path = "mips64r6/xdp.rs"]
857pub mod xdp;
858#[cfg(feature = "bootparam")]
859#[cfg(target_arch = "powerpc")]
860#[path = "powerpc/bootparam.rs"]
861pub mod bootparam;
862#[cfg(feature = "btrfs")]
863#[cfg(target_arch = "powerpc")]
864#[path = "powerpc/btrfs.rs"]
865pub mod btrfs;
866#[cfg(feature = "elf_uapi")]
867#[cfg(target_arch = "powerpc")]
868#[path = "powerpc/elf_uapi.rs"]
869pub mod elf_uapi;
870#[cfg(feature = "errno")]
871#[cfg(target_arch = "powerpc")]
872#[path = "powerpc/errno.rs"]
873pub mod errno;
874#[cfg(feature = "general")]
875#[cfg(target_arch = "powerpc")]
876#[path = "powerpc/general.rs"]
877pub mod general;
878#[cfg(feature = "if_arp")]
879#[cfg(target_arch = "powerpc")]
880#[path = "powerpc/if_arp.rs"]
881pub mod if_arp;
882#[cfg(feature = "if_ether")]
883#[cfg(target_arch = "powerpc")]
884#[path = "powerpc/if_ether.rs"]
885pub mod if_ether;
886#[cfg(feature = "if_packet")]
887#[cfg(target_arch = "powerpc")]
888#[path = "powerpc/if_packet.rs"]
889pub mod if_packet;
890#[cfg(feature = "image")]
891#[cfg(target_arch = "powerpc")]
892#[path = "powerpc/image.rs"]
893pub mod image;
894#[cfg(feature = "io_uring")]
895#[cfg(target_arch = "powerpc")]
896#[path = "powerpc/io_uring.rs"]
897pub mod io_uring;
898#[cfg(feature = "ioctl")]
899#[cfg(target_arch = "powerpc")]
900#[path = "powerpc/ioctl.rs"]
901pub mod ioctl;
902#[cfg(feature = "landlock")]
903#[cfg(target_arch = "powerpc")]
904#[path = "powerpc/landlock.rs"]
905pub mod landlock;
906#[cfg(feature = "loop_device")]
907#[cfg(target_arch = "powerpc")]
908#[path = "powerpc/loop_device.rs"]
909pub mod loop_device;
910#[cfg(feature = "mempolicy")]
911#[cfg(target_arch = "powerpc")]
912#[path = "powerpc/mempolicy.rs"]
913pub mod mempolicy;
914#[cfg(feature = "net")]
915#[cfg(target_arch = "powerpc")]
916#[path = "powerpc/net.rs"]
917pub mod net;
918#[cfg(feature = "netlink")]
919#[cfg(target_arch = "powerpc")]
920#[path = "powerpc/netlink.rs"]
921pub mod netlink;
922#[cfg(feature = "prctl")]
923#[cfg(target_arch = "powerpc")]
924#[path = "powerpc/prctl.rs"]
925pub mod prctl;
926#[cfg(feature = "ptrace")]
927#[cfg(target_arch = "powerpc")]
928#[path = "powerpc/ptrace.rs"]
929pub mod ptrace;
930#[cfg(feature = "system")]
931#[cfg(target_arch = "powerpc")]
932#[path = "powerpc/system.rs"]
933pub mod system;
934#[cfg(feature = "xdp")]
935#[cfg(target_arch = "powerpc")]
936#[path = "powerpc/xdp.rs"]
937pub mod xdp;
938#[cfg(feature = "bootparam")]
939#[cfg(target_arch = "powerpc64")]
940#[path = "powerpc64/bootparam.rs"]
941pub mod bootparam;
942#[cfg(feature = "btrfs")]
943#[cfg(target_arch = "powerpc64")]
944#[path = "powerpc64/btrfs.rs"]
945pub mod btrfs;
946#[cfg(feature = "elf_uapi")]
947#[cfg(target_arch = "powerpc64")]
948#[path = "powerpc64/elf_uapi.rs"]
949pub mod elf_uapi;
950#[cfg(feature = "errno")]
951#[cfg(target_arch = "powerpc64")]
952#[path = "powerpc64/errno.rs"]
953pub mod errno;
954#[cfg(feature = "general")]
955#[cfg(target_arch = "powerpc64")]
956#[path = "powerpc64/general.rs"]
957pub mod general;
958#[cfg(feature = "if_arp")]
959#[cfg(target_arch = "powerpc64")]
960#[path = "powerpc64/if_arp.rs"]
961pub mod if_arp;
962#[cfg(feature = "if_ether")]
963#[cfg(target_arch = "powerpc64")]
964#[path = "powerpc64/if_ether.rs"]
965pub mod if_ether;
966#[cfg(feature = "if_packet")]
967#[cfg(target_arch = "powerpc64")]
968#[path = "powerpc64/if_packet.rs"]
969pub mod if_packet;
970#[cfg(feature = "image")]
971#[cfg(target_arch = "powerpc64")]
972#[path = "powerpc64/image.rs"]
973pub mod image;
974#[cfg(feature = "io_uring")]
975#[cfg(target_arch = "powerpc64")]
976#[path = "powerpc64/io_uring.rs"]
977pub mod io_uring;
978#[cfg(feature = "ioctl")]
979#[cfg(target_arch = "powerpc64")]
980#[path = "powerpc64/ioctl.rs"]
981pub mod ioctl;
982#[cfg(feature = "landlock")]
983#[cfg(target_arch = "powerpc64")]
984#[path = "powerpc64/landlock.rs"]
985pub mod landlock;
986#[cfg(feature = "loop_device")]
987#[cfg(target_arch = "powerpc64")]
988#[path = "powerpc64/loop_device.rs"]
989pub mod loop_device;
990#[cfg(feature = "mempolicy")]
991#[cfg(target_arch = "powerpc64")]
992#[path = "powerpc64/mempolicy.rs"]
993pub mod mempolicy;
994#[cfg(feature = "net")]
995#[cfg(target_arch = "powerpc64")]
996#[path = "powerpc64/net.rs"]
997pub mod net;
998#[cfg(feature = "netlink")]
999#[cfg(target_arch = "powerpc64")]
1000#[path = "powerpc64/netlink.rs"]
1001pub mod netlink;
1002#[cfg(feature = "prctl")]
1003#[cfg(target_arch = "powerpc64")]
1004#[path = "powerpc64/prctl.rs"]
1005pub mod prctl;
1006#[cfg(feature = "ptrace")]
1007#[cfg(target_arch = "powerpc64")]
1008#[path = "powerpc64/ptrace.rs"]
1009pub mod ptrace;
1010#[cfg(feature = "system")]
1011#[cfg(target_arch = "powerpc64")]
1012#[path = "powerpc64/system.rs"]
1013pub mod system;
1014#[cfg(feature = "xdp")]
1015#[cfg(target_arch = "powerpc64")]
1016#[path = "powerpc64/xdp.rs"]
1017pub mod xdp;
1018#[cfg(feature = "bootparam")]
1019#[cfg(target_arch = "riscv32")]
1020#[path = "riscv32/bootparam.rs"]
1021pub mod bootparam;
1022#[cfg(feature = "btrfs")]
1023#[cfg(target_arch = "riscv32")]
1024#[path = "riscv32/btrfs.rs"]
1025pub mod btrfs;
1026#[cfg(feature = "elf_uapi")]
1027#[cfg(target_arch = "riscv32")]
1028#[path = "riscv32/elf_uapi.rs"]
1029pub mod elf_uapi;
1030#[cfg(feature = "errno")]
1031#[cfg(target_arch = "riscv32")]
1032#[path = "riscv32/errno.rs"]
1033pub mod errno;
1034#[cfg(feature = "general")]
1035#[cfg(target_arch = "riscv32")]
1036#[path = "riscv32/general.rs"]
1037pub mod general;
1038#[cfg(feature = "if_arp")]
1039#[cfg(target_arch = "riscv32")]
1040#[path = "riscv32/if_arp.rs"]
1041pub mod if_arp;
1042#[cfg(feature = "if_ether")]
1043#[cfg(target_arch = "riscv32")]
1044#[path = "riscv32/if_ether.rs"]
1045pub mod if_ether;
1046#[cfg(feature = "if_packet")]
1047#[cfg(target_arch = "riscv32")]
1048#[path = "riscv32/if_packet.rs"]
1049pub mod if_packet;
1050#[cfg(feature = "image")]
1051#[cfg(target_arch = "riscv32")]
1052#[path = "riscv32/image.rs"]
1053pub mod image;
1054#[cfg(feature = "io_uring")]
1055#[cfg(target_arch = "riscv32")]
1056#[path = "riscv32/io_uring.rs"]
1057pub mod io_uring;
1058#[cfg(feature = "ioctl")]
1059#[cfg(target_arch = "riscv32")]
1060#[path = "riscv32/ioctl.rs"]
1061pub mod ioctl;
1062#[cfg(feature = "landlock")]
1063#[cfg(target_arch = "riscv32")]
1064#[path = "riscv32/landlock.rs"]
1065pub mod landlock;
1066#[cfg(feature = "loop_device")]
1067#[cfg(target_arch = "riscv32")]
1068#[path = "riscv32/loop_device.rs"]
1069pub mod loop_device;
1070#[cfg(feature = "mempolicy")]
1071#[cfg(target_arch = "riscv32")]
1072#[path = "riscv32/mempolicy.rs"]
1073pub mod mempolicy;
1074#[cfg(feature = "net")]
1075#[cfg(target_arch = "riscv32")]
1076#[path = "riscv32/net.rs"]
1077pub mod net;
1078#[cfg(feature = "netlink")]
1079#[cfg(target_arch = "riscv32")]
1080#[path = "riscv32/netlink.rs"]
1081pub mod netlink;
1082#[cfg(feature = "prctl")]
1083#[cfg(target_arch = "riscv32")]
1084#[path = "riscv32/prctl.rs"]
1085pub mod prctl;
1086#[cfg(feature = "ptrace")]
1087#[cfg(target_arch = "riscv32")]
1088#[path = "riscv32/ptrace.rs"]
1089pub mod ptrace;
1090#[cfg(feature = "system")]
1091#[cfg(target_arch = "riscv32")]
1092#[path = "riscv32/system.rs"]
1093pub mod system;
1094#[cfg(feature = "xdp")]
1095#[cfg(target_arch = "riscv32")]
1096#[path = "riscv32/xdp.rs"]
1097pub mod xdp;
1098#[cfg(feature = "bootparam")]
1099#[cfg(target_arch = "riscv64")]
1100#[path = "riscv64/bootparam.rs"]
1101pub mod bootparam;
1102#[cfg(feature = "btrfs")]
1103#[cfg(target_arch = "riscv64")]
1104#[path = "riscv64/btrfs.rs"]
1105pub mod btrfs;
1106#[cfg(feature = "elf_uapi")]
1107#[cfg(target_arch = "riscv64")]
1108#[path = "riscv64/elf_uapi.rs"]
1109pub mod elf_uapi;
1110#[cfg(feature = "errno")]
1111#[cfg(target_arch = "riscv64")]
1112#[path = "riscv64/errno.rs"]
1113pub mod errno;
1114#[cfg(feature = "general")]
1115#[cfg(target_arch = "riscv64")]
1116#[path = "riscv64/general.rs"]
1117pub mod general;
1118#[cfg(feature = "if_arp")]
1119#[cfg(target_arch = "riscv64")]
1120#[path = "riscv64/if_arp.rs"]
1121pub mod if_arp;
1122#[cfg(feature = "if_ether")]
1123#[cfg(target_arch = "riscv64")]
1124#[path = "riscv64/if_ether.rs"]
1125pub mod if_ether;
1126#[cfg(feature = "if_packet")]
1127#[cfg(target_arch = "riscv64")]
1128#[path = "riscv64/if_packet.rs"]
1129pub mod if_packet;
1130#[cfg(feature = "image")]
1131#[cfg(target_arch = "riscv64")]
1132#[path = "riscv64/image.rs"]
1133pub mod image;
1134#[cfg(feature = "io_uring")]
1135#[cfg(target_arch = "riscv64")]
1136#[path = "riscv64/io_uring.rs"]
1137pub mod io_uring;
1138#[cfg(feature = "ioctl")]
1139#[cfg(target_arch = "riscv64")]
1140#[path = "riscv64/ioctl.rs"]
1141pub mod ioctl;
1142#[cfg(feature = "landlock")]
1143#[cfg(target_arch = "riscv64")]
1144#[path = "riscv64/landlock.rs"]
1145pub mod landlock;
1146#[cfg(feature = "loop_device")]
1147#[cfg(target_arch = "riscv64")]
1148#[path = "riscv64/loop_device.rs"]
1149pub mod loop_device;
1150#[cfg(feature = "mempolicy")]
1151#[cfg(target_arch = "riscv64")]
1152#[path = "riscv64/mempolicy.rs"]
1153pub mod mempolicy;
1154#[cfg(feature = "net")]
1155#[cfg(target_arch = "riscv64")]
1156#[path = "riscv64/net.rs"]
1157pub mod net;
1158#[cfg(feature = "netlink")]
1159#[cfg(target_arch = "riscv64")]
1160#[path = "riscv64/netlink.rs"]
1161pub mod netlink;
1162#[cfg(feature = "prctl")]
1163#[cfg(target_arch = "riscv64")]
1164#[path = "riscv64/prctl.rs"]
1165pub mod prctl;
1166#[cfg(feature = "ptrace")]
1167#[cfg(target_arch = "riscv64")]
1168#[path = "riscv64/ptrace.rs"]
1169pub mod ptrace;
1170#[cfg(feature = "system")]
1171#[cfg(target_arch = "riscv64")]
1172#[path = "riscv64/system.rs"]
1173pub mod system;
1174#[cfg(feature = "xdp")]
1175#[cfg(target_arch = "riscv64")]
1176#[path = "riscv64/xdp.rs"]
1177pub mod xdp;
1178#[cfg(feature = "bootparam")]
1179#[cfg(target_arch = "s390x")]
1180#[path = "s390x/bootparam.rs"]
1181pub mod bootparam;
1182#[cfg(feature = "btrfs")]
1183#[cfg(target_arch = "s390x")]
1184#[path = "s390x/btrfs.rs"]
1185pub mod btrfs;
1186#[cfg(feature = "elf_uapi")]
1187#[cfg(target_arch = "s390x")]
1188#[path = "s390x/elf_uapi.rs"]
1189pub mod elf_uapi;
1190#[cfg(feature = "errno")]
1191#[cfg(target_arch = "s390x")]
1192#[path = "s390x/errno.rs"]
1193pub mod errno;
1194#[cfg(feature = "general")]
1195#[cfg(target_arch = "s390x")]
1196#[path = "s390x/general.rs"]
1197pub mod general;
1198#[cfg(feature = "if_arp")]
1199#[cfg(target_arch = "s390x")]
1200#[path = "s390x/if_arp.rs"]
1201pub mod if_arp;
1202#[cfg(feature = "if_ether")]
1203#[cfg(target_arch = "s390x")]
1204#[path = "s390x/if_ether.rs"]
1205pub mod if_ether;
1206#[cfg(feature = "if_packet")]
1207#[cfg(target_arch = "s390x")]
1208#[path = "s390x/if_packet.rs"]
1209pub mod if_packet;
1210#[cfg(feature = "image")]
1211#[cfg(target_arch = "s390x")]
1212#[path = "s390x/image.rs"]
1213pub mod image;
1214#[cfg(feature = "io_uring")]
1215#[cfg(target_arch = "s390x")]
1216#[path = "s390x/io_uring.rs"]
1217pub mod io_uring;
1218#[cfg(feature = "ioctl")]
1219#[cfg(target_arch = "s390x")]
1220#[path = "s390x/ioctl.rs"]
1221pub mod ioctl;
1222#[cfg(feature = "landlock")]
1223#[cfg(target_arch = "s390x")]
1224#[path = "s390x/landlock.rs"]
1225pub mod landlock;
1226#[cfg(feature = "loop_device")]
1227#[cfg(target_arch = "s390x")]
1228#[path = "s390x/loop_device.rs"]
1229pub mod loop_device;
1230#[cfg(feature = "mempolicy")]
1231#[cfg(target_arch = "s390x")]
1232#[path = "s390x/mempolicy.rs"]
1233pub mod mempolicy;
1234#[cfg(feature = "net")]
1235#[cfg(target_arch = "s390x")]
1236#[path = "s390x/net.rs"]
1237pub mod net;
1238#[cfg(feature = "netlink")]
1239#[cfg(target_arch = "s390x")]
1240#[path = "s390x/netlink.rs"]
1241pub mod netlink;
1242#[cfg(feature = "prctl")]
1243#[cfg(target_arch = "s390x")]
1244#[path = "s390x/prctl.rs"]
1245pub mod prctl;
1246#[cfg(feature = "ptrace")]
1247#[cfg(target_arch = "s390x")]
1248#[path = "s390x/ptrace.rs"]
1249pub mod ptrace;
1250#[cfg(feature = "system")]
1251#[cfg(target_arch = "s390x")]
1252#[path = "s390x/system.rs"]
1253pub mod system;
1254#[cfg(feature = "xdp")]
1255#[cfg(target_arch = "s390x")]
1256#[path = "s390x/xdp.rs"]
1257pub mod xdp;
1258#[cfg(feature = "bootparam")]
1259#[cfg(target_arch = "sparc")]
1260#[path = "sparc/bootparam.rs"]
1261pub mod bootparam;
1262#[cfg(feature = "btrfs")]
1263#[cfg(target_arch = "sparc")]
1264#[path = "sparc/btrfs.rs"]
1265pub mod btrfs;
1266#[cfg(feature = "elf_uapi")]
1267#[cfg(target_arch = "sparc")]
1268#[path = "sparc/elf_uapi.rs"]
1269pub mod elf_uapi;
1270#[cfg(feature = "errno")]
1271#[cfg(target_arch = "sparc")]
1272#[path = "sparc/errno.rs"]
1273pub mod errno;
1274#[cfg(feature = "general")]
1275#[cfg(target_arch = "sparc")]
1276#[path = "sparc/general.rs"]
1277pub mod general;
1278#[cfg(feature = "if_arp")]
1279#[cfg(target_arch = "sparc")]
1280#[path = "sparc/if_arp.rs"]
1281pub mod if_arp;
1282#[cfg(feature = "if_ether")]
1283#[cfg(target_arch = "sparc")]
1284#[path = "sparc/if_ether.rs"]
1285pub mod if_ether;
1286#[cfg(feature = "if_packet")]
1287#[cfg(target_arch = "sparc")]
1288#[path = "sparc/if_packet.rs"]
1289pub mod if_packet;
1290#[cfg(feature = "image")]
1291#[cfg(target_arch = "sparc")]
1292#[path = "sparc/image.rs"]
1293pub mod image;
1294#[cfg(feature = "io_uring")]
1295#[cfg(target_arch = "sparc")]
1296#[path = "sparc/io_uring.rs"]
1297pub mod io_uring;
1298#[cfg(feature = "ioctl")]
1299#[cfg(target_arch = "sparc")]
1300#[path = "sparc/ioctl.rs"]
1301pub mod ioctl;
1302#[cfg(feature = "landlock")]
1303#[cfg(target_arch = "sparc")]
1304#[path = "sparc/landlock.rs"]
1305pub mod landlock;
1306#[cfg(feature = "loop_device")]
1307#[cfg(target_arch = "sparc")]
1308#[path = "sparc/loop_device.rs"]
1309pub mod loop_device;
1310#[cfg(feature = "mempolicy")]
1311#[cfg(target_arch = "sparc")]
1312#[path = "sparc/mempolicy.rs"]
1313pub mod mempolicy;
1314#[cfg(feature = "net")]
1315#[cfg(target_arch = "sparc")]
1316#[path = "sparc/net.rs"]
1317pub mod net;
1318#[cfg(feature = "netlink")]
1319#[cfg(target_arch = "sparc")]
1320#[path = "sparc/netlink.rs"]
1321pub mod netlink;
1322#[cfg(feature = "prctl")]
1323#[cfg(target_arch = "sparc")]
1324#[path = "sparc/prctl.rs"]
1325pub mod prctl;
1326#[cfg(feature = "ptrace")]
1327#[cfg(target_arch = "sparc")]
1328#[path = "sparc/ptrace.rs"]
1329pub mod ptrace;
1330#[cfg(feature = "system")]
1331#[cfg(target_arch = "sparc")]
1332#[path = "sparc/system.rs"]
1333pub mod system;
1334#[cfg(feature = "xdp")]
1335#[cfg(target_arch = "sparc")]
1336#[path = "sparc/xdp.rs"]
1337pub mod xdp;
1338#[cfg(feature = "bootparam")]
1339#[cfg(target_arch = "sparc64")]
1340#[path = "sparc64/bootparam.rs"]
1341pub mod bootparam;
1342#[cfg(feature = "btrfs")]
1343#[cfg(target_arch = "sparc64")]
1344#[path = "sparc64/btrfs.rs"]
1345pub mod btrfs;
1346#[cfg(feature = "elf_uapi")]
1347#[cfg(target_arch = "sparc64")]
1348#[path = "sparc64/elf_uapi.rs"]
1349pub mod elf_uapi;
1350#[cfg(feature = "errno")]
1351#[cfg(target_arch = "sparc64")]
1352#[path = "sparc64/errno.rs"]
1353pub mod errno;
1354#[cfg(feature = "general")]
1355#[cfg(target_arch = "sparc64")]
1356#[path = "sparc64/general.rs"]
1357pub mod general;
1358#[cfg(feature = "if_arp")]
1359#[cfg(target_arch = "sparc64")]
1360#[path = "sparc64/if_arp.rs"]
1361pub mod if_arp;
1362#[cfg(feature = "if_ether")]
1363#[cfg(target_arch = "sparc64")]
1364#[path = "sparc64/if_ether.rs"]
1365pub mod if_ether;
1366#[cfg(feature = "if_packet")]
1367#[cfg(target_arch = "sparc64")]
1368#[path = "sparc64/if_packet.rs"]
1369pub mod if_packet;
1370#[cfg(feature = "image")]
1371#[cfg(target_arch = "sparc64")]
1372#[path = "sparc64/image.rs"]
1373pub mod image;
1374#[cfg(feature = "io_uring")]
1375#[cfg(target_arch = "sparc64")]
1376#[path = "sparc64/io_uring.rs"]
1377pub mod io_uring;
1378#[cfg(feature = "ioctl")]
1379#[cfg(target_arch = "sparc64")]
1380#[path = "sparc64/ioctl.rs"]
1381pub mod ioctl;
1382#[cfg(feature = "landlock")]
1383#[cfg(target_arch = "sparc64")]
1384#[path = "sparc64/landlock.rs"]
1385pub mod landlock;
1386#[cfg(feature = "loop_device")]
1387#[cfg(target_arch = "sparc64")]
1388#[path = "sparc64/loop_device.rs"]
1389pub mod loop_device;
1390#[cfg(feature = "mempolicy")]
1391#[cfg(target_arch = "sparc64")]
1392#[path = "sparc64/mempolicy.rs"]
1393pub mod mempolicy;
1394#[cfg(feature = "net")]
1395#[cfg(target_arch = "sparc64")]
1396#[path = "sparc64/net.rs"]
1397pub mod net;
1398#[cfg(feature = "netlink")]
1399#[cfg(target_arch = "sparc64")]
1400#[path = "sparc64/netlink.rs"]
1401pub mod netlink;
1402#[cfg(feature = "prctl")]
1403#[cfg(target_arch = "sparc64")]
1404#[path = "sparc64/prctl.rs"]
1405pub mod prctl;
1406#[cfg(feature = "ptrace")]
1407#[cfg(target_arch = "sparc64")]
1408#[path = "sparc64/ptrace.rs"]
1409pub mod ptrace;
1410#[cfg(feature = "system")]
1411#[cfg(target_arch = "sparc64")]
1412#[path = "sparc64/system.rs"]
1413pub mod system;
1414#[cfg(feature = "xdp")]
1415#[cfg(target_arch = "sparc64")]
1416#[path = "sparc64/xdp.rs"]
1417pub mod xdp;
1418#[cfg(feature = "bootparam")]
1419#[cfg(target_arch = "x86")]
1420#[path = "x86/bootparam.rs"]
1421pub mod bootparam;
1422#[cfg(feature = "btrfs")]
1423#[cfg(target_arch = "x86")]
1424#[path = "x86/btrfs.rs"]
1425pub mod btrfs;
1426#[cfg(feature = "elf_uapi")]
1427#[cfg(target_arch = "x86")]
1428#[path = "x86/elf_uapi.rs"]
1429pub mod elf_uapi;
1430#[cfg(feature = "errno")]
1431#[cfg(target_arch = "x86")]
1432#[path = "x86/errno.rs"]
1433pub mod errno;
1434#[cfg(feature = "general")]
1435#[cfg(target_arch = "x86")]
1436#[path = "x86/general.rs"]
1437pub mod general;
1438#[cfg(feature = "if_arp")]
1439#[cfg(target_arch = "x86")]
1440#[path = "x86/if_arp.rs"]
1441pub mod if_arp;
1442#[cfg(feature = "if_ether")]
1443#[cfg(target_arch = "x86")]
1444#[path = "x86/if_ether.rs"]
1445pub mod if_ether;
1446#[cfg(feature = "if_packet")]
1447#[cfg(target_arch = "x86")]
1448#[path = "x86/if_packet.rs"]
1449pub mod if_packet;
1450#[cfg(feature = "image")]
1451#[cfg(target_arch = "x86")]
1452#[path = "x86/image.rs"]
1453pub mod image;
1454#[cfg(feature = "io_uring")]
1455#[cfg(target_arch = "x86")]
1456#[path = "x86/io_uring.rs"]
1457pub mod io_uring;
1458#[cfg(feature = "ioctl")]
1459#[cfg(target_arch = "x86")]
1460#[path = "x86/ioctl.rs"]
1461pub mod ioctl;
1462#[cfg(feature = "landlock")]
1463#[cfg(target_arch = "x86")]
1464#[path = "x86/landlock.rs"]
1465pub mod landlock;
1466#[cfg(feature = "loop_device")]
1467#[cfg(target_arch = "x86")]
1468#[path = "x86/loop_device.rs"]
1469pub mod loop_device;
1470#[cfg(feature = "mempolicy")]
1471#[cfg(target_arch = "x86")]
1472#[path = "x86/mempolicy.rs"]
1473pub mod mempolicy;
1474#[cfg(feature = "net")]
1475#[cfg(target_arch = "x86")]
1476#[path = "x86/net.rs"]
1477pub mod net;
1478#[cfg(feature = "netlink")]
1479#[cfg(target_arch = "x86")]
1480#[path = "x86/netlink.rs"]
1481pub mod netlink;
1482#[cfg(feature = "prctl")]
1483#[cfg(target_arch = "x86")]
1484#[path = "x86/prctl.rs"]
1485pub mod prctl;
1486#[cfg(feature = "ptrace")]
1487#[cfg(target_arch = "x86")]
1488#[path = "x86/ptrace.rs"]
1489pub mod ptrace;
1490#[cfg(feature = "system")]
1491#[cfg(target_arch = "x86")]
1492#[path = "x86/system.rs"]
1493pub mod system;
1494#[cfg(feature = "xdp")]
1495#[cfg(target_arch = "x86")]
1496#[path = "x86/xdp.rs"]
1497pub mod xdp;
1498#[cfg(feature = "bootparam")]
1499#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1500#[path = "x86_64/bootparam.rs"]
1501pub mod bootparam;
1502#[cfg(feature = "btrfs")]
1503#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1504#[path = "x86_64/btrfs.rs"]
1505pub mod btrfs;
1506#[cfg(feature = "elf_uapi")]
1507#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1508#[path = "x86_64/elf_uapi.rs"]
1509pub mod elf_uapi;
1510#[cfg(feature = "errno")]
1511#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1512#[path = "x86_64/errno.rs"]
1513pub mod errno;
1514#[cfg(feature = "general")]
1515#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1516#[path = "x86_64/general.rs"]
1517pub mod general;
1518#[cfg(feature = "if_arp")]
1519#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1520#[path = "x86_64/if_arp.rs"]
1521pub mod if_arp;
1522#[cfg(feature = "if_ether")]
1523#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1524#[path = "x86_64/if_ether.rs"]
1525pub mod if_ether;
1526#[cfg(feature = "if_packet")]
1527#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1528#[path = "x86_64/if_packet.rs"]
1529pub mod if_packet;
1530#[cfg(feature = "image")]
1531#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1532#[path = "x86_64/image.rs"]
1533pub mod image;
1534#[cfg(feature = "io_uring")]
1535#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1536#[path = "x86_64/io_uring.rs"]
1537pub mod io_uring;
1538#[cfg(feature = "ioctl")]
1539#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1540#[path = "x86_64/ioctl.rs"]
1541pub mod ioctl;
1542#[cfg(feature = "landlock")]
1543#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1544#[path = "x86_64/landlock.rs"]
1545pub mod landlock;
1546#[cfg(feature = "loop_device")]
1547#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1548#[path = "x86_64/loop_device.rs"]
1549pub mod loop_device;
1550#[cfg(feature = "mempolicy")]
1551#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1552#[path = "x86_64/mempolicy.rs"]
1553pub mod mempolicy;
1554#[cfg(feature = "net")]
1555#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1556#[path = "x86_64/net.rs"]
1557pub mod net;
1558#[cfg(feature = "netlink")]
1559#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1560#[path = "x86_64/netlink.rs"]
1561pub mod netlink;
1562#[cfg(feature = "prctl")]
1563#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1564#[path = "x86_64/prctl.rs"]
1565pub mod prctl;
1566#[cfg(feature = "ptrace")]
1567#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1568#[path = "x86_64/ptrace.rs"]
1569pub mod ptrace;
1570#[cfg(feature = "system")]
1571#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1572#[path = "x86_64/system.rs"]
1573pub mod system;
1574#[cfg(feature = "xdp")]
1575#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1576#[path = "x86_64/xdp.rs"]
1577pub mod xdp;
1578#[cfg(feature = "bootparam")]
1579#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1580#[path = "x32/bootparam.rs"]
1581pub mod bootparam;
1582#[cfg(feature = "btrfs")]
1583#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1584#[path = "x32/btrfs.rs"]
1585pub mod btrfs;
1586#[cfg(feature = "elf_uapi")]
1587#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1588#[path = "x32/elf_uapi.rs"]
1589pub mod elf_uapi;
1590#[cfg(feature = "errno")]
1591#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1592#[path = "x32/errno.rs"]
1593pub mod errno;
1594#[cfg(feature = "general")]
1595#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1596#[path = "x32/general.rs"]
1597pub mod general;
1598#[cfg(feature = "if_arp")]
1599#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1600#[path = "x32/if_arp.rs"]
1601pub mod if_arp;
1602#[cfg(feature = "if_ether")]
1603#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1604#[path = "x32/if_ether.rs"]
1605pub mod if_ether;
1606#[cfg(feature = "if_packet")]
1607#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1608#[path = "x32/if_packet.rs"]
1609pub mod if_packet;
1610#[cfg(feature = "image")]
1611#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1612#[path = "x32/image.rs"]
1613pub mod image;
1614#[cfg(feature = "io_uring")]
1615#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1616#[path = "x32/io_uring.rs"]
1617pub mod io_uring;
1618#[cfg(feature = "ioctl")]
1619#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1620#[path = "x32/ioctl.rs"]
1621pub mod ioctl;
1622#[cfg(feature = "landlock")]
1623#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1624#[path = "x32/landlock.rs"]
1625pub mod landlock;
1626#[cfg(feature = "loop_device")]
1627#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1628#[path = "x32/loop_device.rs"]
1629pub mod loop_device;
1630#[cfg(feature = "mempolicy")]
1631#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1632#[path = "x32/mempolicy.rs"]
1633pub mod mempolicy;
1634#[cfg(feature = "net")]
1635#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1636#[path = "x32/net.rs"]
1637pub mod net;
1638#[cfg(feature = "netlink")]
1639#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1640#[path = "x32/netlink.rs"]
1641pub mod netlink;
1642#[cfg(feature = "prctl")]
1643#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1644#[path = "x32/prctl.rs"]
1645pub mod prctl;
1646#[cfg(feature = "ptrace")]
1647#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1648#[path = "x32/ptrace.rs"]
1649pub mod ptrace;
1650#[cfg(feature = "system")]
1651#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1652#[path = "x32/system.rs"]
1653pub mod system;
1654#[cfg(feature = "xdp")]
1655#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
1656#[path = "x32/xdp.rs"]
1657pub mod xdp;