Skip to content

Commit a97eda7

Browse files
authored
Regenerate the bindings with clang 22. (#178)
1 parent 8aec869 commit a97eda7

File tree

22 files changed

+257
-19
lines changed

22 files changed

+257
-19
lines changed

src/aarch64/btrfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ pub dirid: __u64,
741741
#[repr(C)]
742742
#[derive(Debug, Copy, Clone)]
743743
pub struct btrfs_ioctl_encoded_io_args {
744-
pub iov: *mut iovec,
744+
pub iov: *const iovec,
745745
pub iovcnt: crate::ctypes::c_ulong,
746746
pub offset: __s64,
747747
pub flags: __u64,

src/arm/btrfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ pub dirid: __u64,
739739
#[repr(C)]
740740
#[derive(Debug, Copy, Clone)]
741741
pub struct btrfs_ioctl_encoded_io_args {
742-
pub iov: *mut iovec,
742+
pub iov: *const iovec,
743743
pub iovcnt: crate::ctypes::c_ulong,
744744
pub offset: __s64,
745745
pub flags: __u64,

src/csky/btrfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ pub dirid: __u64,
739739
#[repr(C)]
740740
#[derive(Debug, Copy, Clone)]
741741
pub struct btrfs_ioctl_encoded_io_args {
742-
pub iov: *mut iovec,
742+
pub iov: *const iovec,
743743
pub iovcnt: crate::ctypes::c_ulong,
744744
pub offset: __s64,
745745
pub flags: __u64,

src/hexagon/btrfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ pub dirid: __u64,
739739
#[repr(C)]
740740
#[derive(Debug, Copy, Clone)]
741741
pub struct btrfs_ioctl_encoded_io_args {
742-
pub iov: *mut iovec,
742+
pub iov: *const iovec,
743743
pub iovcnt: crate::ctypes::c_ulong,
744744
pub offset: __s64,
745745
pub flags: __u64,

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,10 @@ pub mod ptrace;
762762
#[cfg(target_arch = "m68k")]
763763
#[path = "m68k/system.rs"]
764764
pub mod system;
765+
#[cfg(feature = "vm_sockets")]
766+
#[cfg(target_arch = "m68k")]
767+
#[path = "m68k/vm_sockets.rs"]
768+
pub mod vm_sockets;
765769
#[cfg(feature = "xdp")]
766770
#[cfg(target_arch = "m68k")]
767771
#[path = "m68k/xdp.rs"]

src/loongarch64/btrfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ pub dirid: __u64,
741741
#[repr(C)]
742742
#[derive(Debug, Copy, Clone)]
743743
pub struct btrfs_ioctl_encoded_io_args {
744-
pub iov: *mut iovec,
744+
pub iov: *const iovec,
745745
pub iovcnt: crate::ctypes::c_ulong,
746746
pub offset: __s64,
747747
pub flags: __u64,

src/m68k/netlink.rs

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,31 @@ pub tca_family: crate::ctypes::c_uchar,
610610
pub tca__pad1: crate::ctypes::c_uchar,
611611
pub tca__pad2: crate::ctypes::c_ushort,
612612
}
613+
#[repr(C)]
614+
#[derive(Debug, Copy, Clone)]
615+
pub struct fib_rule_hdr {
616+
pub family: __u8,
617+
pub dst_len: __u8,
618+
pub src_len: __u8,
619+
pub tos: __u8,
620+
pub table: __u8,
621+
pub res1: __u8,
622+
pub res2: __u8,
623+
pub action: __u8,
624+
pub flags: __u32,
625+
}
626+
#[repr(C)]
627+
#[derive(Debug, Copy, Clone)]
628+
pub struct fib_rule_uid_range {
629+
pub start: __u32,
630+
pub end: __u32,
631+
}
632+
#[repr(C)]
633+
#[derive(Debug, Copy, Clone)]
634+
pub struct fib_rule_port_range {
635+
pub start: __u16,
636+
pub end: __u16,
637+
}
613638
pub const _K_SS_MAXSIZE: u32 = 128;
614639
pub const SOCK_SNDBUF_LOCK: u32 = 1;
615640
pub const SOCK_RCVBUF_LOCK: u32 = 2;
@@ -870,6 +895,13 @@ pub const RTEXT_FILTER_MRP: u32 = 16;
870895
pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32;
871896
pub const RTEXT_FILTER_CFM_STATUS: u32 = 64;
872897
pub const RTEXT_FILTER_MST: u32 = 128;
898+
pub const FIB_RULE_PERMANENT: u32 = 1;
899+
pub const FIB_RULE_INVERT: u32 = 2;
900+
pub const FIB_RULE_UNRESOLVED: u32 = 4;
901+
pub const FIB_RULE_IIF_DETACHED: u32 = 8;
902+
pub const FIB_RULE_DEV_DETACHED: u32 = 8;
903+
pub const FIB_RULE_OIF_DETACHED: u32 = 16;
904+
pub const FIB_RULE_FIND_SADDR: u32 = 65536;
873905
pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED;
874906
pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED;
875907
pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC;
@@ -1644,6 +1676,48 @@ pub const TCA_ROOT_COUNT: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_COUNT;
16441676
pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TIME_DELTA;
16451677
pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_EXT_WARN_MSG;
16461678
pub const __TCA_ROOT_MAX: _bindgen_ty_68 = _bindgen_ty_68::__TCA_ROOT_MAX;
1679+
pub const FRA_UNSPEC: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNSPEC;
1680+
pub const FRA_DST: _bindgen_ty_69 = _bindgen_ty_69::FRA_DST;
1681+
pub const FRA_SRC: _bindgen_ty_69 = _bindgen_ty_69::FRA_SRC;
1682+
pub const FRA_IIFNAME: _bindgen_ty_69 = _bindgen_ty_69::FRA_IIFNAME;
1683+
pub const FRA_GOTO: _bindgen_ty_69 = _bindgen_ty_69::FRA_GOTO;
1684+
pub const FRA_UNUSED2: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNUSED2;
1685+
pub const FRA_PRIORITY: _bindgen_ty_69 = _bindgen_ty_69::FRA_PRIORITY;
1686+
pub const FRA_UNUSED3: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNUSED3;
1687+
pub const FRA_UNUSED4: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNUSED4;
1688+
pub const FRA_UNUSED5: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNUSED5;
1689+
pub const FRA_FWMARK: _bindgen_ty_69 = _bindgen_ty_69::FRA_FWMARK;
1690+
pub const FRA_FLOW: _bindgen_ty_69 = _bindgen_ty_69::FRA_FLOW;
1691+
pub const FRA_TUN_ID: _bindgen_ty_69 = _bindgen_ty_69::FRA_TUN_ID;
1692+
pub const FRA_SUPPRESS_IFGROUP: _bindgen_ty_69 = _bindgen_ty_69::FRA_SUPPRESS_IFGROUP;
1693+
pub const FRA_SUPPRESS_PREFIXLEN: _bindgen_ty_69 = _bindgen_ty_69::FRA_SUPPRESS_PREFIXLEN;
1694+
pub const FRA_TABLE: _bindgen_ty_69 = _bindgen_ty_69::FRA_TABLE;
1695+
pub const FRA_FWMASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_FWMASK;
1696+
pub const FRA_OIFNAME: _bindgen_ty_69 = _bindgen_ty_69::FRA_OIFNAME;
1697+
pub const FRA_PAD: _bindgen_ty_69 = _bindgen_ty_69::FRA_PAD;
1698+
pub const FRA_L3MDEV: _bindgen_ty_69 = _bindgen_ty_69::FRA_L3MDEV;
1699+
pub const FRA_UID_RANGE: _bindgen_ty_69 = _bindgen_ty_69::FRA_UID_RANGE;
1700+
pub const FRA_PROTOCOL: _bindgen_ty_69 = _bindgen_ty_69::FRA_PROTOCOL;
1701+
pub const FRA_IP_PROTO: _bindgen_ty_69 = _bindgen_ty_69::FRA_IP_PROTO;
1702+
pub const FRA_SPORT_RANGE: _bindgen_ty_69 = _bindgen_ty_69::FRA_SPORT_RANGE;
1703+
pub const FRA_DPORT_RANGE: _bindgen_ty_69 = _bindgen_ty_69::FRA_DPORT_RANGE;
1704+
pub const FRA_DSCP: _bindgen_ty_69 = _bindgen_ty_69::FRA_DSCP;
1705+
pub const FRA_FLOWLABEL: _bindgen_ty_69 = _bindgen_ty_69::FRA_FLOWLABEL;
1706+
pub const FRA_FLOWLABEL_MASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_FLOWLABEL_MASK;
1707+
pub const FRA_SPORT_MASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_SPORT_MASK;
1708+
pub const FRA_DPORT_MASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_DPORT_MASK;
1709+
pub const FRA_DSCP_MASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_DSCP_MASK;
1710+
pub const __FRA_MAX: _bindgen_ty_69 = _bindgen_ty_69::__FRA_MAX;
1711+
pub const FR_ACT_UNSPEC: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_UNSPEC;
1712+
pub const FR_ACT_TO_TBL: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_TO_TBL;
1713+
pub const FR_ACT_GOTO: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_GOTO;
1714+
pub const FR_ACT_NOP: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_NOP;
1715+
pub const FR_ACT_RES3: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_RES3;
1716+
pub const FR_ACT_RES4: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_RES4;
1717+
pub const FR_ACT_BLACKHOLE: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_BLACKHOLE;
1718+
pub const FR_ACT_UNREACHABLE: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_UNREACHABLE;
1719+
pub const FR_ACT_PROHIBIT: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_PROHIBIT;
1720+
pub const __FR_ACT_MAX: _bindgen_ty_70 = _bindgen_ty_70::__FR_ACT_MAX;
16471721
#[repr(u32)]
16481722
#[non_exhaustive]
16491723
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
@@ -5189,6 +5263,58 @@ TCA_ROOT_TIME_DELTA = 4,
51895263
TCA_ROOT_EXT_WARN_MSG = 5,
51905264
__TCA_ROOT_MAX = 6,
51915265
}
5266+
#[repr(u32)]
5267+
#[non_exhaustive]
5268+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
5269+
pub enum _bindgen_ty_69 {
5270+
FRA_UNSPEC = 0,
5271+
FRA_DST = 1,
5272+
FRA_SRC = 2,
5273+
FRA_IIFNAME = 3,
5274+
FRA_GOTO = 4,
5275+
FRA_UNUSED2 = 5,
5276+
FRA_PRIORITY = 6,
5277+
FRA_UNUSED3 = 7,
5278+
FRA_UNUSED4 = 8,
5279+
FRA_UNUSED5 = 9,
5280+
FRA_FWMARK = 10,
5281+
FRA_FLOW = 11,
5282+
FRA_TUN_ID = 12,
5283+
FRA_SUPPRESS_IFGROUP = 13,
5284+
FRA_SUPPRESS_PREFIXLEN = 14,
5285+
FRA_TABLE = 15,
5286+
FRA_FWMASK = 16,
5287+
FRA_OIFNAME = 17,
5288+
FRA_PAD = 18,
5289+
FRA_L3MDEV = 19,
5290+
FRA_UID_RANGE = 20,
5291+
FRA_PROTOCOL = 21,
5292+
FRA_IP_PROTO = 22,
5293+
FRA_SPORT_RANGE = 23,
5294+
FRA_DPORT_RANGE = 24,
5295+
FRA_DSCP = 25,
5296+
FRA_FLOWLABEL = 26,
5297+
FRA_FLOWLABEL_MASK = 27,
5298+
FRA_SPORT_MASK = 28,
5299+
FRA_DPORT_MASK = 29,
5300+
FRA_DSCP_MASK = 30,
5301+
__FRA_MAX = 31,
5302+
}
5303+
#[repr(u32)]
5304+
#[non_exhaustive]
5305+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
5306+
pub enum _bindgen_ty_70 {
5307+
FR_ACT_UNSPEC = 0,
5308+
FR_ACT_TO_TBL = 1,
5309+
FR_ACT_GOTO = 2,
5310+
FR_ACT_NOP = 3,
5311+
FR_ACT_RES3 = 4,
5312+
FR_ACT_RES4 = 5,
5313+
FR_ACT_BLACKHOLE = 6,
5314+
FR_ACT_UNREACHABLE = 7,
5315+
FR_ACT_PROHIBIT = 8,
5316+
__FR_ACT_MAX = 9,
5317+
}
51925318
#[repr(C)]
51935319
#[derive(Copy, Clone)]
51945320
pub union __kernel_sockaddr_storage__bindgen_ty_1 {

src/m68k/vm_sockets.rs

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
/* automatically generated by rust-bindgen 0.72.1 */
2+
3+
pub type __kernel_sa_family_t = crate::ctypes::c_ushort;
4+
pub type __s8 = crate::ctypes::c_schar;
5+
pub type __u8 = crate::ctypes::c_uchar;
6+
pub type __s16 = crate::ctypes::c_short;
7+
pub type __u16 = crate::ctypes::c_ushort;
8+
pub type __s32 = crate::ctypes::c_int;
9+
pub type __u32 = crate::ctypes::c_uint;
10+
pub type __s64 = crate::ctypes::c_longlong;
11+
pub type __u64 = crate::ctypes::c_ulonglong;
12+
pub type __kernel_key_t = crate::ctypes::c_int;
13+
pub type __kernel_mqd_t = crate::ctypes::c_int;
14+
pub type __kernel_mode_t = crate::ctypes::c_ushort;
15+
pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort;
16+
pub type __kernel_uid_t = crate::ctypes::c_ushort;
17+
pub type __kernel_gid_t = crate::ctypes::c_ushort;
18+
pub type __kernel_old_dev_t = crate::ctypes::c_ushort;
19+
pub type __kernel_long_t = crate::ctypes::c_long;
20+
pub type __kernel_ulong_t = crate::ctypes::c_ulong;
21+
pub type __kernel_ino_t = __kernel_ulong_t;
22+
pub type __kernel_pid_t = crate::ctypes::c_int;
23+
pub type __kernel_suseconds_t = __kernel_long_t;
24+
pub type __kernel_daddr_t = crate::ctypes::c_int;
25+
pub type __kernel_uid32_t = crate::ctypes::c_uint;
26+
pub type __kernel_gid32_t = crate::ctypes::c_uint;
27+
pub type __kernel_old_uid_t = __kernel_uid_t;
28+
pub type __kernel_old_gid_t = __kernel_gid_t;
29+
pub type __kernel_size_t = crate::ctypes::c_uint;
30+
pub type __kernel_ssize_t = crate::ctypes::c_int;
31+
pub type __kernel_ptrdiff_t = crate::ctypes::c_int;
32+
pub type __kernel_off_t = __kernel_long_t;
33+
pub type __kernel_loff_t = crate::ctypes::c_longlong;
34+
pub type __kernel_old_time_t = __kernel_long_t;
35+
pub type __kernel_time_t = __kernel_long_t;
36+
pub type __kernel_time64_t = crate::ctypes::c_longlong;
37+
pub type __kernel_clock_t = __kernel_long_t;
38+
pub type __kernel_timer_t = crate::ctypes::c_int;
39+
pub type __kernel_clockid_t = crate::ctypes::c_int;
40+
pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
41+
pub type __kernel_uid16_t = crate::ctypes::c_ushort;
42+
pub type __kernel_gid16_t = crate::ctypes::c_ushort;
43+
pub type __le16 = __u16;
44+
pub type __be16 = __u16;
45+
pub type __le32 = __u32;
46+
pub type __be32 = __u32;
47+
pub type __le64 = __u64;
48+
pub type __be64 = __u64;
49+
pub type __sum16 = __u16;
50+
pub type __wsum = __u32;
51+
pub type __poll_t = crate::ctypes::c_uint;
52+
#[repr(C)]
53+
#[derive(Copy, Clone)]
54+
pub struct __kernel_sockaddr_storage {
55+
pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1,
56+
}
57+
#[repr(C)]
58+
#[derive(Debug, Copy, Clone)]
59+
pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 {
60+
pub ss_family: __kernel_sa_family_t,
61+
pub __data: [crate::ctypes::c_char; 126usize],
62+
}
63+
#[repr(C)]
64+
#[derive(Copy, Clone)]
65+
pub struct sockaddr {
66+
pub __storage: __kernel_sockaddr_storage,
67+
}
68+
#[repr(C)]
69+
#[derive(Debug, Copy, Clone)]
70+
pub struct sockaddr_vm {
71+
pub svm_family: __kernel_sa_family_t,
72+
pub svm_reserved1: crate::ctypes::c_ushort,
73+
pub svm_port: crate::ctypes::c_uint,
74+
pub svm_cid: crate::ctypes::c_uint,
75+
pub svm_flags: __u8,
76+
pub svm_zero: [crate::ctypes::c_uchar; 115usize],
77+
}
78+
pub const _K_SS_MAXSIZE: u32 = 128;
79+
pub const SOCK_SNDBUF_LOCK: u32 = 1;
80+
pub const SOCK_RCVBUF_LOCK: u32 = 2;
81+
pub const SOCK_BUF_LOCK_MASK: u32 = 3;
82+
pub const SOCK_TXREHASH_DEFAULT: u32 = 255;
83+
pub const SOCK_TXREHASH_DISABLED: u32 = 0;
84+
pub const SOCK_TXREHASH_ENABLED: u32 = 1;
85+
pub const __BITS_PER_LONG_LONG: u32 = 64;
86+
pub const SO_VM_SOCKETS_BUFFER_SIZE: u32 = 0;
87+
pub const SO_VM_SOCKETS_BUFFER_MIN_SIZE: u32 = 1;
88+
pub const SO_VM_SOCKETS_BUFFER_MAX_SIZE: u32 = 2;
89+
pub const SO_VM_SOCKETS_PEER_HOST_VM_ID: u32 = 3;
90+
pub const SO_VM_SOCKETS_TRUSTED: u32 = 5;
91+
pub const SO_VM_SOCKETS_CONNECT_TIMEOUT_OLD: u32 = 6;
92+
pub const SO_VM_SOCKETS_NONBLOCK_TXRX: u32 = 7;
93+
pub const SO_VM_SOCKETS_CONNECT_TIMEOUT_NEW: u32 = 8;
94+
pub const VMADDR_CID_ANY: i32 = -1;
95+
pub const VMADDR_PORT_ANY: i32 = -1;
96+
pub const VMADDR_CID_HYPERVISOR: u32 = 0;
97+
pub const VMADDR_CID_LOCAL: u32 = 1;
98+
pub const VMADDR_CID_HOST: u32 = 2;
99+
pub const VMADDR_FLAG_TO_HOST: u32 = 1;
100+
pub const VM_SOCKETS_INVALID_VERSION: i32 = -1;
101+
pub const SOL_VSOCK: u32 = 287;
102+
pub const VSOCK_RECVERR: u32 = 1;
103+
#[repr(C)]
104+
#[derive(Copy, Clone)]
105+
pub union __kernel_sockaddr_storage__bindgen_ty_1 {
106+
pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1,
107+
pub __align: *mut crate::ctypes::c_void,
108+
}

src/mips/btrfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ pub dirid: __u64,
739739
#[repr(C)]
740740
#[derive(Debug, Copy, Clone)]
741741
pub struct btrfs_ioctl_encoded_io_args {
742-
pub iov: *mut iovec,
742+
pub iov: *const iovec,
743743
pub iovcnt: crate::ctypes::c_ulong,
744744
pub offset: __s64,
745745
pub flags: __u64,

src/mips32r6/btrfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ pub dirid: __u64,
739739
#[repr(C)]
740740
#[derive(Debug, Copy, Clone)]
741741
pub struct btrfs_ioctl_encoded_io_args {
742-
pub iov: *mut iovec,
742+
pub iov: *const iovec,
743743
pub iovcnt: crate::ctypes::c_ulong,
744744
pub offset: __s64,
745745
pub flags: __u64,

0 commit comments

Comments
 (0)