diff --git a/src/aarch64/btrfs.rs b/src/aarch64/btrfs.rs index 2294965b..89ec9126 100644 --- a/src/aarch64/btrfs.rs +++ b/src/aarch64/btrfs.rs @@ -741,7 +741,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/arm/btrfs.rs b/src/arm/btrfs.rs index ea5b6e2f..f394082c 100644 --- a/src/arm/btrfs.rs +++ b/src/arm/btrfs.rs @@ -739,7 +739,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/csky/btrfs.rs b/src/csky/btrfs.rs index 728a3bb8..bf523af3 100644 --- a/src/csky/btrfs.rs +++ b/src/csky/btrfs.rs @@ -739,7 +739,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/hexagon/btrfs.rs b/src/hexagon/btrfs.rs index 5e2dda84..5864757e 100644 --- a/src/hexagon/btrfs.rs +++ b/src/hexagon/btrfs.rs @@ -739,7 +739,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/lib.rs b/src/lib.rs index 23f75b3c..e08e09b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -762,6 +762,10 @@ pub mod ptrace; #[cfg(target_arch = "m68k")] #[path = "m68k/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "m68k")] +#[path = "m68k/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "m68k")] #[path = "m68k/xdp.rs"] diff --git a/src/loongarch64/btrfs.rs b/src/loongarch64/btrfs.rs index d9bdef69..a64f6c3c 100644 --- a/src/loongarch64/btrfs.rs +++ b/src/loongarch64/btrfs.rs @@ -741,7 +741,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/m68k/netlink.rs b/src/m68k/netlink.rs index ce6930de..287111f8 100644 --- a/src/m68k/netlink.rs +++ b/src/m68k/netlink.rs @@ -610,6 +610,31 @@ pub tca_family: crate::ctypes::c_uchar, pub tca__pad1: crate::ctypes::c_uchar, pub tca__pad2: crate::ctypes::c_ushort, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fib_rule_hdr { +pub family: __u8, +pub dst_len: __u8, +pub src_len: __u8, +pub tos: __u8, +pub table: __u8, +pub res1: __u8, +pub res2: __u8, +pub action: __u8, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fib_rule_uid_range { +pub start: __u32, +pub end: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fib_rule_port_range { +pub start: __u16, +pub end: __u16, +} pub const _K_SS_MAXSIZE: u32 = 128; pub const SOCK_SNDBUF_LOCK: u32 = 1; pub const SOCK_RCVBUF_LOCK: u32 = 2; @@ -870,6 +895,13 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const FIB_RULE_PERMANENT: u32 = 1; +pub const FIB_RULE_INVERT: u32 = 2; +pub const FIB_RULE_UNRESOLVED: u32 = 4; +pub const FIB_RULE_IIF_DETACHED: u32 = 8; +pub const FIB_RULE_DEV_DETACHED: u32 = 8; +pub const FIB_RULE_OIF_DETACHED: u32 = 16; +pub const FIB_RULE_FIND_SADDR: u32 = 65536; pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; 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; pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TIME_DELTA; pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_EXT_WARN_MSG; pub const __TCA_ROOT_MAX: _bindgen_ty_68 = _bindgen_ty_68::__TCA_ROOT_MAX; +pub const FRA_UNSPEC: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNSPEC; +pub const FRA_DST: _bindgen_ty_69 = _bindgen_ty_69::FRA_DST; +pub const FRA_SRC: _bindgen_ty_69 = _bindgen_ty_69::FRA_SRC; +pub const FRA_IIFNAME: _bindgen_ty_69 = _bindgen_ty_69::FRA_IIFNAME; +pub const FRA_GOTO: _bindgen_ty_69 = _bindgen_ty_69::FRA_GOTO; +pub const FRA_UNUSED2: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNUSED2; +pub const FRA_PRIORITY: _bindgen_ty_69 = _bindgen_ty_69::FRA_PRIORITY; +pub const FRA_UNUSED3: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNUSED3; +pub const FRA_UNUSED4: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNUSED4; +pub const FRA_UNUSED5: _bindgen_ty_69 = _bindgen_ty_69::FRA_UNUSED5; +pub const FRA_FWMARK: _bindgen_ty_69 = _bindgen_ty_69::FRA_FWMARK; +pub const FRA_FLOW: _bindgen_ty_69 = _bindgen_ty_69::FRA_FLOW; +pub const FRA_TUN_ID: _bindgen_ty_69 = _bindgen_ty_69::FRA_TUN_ID; +pub const FRA_SUPPRESS_IFGROUP: _bindgen_ty_69 = _bindgen_ty_69::FRA_SUPPRESS_IFGROUP; +pub const FRA_SUPPRESS_PREFIXLEN: _bindgen_ty_69 = _bindgen_ty_69::FRA_SUPPRESS_PREFIXLEN; +pub const FRA_TABLE: _bindgen_ty_69 = _bindgen_ty_69::FRA_TABLE; +pub const FRA_FWMASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_FWMASK; +pub const FRA_OIFNAME: _bindgen_ty_69 = _bindgen_ty_69::FRA_OIFNAME; +pub const FRA_PAD: _bindgen_ty_69 = _bindgen_ty_69::FRA_PAD; +pub const FRA_L3MDEV: _bindgen_ty_69 = _bindgen_ty_69::FRA_L3MDEV; +pub const FRA_UID_RANGE: _bindgen_ty_69 = _bindgen_ty_69::FRA_UID_RANGE; +pub const FRA_PROTOCOL: _bindgen_ty_69 = _bindgen_ty_69::FRA_PROTOCOL; +pub const FRA_IP_PROTO: _bindgen_ty_69 = _bindgen_ty_69::FRA_IP_PROTO; +pub const FRA_SPORT_RANGE: _bindgen_ty_69 = _bindgen_ty_69::FRA_SPORT_RANGE; +pub const FRA_DPORT_RANGE: _bindgen_ty_69 = _bindgen_ty_69::FRA_DPORT_RANGE; +pub const FRA_DSCP: _bindgen_ty_69 = _bindgen_ty_69::FRA_DSCP; +pub const FRA_FLOWLABEL: _bindgen_ty_69 = _bindgen_ty_69::FRA_FLOWLABEL; +pub const FRA_FLOWLABEL_MASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_FLOWLABEL_MASK; +pub const FRA_SPORT_MASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_SPORT_MASK; +pub const FRA_DPORT_MASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_DPORT_MASK; +pub const FRA_DSCP_MASK: _bindgen_ty_69 = _bindgen_ty_69::FRA_DSCP_MASK; +pub const __FRA_MAX: _bindgen_ty_69 = _bindgen_ty_69::__FRA_MAX; +pub const FR_ACT_UNSPEC: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_UNSPEC; +pub const FR_ACT_TO_TBL: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_TO_TBL; +pub const FR_ACT_GOTO: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_GOTO; +pub const FR_ACT_NOP: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_NOP; +pub const FR_ACT_RES3: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_RES3; +pub const FR_ACT_RES4: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_RES4; +pub const FR_ACT_BLACKHOLE: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_BLACKHOLE; +pub const FR_ACT_UNREACHABLE: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_UNREACHABLE; +pub const FR_ACT_PROHIBIT: _bindgen_ty_70 = _bindgen_ty_70::FR_ACT_PROHIBIT; +pub const __FR_ACT_MAX: _bindgen_ty_70 = _bindgen_ty_70::__FR_ACT_MAX; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -5189,6 +5263,58 @@ TCA_ROOT_TIME_DELTA = 4, TCA_ROOT_EXT_WARN_MSG = 5, __TCA_ROOT_MAX = 6, } +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_69 { +FRA_UNSPEC = 0, +FRA_DST = 1, +FRA_SRC = 2, +FRA_IIFNAME = 3, +FRA_GOTO = 4, +FRA_UNUSED2 = 5, +FRA_PRIORITY = 6, +FRA_UNUSED3 = 7, +FRA_UNUSED4 = 8, +FRA_UNUSED5 = 9, +FRA_FWMARK = 10, +FRA_FLOW = 11, +FRA_TUN_ID = 12, +FRA_SUPPRESS_IFGROUP = 13, +FRA_SUPPRESS_PREFIXLEN = 14, +FRA_TABLE = 15, +FRA_FWMASK = 16, +FRA_OIFNAME = 17, +FRA_PAD = 18, +FRA_L3MDEV = 19, +FRA_UID_RANGE = 20, +FRA_PROTOCOL = 21, +FRA_IP_PROTO = 22, +FRA_SPORT_RANGE = 23, +FRA_DPORT_RANGE = 24, +FRA_DSCP = 25, +FRA_FLOWLABEL = 26, +FRA_FLOWLABEL_MASK = 27, +FRA_SPORT_MASK = 28, +FRA_DPORT_MASK = 29, +FRA_DSCP_MASK = 30, +__FRA_MAX = 31, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_70 { +FR_ACT_UNSPEC = 0, +FR_ACT_TO_TBL = 1, +FR_ACT_GOTO = 2, +FR_ACT_NOP = 3, +FR_ACT_RES3 = 4, +FR_ACT_RES4 = 5, +FR_ACT_BLACKHOLE = 6, +FR_ACT_UNREACHABLE = 7, +FR_ACT_PROHIBIT = 8, +__FR_ACT_MAX = 9, +} #[repr(C)] #[derive(Copy, Clone)] pub union __kernel_sockaddr_storage__bindgen_ty_1 { diff --git a/src/m68k/vm_sockets.rs b/src/m68k/vm_sockets.rs new file mode 100644 index 00000000..378bf38e --- /dev/null +++ b/src/m68k/vm_sockets.rs @@ -0,0 +1,108 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_vm { +pub svm_family: __kernel_sa_family_t, +pub svm_reserved1: crate::ctypes::c_ushort, +pub svm_port: crate::ctypes::c_uint, +pub svm_cid: crate::ctypes::c_uint, +pub svm_flags: __u8, +pub svm_zero: [crate::ctypes::c_uchar; 115usize], +} +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const SO_VM_SOCKETS_BUFFER_SIZE: u32 = 0; +pub const SO_VM_SOCKETS_BUFFER_MIN_SIZE: u32 = 1; +pub const SO_VM_SOCKETS_BUFFER_MAX_SIZE: u32 = 2; +pub const SO_VM_SOCKETS_PEER_HOST_VM_ID: u32 = 3; +pub const SO_VM_SOCKETS_TRUSTED: u32 = 5; +pub const SO_VM_SOCKETS_CONNECT_TIMEOUT_OLD: u32 = 6; +pub const SO_VM_SOCKETS_NONBLOCK_TXRX: u32 = 7; +pub const SO_VM_SOCKETS_CONNECT_TIMEOUT_NEW: u32 = 8; +pub const VMADDR_CID_ANY: i32 = -1; +pub const VMADDR_PORT_ANY: i32 = -1; +pub const VMADDR_CID_HYPERVISOR: u32 = 0; +pub const VMADDR_CID_LOCAL: u32 = 1; +pub const VMADDR_CID_HOST: u32 = 2; +pub const VMADDR_FLAG_TO_HOST: u32 = 1; +pub const VM_SOCKETS_INVALID_VERSION: i32 = -1; +pub const SOL_VSOCK: u32 = 287; +pub const VSOCK_RECVERR: u32 = 1; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} diff --git a/src/mips/btrfs.rs b/src/mips/btrfs.rs index 2a89fa31..d1de05a4 100644 --- a/src/mips/btrfs.rs +++ b/src/mips/btrfs.rs @@ -739,7 +739,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips32r6/btrfs.rs b/src/mips32r6/btrfs.rs index 2a89fa31..d1de05a4 100644 --- a/src/mips32r6/btrfs.rs +++ b/src/mips32r6/btrfs.rs @@ -739,7 +739,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips64/btrfs.rs b/src/mips64/btrfs.rs index f177b776..f322b77b 100644 --- a/src/mips64/btrfs.rs +++ b/src/mips64/btrfs.rs @@ -741,7 +741,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips64r6/btrfs.rs b/src/mips64r6/btrfs.rs index f177b776..f322b77b 100644 --- a/src/mips64r6/btrfs.rs +++ b/src/mips64r6/btrfs.rs @@ -741,7 +741,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/powerpc/btrfs.rs b/src/powerpc/btrfs.rs index 12940118..97f3b11d 100644 --- a/src/powerpc/btrfs.rs +++ b/src/powerpc/btrfs.rs @@ -745,7 +745,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/powerpc64/btrfs.rs b/src/powerpc64/btrfs.rs index 39e05eb3..3b8cd333 100644 --- a/src/powerpc64/btrfs.rs +++ b/src/powerpc64/btrfs.rs @@ -747,7 +747,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/riscv32/btrfs.rs b/src/riscv32/btrfs.rs index 728a3bb8..bf523af3 100644 --- a/src/riscv32/btrfs.rs +++ b/src/riscv32/btrfs.rs @@ -739,7 +739,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/riscv64/btrfs.rs b/src/riscv64/btrfs.rs index d9bdef69..a64f6c3c 100644 --- a/src/riscv64/btrfs.rs +++ b/src/riscv64/btrfs.rs @@ -741,7 +741,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/s390x/btrfs.rs b/src/s390x/btrfs.rs index ee668a3e..b37fa305 100644 --- a/src/s390x/btrfs.rs +++ b/src/s390x/btrfs.rs @@ -755,7 +755,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/sparc/btrfs.rs b/src/sparc/btrfs.rs index 23d7a257..c4ef80a1 100644 --- a/src/sparc/btrfs.rs +++ b/src/sparc/btrfs.rs @@ -739,7 +739,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/sparc64/btrfs.rs b/src/sparc64/btrfs.rs index 550f6908..2a879189 100644 --- a/src/sparc64/btrfs.rs +++ b/src/sparc64/btrfs.rs @@ -747,7 +747,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x32/btrfs.rs b/src/x32/btrfs.rs index ba5141e5..fcd13dfb 100644 --- a/src/x32/btrfs.rs +++ b/src/x32/btrfs.rs @@ -741,7 +741,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x86/btrfs.rs b/src/x86/btrfs.rs index ea5b6e2f..f394082c 100644 --- a/src/x86/btrfs.rs +++ b/src/x86/btrfs.rs @@ -739,7 +739,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x86_64/btrfs.rs b/src/x86_64/btrfs.rs index fcd8de1b..c7cf4e1d 100644 --- a/src/x86_64/btrfs.rs +++ b/src/x86_64/btrfs.rs @@ -741,7 +741,7 @@ pub dirid: __u64, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btrfs_ioctl_encoded_io_args { -pub iov: *mut iovec, +pub iov: *const iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64,