linux_raw_sys/x86_64/
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_old_uid_t = crate::ctypes::c_ushort;
14pub type __kernel_old_gid_t = crate::ctypes::c_ushort;
15pub type __kernel_old_dev_t = crate::ctypes::c_ulong;
16pub type __kernel_long_t = crate::ctypes::c_long;
17pub type __kernel_ulong_t = crate::ctypes::c_ulong;
18pub type __kernel_ino_t = __kernel_ulong_t;
19pub type __kernel_mode_t = crate::ctypes::c_uint;
20pub type __kernel_pid_t = crate::ctypes::c_int;
21pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
22pub type __kernel_uid_t = crate::ctypes::c_uint;
23pub type __kernel_gid_t = crate::ctypes::c_uint;
24pub type __kernel_suseconds_t = __kernel_long_t;
25pub type __kernel_daddr_t = crate::ctypes::c_int;
26pub type __kernel_uid32_t = crate::ctypes::c_uint;
27pub type __kernel_gid32_t = crate::ctypes::c_uint;
28pub type __kernel_size_t = __kernel_ulong_t;
29pub type __kernel_ssize_t = __kernel_long_t;
30pub type __kernel_ptrdiff_t = __kernel_long_t;
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 __s128 = i128;
43pub type __u128 = u128;
44pub type __le16 = __u16;
45pub type __be16 = __u16;
46pub type __le32 = __u32;
47pub type __be32 = __u32;
48pub type __le64 = __u64;
49pub type __be64 = __u64;
50pub type __sum16 = __u16;
51pub type __wsum = __u32;
52pub type __poll_t = crate::ctypes::c_uint;
53#[repr(C)]
54#[derive(Default)]
55pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
56#[repr(C)]
57#[derive(Debug)]
58pub struct sysinfo {
59pub uptime: __kernel_long_t,
60pub loads: [__kernel_ulong_t; 3usize],
61pub totalram: __kernel_ulong_t,
62pub freeram: __kernel_ulong_t,
63pub sharedram: __kernel_ulong_t,
64pub bufferram: __kernel_ulong_t,
65pub totalswap: __kernel_ulong_t,
66pub freeswap: __kernel_ulong_t,
67pub procs: __u16,
68pub pad: __u16,
69pub totalhigh: __kernel_ulong_t,
70pub freehigh: __kernel_ulong_t,
71pub mem_unit: __u32,
72pub _f: __IncompleteArrayField<crate::ctypes::c_char>,
73}
74#[repr(C)]
75#[derive(Debug, Copy, Clone)]
76pub struct oldold_utsname {
77pub sysname: [crate::ctypes::c_char; 9usize],
78pub nodename: [crate::ctypes::c_char; 9usize],
79pub release: [crate::ctypes::c_char; 9usize],
80pub version: [crate::ctypes::c_char; 9usize],
81pub machine: [crate::ctypes::c_char; 9usize],
82}
83#[repr(C)]
84#[derive(Debug, Copy, Clone)]
85pub struct old_utsname {
86pub sysname: [crate::ctypes::c_char; 65usize],
87pub nodename: [crate::ctypes::c_char; 65usize],
88pub release: [crate::ctypes::c_char; 65usize],
89pub version: [crate::ctypes::c_char; 65usize],
90pub machine: [crate::ctypes::c_char; 65usize],
91}
92#[repr(C)]
93#[derive(Debug, Copy, Clone)]
94pub struct new_utsname {
95pub sysname: [crate::ctypes::c_char; 65usize],
96pub nodename: [crate::ctypes::c_char; 65usize],
97pub release: [crate::ctypes::c_char; 65usize],
98pub version: [crate::ctypes::c_char; 65usize],
99pub machine: [crate::ctypes::c_char; 65usize],
100pub domainname: [crate::ctypes::c_char; 65usize],
101}
102pub const __BITS_PER_LONG_LONG: u32 = 64;
103pub const SI_LOAD_SHIFT: u32 = 16;
104pub const __OLD_UTS_LEN: u32 = 8;
105pub const __NEW_UTS_LEN: u32 = 64;
106impl<T> __IncompleteArrayField<T> {
107#[inline]
108pub const fn new() -> Self {
109__IncompleteArrayField(::core::marker::PhantomData, [])
110}
111#[inline]
112pub fn as_ptr(&self) -> *const T {
113self as *const _ as *const T
114}
115#[inline]
116pub fn as_mut_ptr(&mut self) -> *mut T {
117self as *mut _ as *mut T
118}
119#[inline]
120pub unsafe fn as_slice(&self, len: usize) -> &[T] {
121::core::slice::from_raw_parts(self.as_ptr(), len)
122}
123#[inline]
124pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
125::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
126}
127}
128impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
129fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
130fmt.write_str("__IncompleteArrayField")
131}
132}