Debian Codegraph @

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