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