From 81d4d06c19a384236a9f991a2561a6c7f52abfe7 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sun, 21 Dec 2025 02:34:49 +0000 Subject: [PATCH] Add support for vm_sockets.h The vm_sockets.h header contains sockaddr_vm, which is needed for setting up `AF_VSOCK` sockets. Signed-off-by: John Nunley --- Cargo.toml | 1 + gen/modules/vm_sockets.h | 10 +++ src/aarch64/btrfs.rs | 2 +- src/aarch64/vm_sockets.rs | 111 ++++++++++++++++++++++++++++ src/arm/btrfs.rs | 2 +- src/arm/vm_sockets.rs | 108 ++++++++++++++++++++++++++++ src/csky/btrfs.rs | 2 +- src/csky/vm_sockets.rs | 108 ++++++++++++++++++++++++++++ src/hexagon/btrfs.rs | 2 +- src/hexagon/vm_sockets.rs | 108 ++++++++++++++++++++++++++++ src/lib.rs | 76 ++++++++++++++++++++ src/loongarch64/btrfs.rs | 2 +- src/loongarch64/vm_sockets.rs | 111 ++++++++++++++++++++++++++++ src/mips/btrfs.rs | 2 +- src/mips/vm_sockets.rs | 118 ++++++++++++++++++++++++++++++ src/mips32r6/btrfs.rs | 2 +- src/mips32r6/vm_sockets.rs | 118 ++++++++++++++++++++++++++++++ src/mips64/btrfs.rs | 2 +- src/mips64/vm_sockets.rs | 121 +++++++++++++++++++++++++++++++ src/mips64r6/btrfs.rs | 2 +- src/mips64r6/vm_sockets.rs | 121 +++++++++++++++++++++++++++++++ src/powerpc/btrfs.rs | 2 +- src/powerpc/vm_sockets.rs | 114 +++++++++++++++++++++++++++++ src/powerpc64/btrfs.rs | 2 +- src/powerpc64/vm_sockets.rs | 117 ++++++++++++++++++++++++++++++ src/riscv32/btrfs.rs | 2 +- src/riscv32/vm_sockets.rs | 108 ++++++++++++++++++++++++++++ src/riscv64/btrfs.rs | 2 +- src/riscv64/vm_sockets.rs | 111 ++++++++++++++++++++++++++++ src/s390x/btrfs.rs | 2 +- src/s390x/vm_sockets.rs | 131 ++++++++++++++++++++++++++++++++++ src/sparc/btrfs.rs | 2 +- src/sparc/vm_sockets.rs | 108 ++++++++++++++++++++++++++++ src/sparc64/btrfs.rs | 2 +- src/sparc64/vm_sockets.rs | 117 ++++++++++++++++++++++++++++++ src/x32/btrfs.rs | 2 +- src/x32/vm_sockets.rs | 111 ++++++++++++++++++++++++++++ src/x86/btrfs.rs | 2 +- src/x86/vm_sockets.rs | 108 ++++++++++++++++++++++++++++ src/x86_64/btrfs.rs | 2 +- src/x86_64/vm_sockets.rs | 111 ++++++++++++++++++++++++++++ 41 files changed, 2266 insertions(+), 19 deletions(-) create mode 100644 gen/modules/vm_sockets.h create mode 100644 src/aarch64/vm_sockets.rs create mode 100644 src/arm/vm_sockets.rs create mode 100644 src/csky/vm_sockets.rs create mode 100644 src/hexagon/vm_sockets.rs create mode 100644 src/loongarch64/vm_sockets.rs create mode 100644 src/mips/vm_sockets.rs create mode 100644 src/mips32r6/vm_sockets.rs create mode 100644 src/mips64/vm_sockets.rs create mode 100644 src/mips64r6/vm_sockets.rs create mode 100644 src/powerpc/vm_sockets.rs create mode 100644 src/powerpc64/vm_sockets.rs create mode 100644 src/riscv32/vm_sockets.rs create mode 100644 src/riscv64/vm_sockets.rs create mode 100644 src/s390x/vm_sockets.rs create mode 100644 src/sparc/vm_sockets.rs create mode 100644 src/sparc64/vm_sockets.rs create mode 100644 src/x32/vm_sockets.rs create mode 100644 src/x86/vm_sockets.rs create mode 100644 src/x86_64/vm_sockets.rs diff --git a/Cargo.toml b/Cargo.toml index 49ad5de2..dc8fea2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,6 +52,7 @@ netlink = [] prctl = [] ptrace = [] system = [] +vm_sockets = [] xdp = [] default = ["std", "general", "errno"] std = [] diff --git a/gen/modules/vm_sockets.h b/gen/modules/vm_sockets.h new file mode 100644 index 00000000..5f6d8355 --- /dev/null +++ b/gen/modules/vm_sockets.h @@ -0,0 +1,10 @@ +// Code needed for vm_sockets.h + +#include "support.h" + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) +#define sa_family_t uint16_t +#include +#include +#endif + diff --git a/src/aarch64/btrfs.rs b/src/aarch64/btrfs.rs index 89ec9126..2294965b 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/aarch64/vm_sockets.rs b/src/aarch64/vm_sockets.rs new file mode 100644 index 00000000..77337618 --- /dev/null +++ b/src/aarch64/vm_sockets.rs @@ -0,0 +1,111 @@ +/* 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_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +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 __s128 = i128; +pub type __u128 = u128; +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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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/arm/btrfs.rs b/src/arm/btrfs.rs index f394082c..ea5b6e2f 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/arm/vm_sockets.rs b/src/arm/vm_sockets.rs new file mode 100644 index 00000000..378bf38e --- /dev/null +++ b/src/arm/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/csky/btrfs.rs b/src/csky/btrfs.rs index bf523af3..728a3bb8 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/csky/vm_sockets.rs b/src/csky/vm_sockets.rs new file mode 100644 index 00000000..5d0bb47d --- /dev/null +++ b/src/csky/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_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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_old_dev_t = crate::ctypes::c_uint; +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/hexagon/btrfs.rs b/src/hexagon/btrfs.rs index 5864757e..5e2dda84 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/hexagon/vm_sockets.rs b/src/hexagon/vm_sockets.rs new file mode 100644 index 00000000..5d0bb47d --- /dev/null +++ b/src/hexagon/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_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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_old_dev_t = crate::ctypes::c_uint; +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/lib.rs b/src/lib.rs index 5e468d40..8de04acd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -301,6 +301,10 @@ pub mod ptrace; #[cfg(target_arch = "arm")] #[path = "arm/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "arm")] +#[path = "arm/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "arm")] #[path = "arm/xdp.rs"] @@ -389,6 +393,10 @@ pub mod ptrace; #[cfg(target_arch = "aarch64")] #[path = "aarch64/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "aarch64")] #[path = "aarch64/xdp.rs"] @@ -477,6 +485,10 @@ pub mod ptrace; #[cfg(target_arch = "csky")] #[path = "csky/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "csky")] +#[path = "csky/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "csky")] #[path = "csky/xdp.rs"] @@ -565,6 +577,10 @@ pub mod ptrace; #[cfg(target_arch = "hexagon")] #[path = "hexagon/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "hexagon")] +#[path = "hexagon/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "hexagon")] #[path = "hexagon/xdp.rs"] @@ -653,6 +669,10 @@ pub mod ptrace; #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/xdp.rs"] @@ -741,6 +761,10 @@ pub mod ptrace; #[cfg(target_arch = "mips")] #[path = "mips/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "mips")] +#[path = "mips/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "mips")] #[path = "mips/xdp.rs"] @@ -829,6 +853,10 @@ pub mod ptrace; #[cfg(target_arch = "mips64")] #[path = "mips64/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "mips64")] #[path = "mips64/xdp.rs"] @@ -917,6 +945,10 @@ pub mod ptrace; #[cfg(target_arch = "mips32r6")] #[path = "mips32r6/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "mips32r6")] #[path = "mips32r6/xdp.rs"] @@ -1005,6 +1037,10 @@ pub mod ptrace; #[cfg(target_arch = "mips64r6")] #[path = "mips64r6/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "mips64r6")] #[path = "mips64r6/xdp.rs"] @@ -1093,6 +1129,10 @@ pub mod ptrace; #[cfg(target_arch = "powerpc")] #[path = "powerpc/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "powerpc")] #[path = "powerpc/xdp.rs"] @@ -1181,6 +1221,10 @@ pub mod ptrace; #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/xdp.rs"] @@ -1269,6 +1313,10 @@ pub mod ptrace; #[cfg(target_arch = "riscv32")] #[path = "riscv32/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "riscv32")] #[path = "riscv32/xdp.rs"] @@ -1357,6 +1405,10 @@ pub mod ptrace; #[cfg(target_arch = "riscv64")] #[path = "riscv64/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "riscv64")] #[path = "riscv64/xdp.rs"] @@ -1445,6 +1497,10 @@ pub mod ptrace; #[cfg(target_arch = "s390x")] #[path = "s390x/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "s390x")] #[path = "s390x/xdp.rs"] @@ -1533,6 +1589,10 @@ pub mod ptrace; #[cfg(target_arch = "sparc")] #[path = "sparc/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "sparc")] #[path = "sparc/xdp.rs"] @@ -1621,6 +1681,10 @@ pub mod ptrace; #[cfg(target_arch = "sparc64")] #[path = "sparc64/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "sparc64")] #[path = "sparc64/xdp.rs"] @@ -1709,6 +1773,10 @@ pub mod ptrace; #[cfg(target_arch = "x86")] #[path = "x86/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(target_arch = "x86")] +#[path = "x86/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(target_arch = "x86")] #[path = "x86/xdp.rs"] @@ -1797,6 +1865,10 @@ pub mod ptrace; #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/xdp.rs"] @@ -1885,6 +1957,10 @@ pub mod ptrace; #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/system.rs"] pub mod system; +#[cfg(feature = "vm_sockets")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/vm_sockets.rs"] +pub mod vm_sockets; #[cfg(feature = "xdp")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/xdp.rs"] diff --git a/src/loongarch64/btrfs.rs b/src/loongarch64/btrfs.rs index a64f6c3c..d9bdef69 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/loongarch64/vm_sockets.rs b/src/loongarch64/vm_sockets.rs new file mode 100644 index 00000000..9e732383 --- /dev/null +++ b/src/loongarch64/vm_sockets.rs @@ -0,0 +1,111 @@ +/* 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_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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +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 __s128 = i128; +pub type __u128 = u128; +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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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 d1de05a4..2a89fa31 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips/vm_sockets.rs b/src/mips/vm_sockets.rs new file mode 100644 index 00000000..2db76bd3 --- /dev/null +++ b/src/mips/vm_sockets.rs @@ -0,0 +1,118 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +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_old_dev_t = crate::ctypes::c_uint; +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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips32r6/btrfs.rs b/src/mips32r6/btrfs.rs index d1de05a4..2a89fa31 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips32r6/vm_sockets.rs b/src/mips32r6/vm_sockets.rs new file mode 100644 index 00000000..2db76bd3 --- /dev/null +++ b/src/mips32r6/vm_sockets.rs @@ -0,0 +1,118 @@ +/* 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_daddr_t = crate::ctypes::c_long; +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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +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_old_dev_t = crate::ctypes::c_uint; +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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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/mips64/btrfs.rs b/src/mips64/btrfs.rs index f322b77b..f177b776 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips64/vm_sockets.rs b/src/mips64/vm_sockets.rs new file mode 100644 index 00000000..b0b59510 --- /dev/null +++ b/src/mips64/vm_sockets.rs @@ -0,0 +1,121 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +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_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +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 __s128 = i128; +pub type __u128 = u128; +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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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/mips64r6/btrfs.rs b/src/mips64r6/btrfs.rs index f322b77b..f177b776 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/mips64r6/vm_sockets.rs b/src/mips64r6/vm_sockets.rs new file mode 100644 index 00000000..b0b59510 --- /dev/null +++ b/src/mips64r6/vm_sockets.rs @@ -0,0 +1,121 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +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_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +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 __s128 = i128; +pub type __u128 = u128; +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 _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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/powerpc/btrfs.rs b/src/powerpc/btrfs.rs index 97f3b11d..12940118 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/powerpc/vm_sockets.rs b/src/powerpc/vm_sockets.rs new file mode 100644 index 00000000..b54a4776 --- /dev/null +++ b/src/powerpc/vm_sockets.rs @@ -0,0 +1,114 @@ +/* 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_ipc_pid_t = crate::ctypes::c_short; +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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_old_dev_t = crate::ctypes::c_uint; +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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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/powerpc64/btrfs.rs b/src/powerpc64/btrfs.rs index 3b8cd333..39e05eb3 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/powerpc64/vm_sockets.rs b/src/powerpc64/vm_sockets.rs new file mode 100644 index 00000000..93d1629e --- /dev/null +++ b/src/powerpc64/vm_sockets.rs @@ -0,0 +1,117 @@ +/* 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_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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 = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +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 __s128 = i128; +pub type __u128 = u128; +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)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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/riscv32/btrfs.rs b/src/riscv32/btrfs.rs index bf523af3..728a3bb8 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/riscv32/vm_sockets.rs b/src/riscv32/vm_sockets.rs new file mode 100644 index 00000000..5d0bb47d --- /dev/null +++ b/src/riscv32/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_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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_old_dev_t = crate::ctypes::c_uint; +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/riscv64/btrfs.rs b/src/riscv64/btrfs.rs index a64f6c3c..d9bdef69 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/riscv64/vm_sockets.rs b/src/riscv64/vm_sockets.rs new file mode 100644 index 00000000..9e732383 --- /dev/null +++ b/src/riscv64/vm_sockets.rs @@ -0,0 +1,111 @@ +/* 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_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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +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 __s128 = i128; +pub type __u128 = u128; +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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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/s390x/btrfs.rs b/src/s390x/btrfs.rs index b37fa305..ee668a3e 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/s390x/vm_sockets.rs b/src/s390x/vm_sockets.rs new file mode 100644 index 00000000..051c1a53 --- /dev/null +++ b/src/s390x/vm_sockets.rs @@ -0,0 +1,131 @@ +/* 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 addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +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_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 __s128 = i128; +pub type __u128 = u128; +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, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} diff --git a/src/sparc/btrfs.rs b/src/sparc/btrfs.rs index c4ef80a1..23d7a257 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/sparc/vm_sockets.rs b/src/sparc/vm_sockets.rs new file mode 100644 index 00000000..a2b1cc77 --- /dev/null +++ b/src/sparc/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_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +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_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +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_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_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/sparc64/btrfs.rs b/src/sparc64/btrfs.rs index 2a879189..550f6908 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/sparc64/vm_sockets.rs b/src/sparc64/vm_sockets.rs new file mode 100644 index 00000000..bd6303f4 --- /dev/null +++ b/src/sparc64/vm_sockets.rs @@ -0,0 +1,117 @@ +/* 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_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +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 __s128 = i128; +pub type __u128 = u128; +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 __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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/x32/btrfs.rs b/src/x32/btrfs.rs index fcd13dfb..ba5141e5 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x32/vm_sockets.rs b/src/x32/vm_sockets.rs new file mode 100644 index 00000000..d0b63ab7 --- /dev/null +++ b/src/x32/vm_sockets.rs @@ -0,0 +1,111 @@ +/* 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_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_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 __s128 = i128; +pub type __u128 = u128; +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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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/x86/btrfs.rs b/src/x86/btrfs.rs index f394082c..ea5b6e2f 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x86/vm_sockets.rs b/src/x86/vm_sockets.rs new file mode 100644 index 00000000..378bf38e --- /dev/null +++ b/src/x86/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/x86_64/btrfs.rs b/src/x86_64/btrfs.rs index c7cf4e1d..fcd8de1b 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: *const iovec, +pub iov: *mut iovec, pub iovcnt: crate::ctypes::c_ulong, pub offset: __s64, pub flags: __u64, diff --git a/src/x86_64/vm_sockets.rs b/src/x86_64/vm_sockets.rs new file mode 100644 index 00000000..f8e63575 --- /dev/null +++ b/src/x86_64/vm_sockets.rs @@ -0,0 +1,111 @@ +/* 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_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +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_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +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_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +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 __s128 = i128; +pub type __u128 = u128; +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 SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6; +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, +}