mirror of
https://github.com/openharmony/third_party_rust_linux-raw-sys.git
synced 2026-07-01 11:20:45 -04:00
Add a new ioctl module, and populate it with lots of ioctl codes. (#18)
We've been collecting manual definitions of ioctl codes for a while, and it looks like we're going to be collecting more over time, so start trying a different strategy: use a script and a C program to extract ioctl values from the headers semi-automatically. The script itself isn't very easy to run, and I'm open to ideas for how to do it better. However, this should cover most of Linux's existing ioctls, so hopefully we won't need to run it very often.
This commit is contained in:
@@ -24,6 +24,7 @@ targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]
|
||||
v2_6_32 = []
|
||||
errno = []
|
||||
general = []
|
||||
ioctl = []
|
||||
netlink = []
|
||||
v3_2 = []
|
||||
v3_10 = []
|
||||
|
||||
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
set -ueo pipefail
|
||||
|
||||
# Linux's ioctl codes using function-style macros in their definition which
|
||||
# bindgen is unable to evaluate. To extract the ioctl code values, we have
|
||||
# a small C program, main.c, which prints the values of the ioctls on the
|
||||
# platform it's compiled for. This script compiles it for several platforms
|
||||
# and generates an ioctl.h header file, which bindgen can fully process,
|
||||
# producing an ioctl module in the Rust bindings.
|
||||
#
|
||||
# This is a very simplistic and not yet portable script; if you need it run,
|
||||
# to add new ioctl codes or a new architecture, and are unable to run it,
|
||||
# please file an issue in the issue tracker.
|
||||
|
||||
cflags="-Wall -I."
|
||||
out="../modules/ioctl.h"
|
||||
|
||||
echo "// This file is generated from the ioctl/generate.sh script." > "$out"
|
||||
|
||||
i686-linux-gnu-gcc main.c -o main.exe $cflags
|
||||
./main.exe >> "$out"
|
||||
x86_64-linux-gnu-gcc main.c -o main.exe $cflags
|
||||
./main.exe >> "$out"
|
||||
aarch64-linux-gnu-gcc main.c -o main.exe $cflags
|
||||
qemu-aarch64 -L /usr/aarch64-linux-gnu ./main.exe >> "$out"
|
||||
arm-linux-gnueabihf-gcc main.c -o main.exe $cflags
|
||||
qemu-arm -L /usr/arm-linux-gnueabihf ./main.exe >> "$out"
|
||||
powerpc64le-linux-gnu-gcc main.c -o main.exe $cflags
|
||||
qemu-ppc64le -L /usr/powerpc64le-linux-gnu ./main.exe >> "$out"
|
||||
riscv64-linux-gnu-gcc main.c -o main.exe $cflags
|
||||
qemu-riscv64 -L /usr/riscv64-linux-gnu ./main.exe >> "$out"
|
||||
|
||||
rm main.exe
|
||||
+1991
File diff suppressed because it is too large
Load Diff
@@ -286,14 +286,6 @@ struct user_desc {
|
||||
#define ARCH_SET_FS 0x1002
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__) || defined(__sparc64__) || defined(__mips__) || defined(__mips64__) || defined(__powerpc__) || defined(__powerpc64__)
|
||||
#define BLKSSZGET 0x20001268
|
||||
#define BLKPBSZGET 0x2000127B
|
||||
#else
|
||||
#define BLKSSZGET 0x1268
|
||||
#define BLKPBSZGET 0x127B
|
||||
#endif
|
||||
|
||||
struct msghdr {
|
||||
void *msg_name;
|
||||
int msg_namelen;
|
||||
@@ -325,11 +317,3 @@ struct mmsghdr {
|
||||
struct msghdr msg_hdr;
|
||||
unsigned int msg_len;
|
||||
};
|
||||
|
||||
// The macro expansion for these on powerpc64 is too complex for bindgen.
|
||||
#if defined(__powerpc64__)
|
||||
#define TIOCGWINSZ 0x40087468
|
||||
#define TCGETS 0x403c7413
|
||||
#define FIONREAD 0x4004667f
|
||||
#define FIONBIO 0x8004667e
|
||||
#endif
|
||||
|
||||
+9024
File diff suppressed because it is too large
Load Diff
@@ -1769,8 +1769,6 @@ pub const TFD_NONBLOCK: u32 = 2048;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -1792,8 +1792,6 @@ pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const ARCH_SET_FS: u32 = 4098;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -1755,8 +1755,6 @@ pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const ARCH_SET_FS: u32 = 4098;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -1863,15 +1863,9 @@ pub const TFD_NONBLOCK: u32 = 2048;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
pub const TIOCGWINSZ: u32 = 1074295912;
|
||||
pub const TCGETS: u32 = 1077703699;
|
||||
pub const FIONREAD: u32 = 1074030207;
|
||||
pub const FIONBIO: u32 = 2147772030;
|
||||
pub type size_t = crate::ctypes::c_ulong;
|
||||
pub type ssize_t = crate::ctypes::c_long;
|
||||
pub type __s8 = crate::ctypes::c_schar;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -1859,8 +1859,6 @@ pub const TFD_NONBLOCK: u32 = 2048;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -1879,8 +1879,6 @@ pub const TFD_NONBLOCK: u32 = 2048;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2093,8 +2093,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2118,8 +2118,6 @@ pub const TFD_NONBLOCK: u32 = 128;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 524416;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2078,8 +2078,6 @@ pub const TFD_NONBLOCK: u32 = 128;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 524416;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2272,8 +2272,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2356,8 +2356,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2498,8 +2498,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 524416;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2436,8 +2436,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 524416;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2376,8 +2376,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2354,15 +2354,9 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
pub const TIOCGWINSZ: u32 = 1074295912;
|
||||
pub const TCGETS: u32 = 1077703699;
|
||||
pub const FIONREAD: u32 = 1074030207;
|
||||
pub const FIONBIO: u32 = 2147772030;
|
||||
pub type size_t = crate::ctypes::c_ulong;
|
||||
pub type ssize_t = crate::ctypes::c_long;
|
||||
pub type __s8 = crate::ctypes::c_schar;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2250,8 +2250,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2271,8 +2271,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2316,8 +2316,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2570,8 +2570,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 4210688;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 4210688;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2540,8 +2540,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 4210688;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 4210688;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2385,8 +2385,6 @@ pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const ARCH_SET_FS: u32 = 4098;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2313,8 +2313,6 @@ pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const ARCH_SET_FS: u32 = 4098;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2210,8 +2210,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2297,8 +2297,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2439,8 +2439,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 524416;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2377,8 +2377,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 524416;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 524416;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2317,8 +2317,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2295,15 +2295,9 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 536875624;
|
||||
pub const BLKPBSZGET: u32 = 536875643;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
pub const TIOCGWINSZ: u32 = 1074295912;
|
||||
pub const TCGETS: u32 = 1077703699;
|
||||
pub const FIONREAD: u32 = 1074030207;
|
||||
pub const FIONBIO: u32 = 2147772030;
|
||||
pub type size_t = crate::ctypes::c_ulong;
|
||||
pub type ssize_t = crate::ctypes::c_long;
|
||||
pub type __s8 = crate::ctypes::c_schar;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2184,8 +2184,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
@@ -2205,8 +2205,6 @@ pub const EPOLLET: u32 = 2147483648;
|
||||
pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336;
|
||||
pub const TFD_CREATE_FLAGS: u32 = 526336;
|
||||
pub const TFD_SETTIME_FLAGS: u32 = 1;
|
||||
pub const BLKSSZGET: u32 = 4712;
|
||||
pub const BLKPBSZGET: u32 = 4731;
|
||||
pub const SCM_RIGHTS: u32 = 1;
|
||||
pub const SCM_CREDENTIALS: u32 = 2;
|
||||
pub const SCM_SECURITY: u32 = 3;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@ pub mod r#errno;
|
||||
/// modules/general.h
|
||||
#[cfg(feature = "general")]
|
||||
pub mod r#general;
|
||||
/// modules/ioctl.h
|
||||
#[cfg(feature = "ioctl")]
|
||||
pub mod r#ioctl;
|
||||
/// modules/netlink.h
|
||||
#[cfg(feature = "netlink")]
|
||||
pub mod r#netlink;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user