| 1 |
/* automatically generated by rust-bindgen 0.66.1 */ |
| 2 |
|
| 3 |
pub type __s8 = crate::ctypes::c_schar; |
| 4 |
pub type __u8 = crate::ctypes::c_uchar; |
| 5 |
pub type __s16 = crate::ctypes::c_short; |
| 6 |
pub type __u16 = crate::ctypes::c_ushort; |
| 7 |
pub type __s32 = crate::ctypes::c_int; |
| 8 |
pub type __u32 = crate::ctypes::c_uint; |
| 9 |
pub type __s64 = crate::ctypes::c_longlong; |
| 10 |
pub type __u64 = crate::ctypes::c_ulonglong; |
| 11 |
pub type __kernel_key_t = crate::ctypes::c_int; |
| 12 |
pub type __kernel_mqd_t = crate::ctypes::c_int; |
| 13 |
pub type __kernel_daddr_t = crate::ctypes::c_long; |
| 14 |
pub type __kernel_long_t = crate::ctypes::c_long; |
| 15 |
pub type __kernel_ulong_t = crate::ctypes::c_ulong; |
| 16 |
pub type __kernel_ino_t = __kernel_ulong_t; |
| 17 |
pub type __kernel_mode_t = crate::ctypes::c_uint; |
| 18 |
pub type __kernel_pid_t = crate::ctypes::c_int; |
| 19 |
pub type __kernel_ipc_pid_t = crate::ctypes::c_int; |
| 20 |
pub type __kernel_uid_t = crate::ctypes::c_uint; |
| 21 |
pub type __kernel_gid_t = crate::ctypes::c_uint; |
| 22 |
pub type __kernel_suseconds_t = __kernel_long_t; |
| 23 |
pub type __kernel_uid32_t = crate::ctypes::c_uint; |
| 24 |
pub type __kernel_gid32_t = crate::ctypes::c_uint; |
| 25 |
pub type __kernel_old_uid_t = __kernel_uid_t; |
| 26 |
pub type __kernel_old_gid_t = __kernel_gid_t; |
| 27 |
pub type __kernel_old_dev_t = crate::ctypes::c_uint; |
| 28 |
pub type __kernel_size_t = crate::ctypes::c_uint; |
| 29 |
pub type __kernel_ssize_t = crate::ctypes::c_int; |
| 30 |
pub type __kernel_ptrdiff_t = crate::ctypes::c_int; |
| 31 |
pub type __kernel_off_t = __kernel_long_t; |
| 32 |
pub type __kernel_loff_t = crate::ctypes::c_longlong; |
| 33 |
pub type __kernel_old_time_t = __kernel_long_t; |
| 34 |
pub type __kernel_time_t = __kernel_long_t; |
| 35 |
pub type __kernel_time64_t = crate::ctypes::c_longlong; |
| 36 |
pub type __kernel_clock_t = __kernel_long_t; |
| 37 |
pub type __kernel_timer_t = crate::ctypes::c_int; |
| 38 |
pub type __kernel_clockid_t = crate::ctypes::c_int; |
| 39 |
pub type __kernel_caddr_t = *mut crate::ctypes::c_char; |
| 40 |
pub type __kernel_uid16_t = crate::ctypes::c_ushort; |
| 41 |
pub type __kernel_gid16_t = crate::ctypes::c_ushort; |
| 42 |
pub type __le16 = __u16; |
| 43 |
pub type __be16 = __u16; |
| 44 |
pub type __le32 = __u32; |
| 45 |
pub type __be32 = __u32; |
| 46 |
pub type __le64 = __u64; |
| 47 |
pub type __be64 = __u64; |
| 48 |
pub type __sum16 = __u16; |
| 49 |
pub type __wsum = __u32; |
| 50 |
pub type __poll_t = crate::ctypes::c_uint; |
| 51 |
#[repr(C)] |
| 52 |
#[derive(Debug, Copy, Clone)] |
| 53 |
pub struct sysinfo { |
| 54 |
pub uptime: __kernel_long_t, |
| 55 |
pub loads: [__kernel_ulong_t; 3usize], |
| 56 |
pub totalram: __kernel_ulong_t, |
| 57 |
pub freeram: __kernel_ulong_t, |
| 58 |
pub sharedram: __kernel_ulong_t, |
| 59 |
pub bufferram: __kernel_ulong_t, |
| 60 |
pub totalswap: __kernel_ulong_t, |
| 61 |
pub freeswap: __kernel_ulong_t, |
| 62 |
pub procs: __u16, |
| 63 |
pub pad: __u16, |
| 64 |
pub totalhigh: __kernel_ulong_t, |
| 65 |
pub freehigh: __kernel_ulong_t, |
| 66 |
pub mem_unit: __u32, |
| 67 |
pub _f: [crate::ctypes::c_char; 8usize], |
| 68 |
} |
| 69 |
#[repr(C)] |
| 70 |
#[derive(Debug, Copy, Clone)] |
| 71 |
pub struct oldold_utsname { |
| 72 |
pub sysname: [crate::ctypes::c_char; 9usize], |
| 73 |
pub nodename: [crate::ctypes::c_char; 9usize], |
| 74 |
pub release: [crate::ctypes::c_char; 9usize], |
| 75 |
pub version: [crate::ctypes::c_char; 9usize], |
| 76 |
pub machine: [crate::ctypes::c_char; 9usize], |
| 77 |
} |
| 78 |
#[repr(C)] |
| 79 |
#[derive(Debug, Copy, Clone)] |
| 80 |
pub struct old_utsname { |
| 81 |
pub sysname: [crate::ctypes::c_char; 65usize], |
| 82 |
pub nodename: [crate::ctypes::c_char; 65usize], |
| 83 |
pub release: [crate::ctypes::c_char; 65usize], |
| 84 |
pub version: [crate::ctypes::c_char; 65usize], |
| 85 |
pub machine: [crate::ctypes::c_char; 65usize], |
| 86 |
} |
| 87 |
#[repr(C)] |
| 88 |
#[derive(Debug, Copy, Clone)] |
| 89 |
pub struct new_utsname { |
| 90 |
pub sysname: [crate::ctypes::c_char; 65usize], |
| 91 |
pub nodename: [crate::ctypes::c_char; 65usize], |
| 92 |
pub release: [crate::ctypes::c_char; 65usize], |
| 93 |
pub version: [crate::ctypes::c_char; 65usize], |
| 94 |
pub machine: [crate::ctypes::c_char; 65usize], |
| 95 |
pub domainname: [crate::ctypes::c_char; 65usize], |
| 96 |
} |
| 97 |
pub const _MIPS_ISA_MIPS1: u32 = 1; |
| 98 |
pub const _MIPS_ISA_MIPS2: u32 = 2; |
| 99 |
pub const _MIPS_ISA_MIPS3: u32 = 3; |
| 100 |
pub const _MIPS_ISA_MIPS4: u32 = 4; |
| 101 |
pub const _MIPS_ISA_MIPS5: u32 = 5; |
| 102 |
pub const _MIPS_ISA_MIPS32: u32 = 6; |
| 103 |
pub const _MIPS_ISA_MIPS64: u32 = 7; |
| 104 |
pub const _MIPS_SIM_ABI32: u32 = 1; |
| 105 |
pub const _MIPS_SIM_NABI32: u32 = 2; |
| 106 |
pub const _MIPS_SIM_ABI64: u32 = 3; |
| 107 |
pub const SI_LOAD_SHIFT: u32 = 16; |
| 108 |
pub const __OLD_UTS_LEN: u32 = 8; |
| 109 |
pub const __NEW_UTS_LEN: u32 = 64; |