diff options
Diffstat (limited to 'vendor/linux-raw-sys/src/lib.rs')
-rw-r--r-- | vendor/linux-raw-sys/src/lib.rs | 352 |
1 files changed, 336 insertions, 16 deletions
diff --git a/vendor/linux-raw-sys/src/lib.rs b/vendor/linux-raw-sys/src/lib.rs index 857b23f18..3586132ff 100644 --- a/vendor/linux-raw-sys/src/lib.rs +++ b/vendor/linux-raw-sys/src/lib.rs @@ -78,31 +78,31 @@ impl PartialEq for general::__kernel_timespec { #[cfg(feature = "general")] impl Eq for general::__kernel_timespec {} -#[cfg(feature = "general")] +#[cfg(feature = "net")] pub mod cmsg_macros { - use crate::ctypes::{c_long, c_uint, c_uchar}; - use crate::general::{cmsghdr, msghdr}; + use crate::ctypes::{c_long, c_uchar, c_uint}; + use crate::net::{cmsghdr, msghdr}; use core::mem::size_of; use core::ptr; - pub unsafe fn CMSG_ALIGN(len: c_uint) -> c_uint { + pub const unsafe fn CMSG_ALIGN(len: c_uint) -> c_uint { let c_long_size = size_of::<c_long>() as c_uint; (len + c_long_size - 1) & !(c_long_size - 1) } - pub unsafe fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar { - (cmsg as *mut c_uchar).offset(size_of::<cmsghdr>() as isize) + pub const unsafe fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar { + (cmsg as *mut c_uchar).add(size_of::<cmsghdr>()) } - pub unsafe fn CMSG_SPACE(len: c_uint) -> c_uint { + pub const unsafe fn CMSG_SPACE(len: c_uint) -> c_uint { size_of::<cmsghdr>() as c_uint + CMSG_ALIGN(len) } - pub unsafe fn CMSG_LEN(len: c_uint) -> c_uint { + pub const unsafe fn CMSG_LEN(len: c_uint) -> c_uint { size_of::<cmsghdr>() as c_uint + len } - pub unsafe fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { + pub const unsafe fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { if (*mhdr).msg_controllen < size_of::<cmsghdr>() as _ { return ptr::null_mut(); } @@ -111,18 +111,20 @@ pub mod cmsg_macros { } pub unsafe fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr { - // We convert from raw pointers to isize here, which may not be sound in a future version of Rust. - // Once the provenance rules are set in stone, it will be a good idea to give this function a once-over. + // We convert from raw pointers to usize here, which may not be sound in a + // future version of Rust. Once the provenance rules are set in stone, + // it will be a good idea to give this function a once-over. let cmsg_len = (*cmsg).cmsg_len; - let next_cmsg = (cmsg as *mut u8).offset(CMSG_ALIGN(cmsg_len as _) as isize) as *mut cmsghdr; + let next_cmsg = (cmsg as *mut u8).add(CMSG_ALIGN(cmsg_len as _) as usize) as *mut cmsghdr; let max = ((*mhdr).msg_control as usize) + ((*mhdr).msg_controllen as usize); if cmsg_len < size_of::<cmsghdr>() as _ { return ptr::null_mut(); } - if next_cmsg.offset(1) as usize > max || next_cmsg as usize + CMSG_ALIGN(cmsg_len as _) as usize > max + if next_cmsg.add(1) as usize > max + || next_cmsg as usize + CMSG_ALIGN(cmsg_len as _) as usize > max { return ptr::null_mut(); } @@ -140,21 +142,21 @@ pub mod select_macros { pub unsafe fn FD_CLR(fd: c_int, set: *mut __kernel_fd_set) { let bytes = set as *mut u8; if fd >= 0 { - *bytes.offset((fd / 8) as isize) &= !(1 << (fd % 8)); + *bytes.add((fd / 8) as usize) &= !(1 << (fd % 8)); } } pub unsafe fn FD_SET(fd: c_int, set: *mut __kernel_fd_set) { let bytes = set as *mut u8; if fd >= 0 { - *bytes.offset((fd / 8) as isize) |= 1 << (fd % 8); + *bytes.add((fd / 8) as usize) |= 1 << (fd % 8); } } pub unsafe fn FD_ISSET(fd: c_int, set: *const __kernel_fd_set) -> bool { let bytes = set as *const u8; if fd >= 0 { - *bytes.offset((fd / 8) as isize) & (1 << (fd % 8)) != 0 + *bytes.add((fd / 8) as usize) & (1 << (fd % 8)) != 0 } else { false } @@ -166,6 +168,24 @@ pub mod select_macros { } } +#[cfg(feature = "general")] +pub mod signal_macros { + pub const SIG_DFL: super::general::__kernel_sighandler_t = None; + + /// Rust doesn't currently permit us to use `transmute` to convert the + /// `SIG_IGN` value into a function pointer in a `const` initializer, so + /// we make it a function instead. + /// + #[inline] + pub const fn sig_ign() -> super::general::__kernel_sighandler_t { + // Safety: This creates an invalid pointer, but the pointer type + // includes `unsafe`, which covers the safety of calling it. + Some(unsafe { + core::mem::transmute::<usize, unsafe extern "C" fn(crate::ctypes::c_int)>(1) + }) + } +} + // The rest of this file is auto-generated! #[cfg(feature = "errno")] #[cfg(target_arch = "arm")] @@ -175,14 +195,34 @@ pub mod errno; #[cfg(target_arch = "arm")] #[path = "arm/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "arm")] +#[path = "arm/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "arm")] +#[path = "arm/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "arm")] #[path = "arm/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "arm")] +#[path = "arm/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "arm")] #[path = "arm/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "arm")] +#[path = "arm/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "arm")] +#[path = "arm/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "aarch64")] #[path = "aarch64/errno.rs"] @@ -191,14 +231,34 @@ pub mod errno; #[cfg(target_arch = "aarch64")] #[path = "aarch64/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "aarch64")] #[path = "aarch64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "aarch64")] #[path = "aarch64/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/errno.rs"] @@ -207,14 +267,34 @@ pub mod errno; #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "mips")] #[path = "mips/errno.rs"] @@ -223,14 +303,34 @@ pub mod errno; #[cfg(target_arch = "mips")] #[path = "mips/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "mips")] +#[path = "mips/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "mips")] +#[path = "mips/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "mips")] #[path = "mips/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "mips")] +#[path = "mips/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "mips")] #[path = "mips/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "mips")] +#[path = "mips/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "mips")] +#[path = "mips/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "mips64")] #[path = "mips64/errno.rs"] @@ -239,14 +339,34 @@ pub mod errno; #[cfg(target_arch = "mips64")] #[path = "mips64/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "mips64")] #[path = "mips64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "mips64")] #[path = "mips64/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "powerpc")] #[path = "powerpc/errno.rs"] @@ -255,14 +375,34 @@ pub mod errno; #[cfg(target_arch = "powerpc")] #[path = "powerpc/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "powerpc")] #[path = "powerpc/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "powerpc")] #[path = "powerpc/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/errno.rs"] @@ -271,14 +411,34 @@ pub mod errno; #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "riscv32")] #[path = "riscv32/errno.rs"] @@ -287,14 +447,34 @@ pub mod errno; #[cfg(target_arch = "riscv32")] #[path = "riscv32/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "riscv32")] #[path = "riscv32/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "riscv32")] #[path = "riscv32/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "riscv64")] #[path = "riscv64/errno.rs"] @@ -303,14 +483,34 @@ pub mod errno; #[cfg(target_arch = "riscv64")] #[path = "riscv64/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "riscv64")] #[path = "riscv64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "riscv64")] #[path = "riscv64/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "s390x")] #[path = "s390x/errno.rs"] @@ -319,14 +519,34 @@ pub mod errno; #[cfg(target_arch = "s390x")] #[path = "s390x/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "s390x")] #[path = "s390x/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "s390x")] #[path = "s390x/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "sparc")] #[path = "sparc/errno.rs"] @@ -335,14 +555,34 @@ pub mod errno; #[cfg(target_arch = "sparc")] #[path = "sparc/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "sparc")] #[path = "sparc/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "sparc")] #[path = "sparc/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "sparc64")] #[path = "sparc64/errno.rs"] @@ -351,14 +591,34 @@ pub mod errno; #[cfg(target_arch = "sparc64")] #[path = "sparc64/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "sparc64")] #[path = "sparc64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "sparc64")] #[path = "sparc64/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(target_arch = "x86")] #[path = "x86/errno.rs"] @@ -367,14 +627,34 @@ pub mod errno; #[cfg(target_arch = "x86")] #[path = "x86/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "x86")] +#[path = "x86/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "x86")] +#[path = "x86/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(target_arch = "x86")] #[path = "x86/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(target_arch = "x86")] +#[path = "x86/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(target_arch = "x86")] #[path = "x86/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "x86")] +#[path = "x86/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(target_arch = "x86")] +#[path = "x86/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/errno.rs"] @@ -383,14 +663,34 @@ pub mod errno; #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/system.rs"] +pub mod system; #[cfg(feature = "errno")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/errno.rs"] @@ -399,11 +699,31 @@ pub mod errno; #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/general.rs"] pub mod general; +#[cfg(feature = "if_ether")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "io_uring")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/io_uring.rs"] +pub mod io_uring; #[cfg(feature = "ioctl")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "net")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/net.rs"] +pub mod net; #[cfg(feature = "netlink")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/netlink.rs"] pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/prctl.rs"] +pub mod prctl; +#[cfg(feature = "system")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/system.rs"] +pub mod system; |