Debian Codegraph @

debian/rust-vendor/linux-raw-sys/src/s390x/system.rs

raw
1 /* automatically generated by rust-bindgen 0.72.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 __s128 = i128;
46 pub type __u128 = u128;
47 pub type __le16 = __u16;
48 pub type __be16 = __u16;
49 pub type __le32 = __u32;
50 pub type __be32 = __u32;
51 pub type __le64 = __u64;
52 pub type __be64 = __u64;
53 pub type __sum16 = __u16;
54 pub type __wsum = __u32;
55 pub type __poll_t = crate::ctypes::c_uint;
56 #[repr(C)]
57 #[derive(Default)]
58 pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
59 #[repr(C, packed(4))]
60 #[derive(Copy, Clone)]
61 pub struct __vector128 {
62 pub __bindgen_anon_1: __vector128__bindgen_ty_1,
63 }
64 #[repr(C)]
65 #[derive(Debug, Copy, Clone)]
66 pub struct __vector128__bindgen_ty_1__bindgen_ty_1 {
67 pub high: __u64,
68 pub low: __u64,
69 }
70 #[repr(C)]
71 #[derive(Debug)]
72 pub struct sysinfo {
73 pub uptime: __kernel_long_t,
74 pub loads: [__kernel_ulong_t; 3usize],
75 pub totalram: __kernel_ulong_t,
76 pub freeram: __kernel_ulong_t,
77 pub sharedram: __kernel_ulong_t,
78 pub bufferram: __kernel_ulong_t,
79 pub totalswap: __kernel_ulong_t,
80 pub freeswap: __kernel_ulong_t,
81 pub procs: __u16,
82 pub pad: __u16,
83 pub totalhigh: __kernel_ulong_t,
84 pub freehigh: __kernel_ulong_t,
85 pub mem_unit: __u32,
86 pub _f: __IncompleteArrayField<crate::ctypes::c_char>,
87 }
88 #[repr(C)]
89 #[derive(Debug, Copy, Clone)]
90 pub struct oldold_utsname {
91 pub sysname: [crate::ctypes::c_char; 9usize],
92 pub nodename: [crate::ctypes::c_char; 9usize],
93 pub release: [crate::ctypes::c_char; 9usize],
94 pub version: [crate::ctypes::c_char; 9usize],
95 pub machine: [crate::ctypes::c_char; 9usize],
96 }
97 #[repr(C)]
98 #[derive(Debug, Copy, Clone)]
99 pub struct old_utsname {
100 pub sysname: [crate::ctypes::c_char; 65usize],
101 pub nodename: [crate::ctypes::c_char; 65usize],
102 pub release: [crate::ctypes::c_char; 65usize],
103 pub version: [crate::ctypes::c_char; 65usize],
104 pub machine: [crate::ctypes::c_char; 65usize],
105 }
106 #[repr(C)]
107 #[derive(Debug, Copy, Clone)]
108 pub struct new_utsname {
109 pub sysname: [crate::ctypes::c_char; 65usize],
110 pub nodename: [crate::ctypes::c_char; 65usize],
111 pub release: [crate::ctypes::c_char; 65usize],
112 pub version: [crate::ctypes::c_char; 65usize],
113 pub machine: [crate::ctypes::c_char; 65usize],
114 pub domainname: [crate::ctypes::c_char; 65usize],
115 }
116 pub const __BITS_PER_LONG_LONG: u32 = 64;
117 pub const SI_LOAD_SHIFT: u32 = 16;
118 pub const __OLD_UTS_LEN: u32 = 8;
119 pub const __NEW_UTS_LEN: u32 = 64;
120 #[repr(C)]
121 #[derive(Copy, Clone)]
122 pub union __vector128__bindgen_ty_1 {
123 pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1,
124 pub u: [__u32; 4usize],
125 }
126 impl<T> __IncompleteArrayField<T> {
127 #[inline]
128 pub const fn new() -> Self {
129 __IncompleteArrayField(::core::marker::PhantomData, [])
130 }
131 #[inline]
132 pub fn as_ptr(&self) -> *const T {
133 self as *const _ as *const T
134 }
135 #[inline]
136 pub fn as_mut_ptr(&mut self) -> *mut T {
137 self as *mut _ as *mut T
138 }
139 #[inline]
140 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
141 ::core::slice::from_raw_parts(self.as_ptr(), len)
142 }
143 #[inline]
144 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
145 ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
146 }
147 }
148 impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
149 fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
150 fmt.write_str("__IncompleteArrayField")
151 }
152 }