Debian Codegraph @

.cargo/vendor/linux-raw-sys/src/s390x/system.rs

raw
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 addr_t = crate::ctypes::c_ulong;
12 pub type saddr_t = crate::ctypes::c_long;
13 pub type __kernel_key_t = crate::ctypes::c_int;
14 pub type __kernel_mqd_t = crate::ctypes::c_int;
15 pub type __kernel_size_t = crate::ctypes::c_ulong;
16 pub type __kernel_ssize_t = crate::ctypes::c_long;
17 pub type __kernel_old_dev_t = crate::ctypes::c_ushort;
18 pub type __kernel_ino_t = crate::ctypes::c_uint;
19 pub type __kernel_mode_t = crate::ctypes::c_uint;
20 pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
21 pub type __kernel_uid_t = crate::ctypes::c_uint;
22 pub type __kernel_gid_t = crate::ctypes::c_uint;
23 pub type __kernel_ptrdiff_t = crate::ctypes::c_long;
24 pub type __kernel_sigset_t = crate::ctypes::c_ulong;
25 pub type __kernel_long_t = crate::ctypes::c_long;
26 pub type __kernel_ulong_t = crate::ctypes::c_ulong;
27 pub type __kernel_pid_t = crate::ctypes::c_int;
28 pub type __kernel_suseconds_t = __kernel_long_t;
29 pub type __kernel_daddr_t = crate::ctypes::c_int;
30 pub type __kernel_uid32_t = crate::ctypes::c_uint;
31 pub type __kernel_gid32_t = crate::ctypes::c_uint;
32 pub type __kernel_old_uid_t = __kernel_uid_t;
33 pub type __kernel_old_gid_t = __kernel_gid_t;
34 pub type __kernel_off_t = __kernel_long_t;
35 pub type __kernel_loff_t = crate::ctypes::c_longlong;
36 pub type __kernel_old_time_t = __kernel_long_t;
37 pub type __kernel_time_t = __kernel_long_t;
38 pub type __kernel_time64_t = crate::ctypes::c_longlong;
39 pub type __kernel_clock_t = __kernel_long_t;
40 pub type __kernel_timer_t = crate::ctypes::c_int;
41 pub type __kernel_clockid_t = crate::ctypes::c_int;
42 pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
43 pub type __kernel_uid16_t = crate::ctypes::c_ushort;
44 pub type __kernel_gid16_t = crate::ctypes::c_ushort;
45 pub type __le16 = __u16;
46 pub type __be16 = __u16;
47 pub type __le32 = __u32;
48 pub type __be32 = __u32;
49 pub type __le64 = __u64;
50 pub type __be64 = __u64;
51 pub type __sum16 = __u16;
52 pub type __wsum = __u32;
53 pub type __poll_t = crate::ctypes::c_uint;
54 #[repr(C)]
55 #[derive(Default)]
56 pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
57 #[repr(C, packed(4))]
58 #[derive(Copy, Clone)]
59 pub struct __vector128 {
60 pub __bindgen_anon_1: __vector128__bindgen_ty_1,
61 }
62 #[repr(C)]
63 #[derive(Debug, Copy, Clone)]
64 pub struct __vector128__bindgen_ty_1__bindgen_ty_1 {
65 pub high: __u64,
66 pub low: __u64,
67 }
68 #[repr(C)]
69 #[derive(Debug)]
70 pub struct sysinfo {
71 pub uptime: __kernel_long_t,
72 pub loads: [__kernel_ulong_t; 3usize],
73 pub totalram: __kernel_ulong_t,
74 pub freeram: __kernel_ulong_t,
75 pub sharedram: __kernel_ulong_t,
76 pub bufferram: __kernel_ulong_t,
77 pub totalswap: __kernel_ulong_t,
78 pub freeswap: __kernel_ulong_t,
79 pub procs: __u16,
80 pub pad: __u16,
81 pub totalhigh: __kernel_ulong_t,
82 pub freehigh: __kernel_ulong_t,
83 pub mem_unit: __u32,
84 pub _f: __IncompleteArrayField<crate::ctypes::c_char>,
85 }
86 #[repr(C)]
87 #[derive(Debug, Copy, Clone)]
88 pub struct oldold_utsname {
89 pub sysname: [crate::ctypes::c_char; 9usize],
90 pub nodename: [crate::ctypes::c_char; 9usize],
91 pub release: [crate::ctypes::c_char; 9usize],
92 pub version: [crate::ctypes::c_char; 9usize],
93 pub machine: [crate::ctypes::c_char; 9usize],
94 }
95 #[repr(C)]
96 #[derive(Debug, Copy, Clone)]
97 pub struct old_utsname {
98 pub sysname: [crate::ctypes::c_char; 65usize],
99 pub nodename: [crate::ctypes::c_char; 65usize],
100 pub release: [crate::ctypes::c_char; 65usize],
101 pub version: [crate::ctypes::c_char; 65usize],
102 pub machine: [crate::ctypes::c_char; 65usize],
103 }
104 #[repr(C)]
105 #[derive(Debug, Copy, Clone)]
106 pub struct new_utsname {
107 pub sysname: [crate::ctypes::c_char; 65usize],
108 pub nodename: [crate::ctypes::c_char; 65usize],
109 pub release: [crate::ctypes::c_char; 65usize],
110 pub version: [crate::ctypes::c_char; 65usize],
111 pub machine: [crate::ctypes::c_char; 65usize],
112 pub domainname: [crate::ctypes::c_char; 65usize],
113 }
114 pub const SI_LOAD_SHIFT: u32 = 16;
115 pub const __OLD_UTS_LEN: u32 = 8;
116 pub const __NEW_UTS_LEN: u32 = 64;
117 #[repr(C)]
118 #[derive(Copy, Clone)]
119 pub union __vector128__bindgen_ty_1 {
120 pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1,
121 pub u: [__u32; 4usize],
122 }
123 impl<T> __IncompleteArrayField<T> {
124 #[inline]
125 pub const fn new() -> Self {
126 __IncompleteArrayField(::core::marker::PhantomData, [])
127 }
128 #[inline]
129 pub fn as_ptr(&self) -> *const T {
130 self as *const _ as *const T
131 }
132 #[inline]
133 pub fn as_mut_ptr(&mut self) -> *mut T {
134 self as *mut _ as *mut T
135 }
136 #[inline]
137 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
138 ::core::slice::from_raw_parts(self.as_ptr(), len)
139 }
140 #[inline]
141 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
142 ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
143 }
144 }
145 impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
146 fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
147 fmt.write_str("__IncompleteArrayField")
148 }
149 }