]>
Commit | Line | Data |
---|---|---|
064997fb FG |
1 | /* automatically generated by rust-bindgen 0.59.2 */ |
2 | ||
3 | #[repr(C)] | |
4 | #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] | |
5 | pub struct __BindgenBitfieldUnit<Storage> { | |
6 | storage: Storage, | |
7 | } | |
8 | impl<Storage> __BindgenBitfieldUnit<Storage> { | |
9 | #[inline] | |
10 | pub const fn new(storage: Storage) -> Self { | |
11 | Self { storage } | |
12 | } | |
13 | } | |
14 | impl<Storage> __BindgenBitfieldUnit<Storage> | |
15 | where | |
16 | Storage: AsRef<[u8]> + AsMut<[u8]>, | |
17 | { | |
18 | #[inline] | |
19 | pub fn get_bit(&self, index: usize) -> bool { | |
20 | debug_assert!(index / 8 < self.storage.as_ref().len()); | |
21 | let byte_index = index / 8; | |
22 | let byte = self.storage.as_ref()[byte_index]; | |
23 | let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; | |
24 | let mask = 1 << bit_index; | |
25 | byte & mask == mask | |
26 | } | |
27 | #[inline] | |
28 | pub fn set_bit(&mut self, index: usize, val: bool) { | |
29 | debug_assert!(index / 8 < self.storage.as_ref().len()); | |
30 | let byte_index = index / 8; | |
31 | let byte = &mut self.storage.as_mut()[byte_index]; | |
32 | let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; | |
33 | let mask = 1 << bit_index; | |
34 | if val { | |
35 | *byte |= mask; | |
36 | } else { | |
37 | *byte &= !mask; | |
38 | } | |
39 | } | |
40 | #[inline] | |
41 | pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { | |
42 | debug_assert!(bit_width <= 64); | |
43 | debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); | |
44 | debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); | |
45 | let mut val = 0; | |
46 | for i in 0..(bit_width as usize) { | |
47 | if self.get_bit(i + bit_offset) { | |
48 | let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; | |
49 | val |= 1 << index; | |
50 | } | |
51 | } | |
52 | val | |
53 | } | |
54 | #[inline] | |
55 | pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { | |
56 | debug_assert!(bit_width <= 64); | |
57 | debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); | |
58 | debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); | |
59 | for i in 0..(bit_width as usize) { | |
60 | let mask = 1 << i; | |
61 | let val_bit_is_set = val & mask == mask; | |
62 | let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; | |
63 | self.set_bit(index + bit_offset, val_bit_is_set); | |
64 | } | |
65 | } | |
66 | } | |
67 | #[repr(C)] | |
68 | #[derive(Default)] | |
69 | pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]); | |
70 | impl<T> __IncompleteArrayField<T> { | |
71 | #[inline] | |
72 | pub const fn new() -> Self { | |
73 | __IncompleteArrayField(::core::marker::PhantomData, []) | |
74 | } | |
75 | #[inline] | |
76 | pub fn as_ptr(&self) -> *const T { | |
77 | self as *const _ as *const T | |
78 | } | |
79 | #[inline] | |
80 | pub fn as_mut_ptr(&mut self) -> *mut T { | |
81 | self as *mut _ as *mut T | |
82 | } | |
83 | #[inline] | |
84 | pub unsafe fn as_slice(&self, len: usize) -> &[T] { | |
85 | ::core::slice::from_raw_parts(self.as_ptr(), len) | |
86 | } | |
87 | #[inline] | |
88 | pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { | |
89 | ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) | |
90 | } | |
91 | } | |
92 | impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> { | |
93 | fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { | |
94 | fmt.write_str("__IncompleteArrayField") | |
95 | } | |
96 | } | |
97 | #[repr(C)] | |
98 | pub struct __BindgenUnionField<T>(::core::marker::PhantomData<T>); | |
99 | impl<T> __BindgenUnionField<T> { | |
100 | #[inline] | |
101 | pub const fn new() -> Self { | |
102 | __BindgenUnionField(::core::marker::PhantomData) | |
103 | } | |
104 | #[inline] | |
105 | pub unsafe fn as_ref(&self) -> &T { | |
106 | ::core::mem::transmute(self) | |
107 | } | |
108 | #[inline] | |
109 | pub unsafe fn as_mut(&mut self) -> &mut T { | |
110 | ::core::mem::transmute(self) | |
111 | } | |
112 | } | |
113 | impl<T> ::core::default::Default for __BindgenUnionField<T> { | |
114 | #[inline] | |
115 | fn default() -> Self { | |
116 | Self::new() | |
117 | } | |
118 | } | |
119 | impl<T> ::core::clone::Clone for __BindgenUnionField<T> { | |
120 | #[inline] | |
121 | fn clone(&self) -> Self { | |
122 | Self::new() | |
123 | } | |
124 | } | |
125 | impl<T> ::core::marker::Copy for __BindgenUnionField<T> {} | |
126 | impl<T> ::core::fmt::Debug for __BindgenUnionField<T> { | |
127 | fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { | |
128 | fmt.write_str("__BindgenUnionField") | |
129 | } | |
130 | } | |
131 | impl<T> ::core::hash::Hash for __BindgenUnionField<T> { | |
132 | fn hash<H: ::core::hash::Hasher>(&self, _state: &mut H) {} | |
133 | } | |
134 | impl<T> ::core::cmp::PartialEq for __BindgenUnionField<T> { | |
135 | fn eq(&self, _other: &__BindgenUnionField<T>) -> bool { | |
136 | true | |
137 | } | |
138 | } | |
139 | impl<T> ::core::cmp::Eq for __BindgenUnionField<T> {} | |
140 | pub const LINUX_VERSION_CODE: u32 = 332032; | |
141 | pub const LINUX_VERSION_MAJOR: u32 = 5; | |
142 | pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; | |
143 | pub const LINUX_VERSION_SUBLEVEL: u32 = 0; | |
144 | pub const AT_SYSINFO_EHDR: u32 = 33; | |
145 | pub const AT_L1I_CACHESIZE: u32 = 40; | |
146 | pub const AT_L1I_CACHEGEOMETRY: u32 = 41; | |
147 | pub const AT_L1D_CACHESIZE: u32 = 42; | |
148 | pub const AT_L1D_CACHEGEOMETRY: u32 = 43; | |
149 | pub const AT_L2_CACHESIZE: u32 = 44; | |
150 | pub const AT_L2_CACHEGEOMETRY: u32 = 45; | |
151 | pub const AT_VECTOR_SIZE_ARCH: u32 = 7; | |
152 | pub const AT_NULL: u32 = 0; | |
153 | pub const AT_IGNORE: u32 = 1; | |
154 | pub const AT_EXECFD: u32 = 2; | |
155 | pub const AT_PHDR: u32 = 3; | |
156 | pub const AT_PHENT: u32 = 4; | |
157 | pub const AT_PHNUM: u32 = 5; | |
158 | pub const AT_PAGESZ: u32 = 6; | |
159 | pub const AT_BASE: u32 = 7; | |
160 | pub const AT_FLAGS: u32 = 8; | |
161 | pub const AT_ENTRY: u32 = 9; | |
162 | pub const AT_NOTELF: u32 = 10; | |
163 | pub const AT_UID: u32 = 11; | |
164 | pub const AT_EUID: u32 = 12; | |
165 | pub const AT_GID: u32 = 13; | |
166 | pub const AT_EGID: u32 = 14; | |
167 | pub const AT_PLATFORM: u32 = 15; | |
168 | pub const AT_HWCAP: u32 = 16; | |
169 | pub const AT_CLKTCK: u32 = 17; | |
170 | pub const AT_SECURE: u32 = 23; | |
171 | pub const AT_BASE_PLATFORM: u32 = 24; | |
172 | pub const AT_RANDOM: u32 = 25; | |
173 | pub const AT_HWCAP2: u32 = 26; | |
174 | pub const AT_EXECFN: u32 = 31; | |
175 | pub const AT_MINSIGSTKSZ: u32 = 51; | |
176 | pub const __FD_SETSIZE: u32 = 1024; | |
177 | pub const O_ACCMODE: u32 = 3; | |
178 | pub const O_RDONLY: u32 = 0; | |
179 | pub const O_WRONLY: u32 = 1; | |
180 | pub const O_RDWR: u32 = 2; | |
181 | pub const O_CREAT: u32 = 64; | |
182 | pub const O_EXCL: u32 = 128; | |
183 | pub const O_NOCTTY: u32 = 256; | |
184 | pub const O_TRUNC: u32 = 512; | |
185 | pub const O_APPEND: u32 = 1024; | |
186 | pub const O_NONBLOCK: u32 = 2048; | |
187 | pub const O_DSYNC: u32 = 4096; | |
188 | pub const FASYNC: u32 = 8192; | |
189 | pub const O_DIRECT: u32 = 16384; | |
190 | pub const O_LARGEFILE: u32 = 32768; | |
191 | pub const O_DIRECTORY: u32 = 65536; | |
192 | pub const O_NOFOLLOW: u32 = 131072; | |
193 | pub const O_NOATIME: u32 = 262144; | |
194 | pub const O_CLOEXEC: u32 = 524288; | |
195 | pub const __O_SYNC: u32 = 1048576; | |
196 | pub const O_SYNC: u32 = 1052672; | |
197 | pub const O_PATH: u32 = 2097152; | |
198 | pub const __O_TMPFILE: u32 = 4194304; | |
199 | pub const O_TMPFILE: u32 = 4259840; | |
200 | pub const O_TMPFILE_MASK: u32 = 4259904; | |
201 | pub const O_NDELAY: u32 = 2048; | |
202 | pub const F_DUPFD: u32 = 0; | |
203 | pub const F_GETFD: u32 = 1; | |
204 | pub const F_SETFD: u32 = 2; | |
205 | pub const F_GETFL: u32 = 3; | |
206 | pub const F_SETFL: u32 = 4; | |
207 | pub const F_GETLK: u32 = 5; | |
208 | pub const F_SETLK: u32 = 6; | |
209 | pub const F_SETLKW: u32 = 7; | |
210 | pub const F_SETOWN: u32 = 8; | |
211 | pub const F_GETOWN: u32 = 9; | |
212 | pub const F_SETSIG: u32 = 10; | |
213 | pub const F_GETSIG: u32 = 11; | |
214 | pub const F_GETLK64: u32 = 12; | |
215 | pub const F_SETLK64: u32 = 13; | |
216 | pub const F_SETLKW64: u32 = 14; | |
217 | pub const F_SETOWN_EX: u32 = 15; | |
218 | pub const F_GETOWN_EX: u32 = 16; | |
219 | pub const F_GETOWNER_UIDS: u32 = 17; | |
220 | pub const F_OFD_GETLK: u32 = 36; | |
221 | pub const F_OFD_SETLK: u32 = 37; | |
222 | pub const F_OFD_SETLKW: u32 = 38; | |
223 | pub const F_OWNER_TID: u32 = 0; | |
224 | pub const F_OWNER_PID: u32 = 1; | |
225 | pub const F_OWNER_PGRP: u32 = 2; | |
226 | pub const FD_CLOEXEC: u32 = 1; | |
227 | pub const F_RDLCK: u32 = 0; | |
228 | pub const F_WRLCK: u32 = 1; | |
229 | pub const F_UNLCK: u32 = 2; | |
230 | pub const F_EXLCK: u32 = 4; | |
231 | pub const F_SHLCK: u32 = 8; | |
232 | pub const LOCK_SH: u32 = 1; | |
233 | pub const LOCK_EX: u32 = 2; | |
234 | pub const LOCK_NB: u32 = 4; | |
235 | pub const LOCK_UN: u32 = 8; | |
236 | pub const LOCK_MAND: u32 = 32; | |
237 | pub const LOCK_READ: u32 = 64; | |
238 | pub const LOCK_WRITE: u32 = 128; | |
239 | pub const LOCK_RW: u32 = 192; | |
240 | pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; | |
241 | pub const RESOLVE_NO_XDEV: u32 = 1; | |
242 | pub const RESOLVE_NO_MAGICLINKS: u32 = 2; | |
243 | pub const RESOLVE_NO_SYMLINKS: u32 = 4; | |
244 | pub const RESOLVE_BENEATH: u32 = 8; | |
245 | pub const RESOLVE_IN_ROOT: u32 = 16; | |
246 | pub const RESOLVE_CACHED: u32 = 32; | |
247 | pub const F_SETLEASE: u32 = 1024; | |
248 | pub const F_GETLEASE: u32 = 1025; | |
249 | pub const F_CANCELLK: u32 = 1029; | |
250 | pub const F_DUPFD_CLOEXEC: u32 = 1030; | |
251 | pub const F_NOTIFY: u32 = 1026; | |
252 | pub const F_SETPIPE_SZ: u32 = 1031; | |
253 | pub const F_GETPIPE_SZ: u32 = 1032; | |
254 | pub const F_ADD_SEALS: u32 = 1033; | |
255 | pub const F_GET_SEALS: u32 = 1034; | |
256 | pub const F_SEAL_SEAL: u32 = 1; | |
257 | pub const F_SEAL_SHRINK: u32 = 2; | |
258 | pub const F_SEAL_GROW: u32 = 4; | |
259 | pub const F_SEAL_WRITE: u32 = 8; | |
260 | pub const F_SEAL_FUTURE_WRITE: u32 = 16; | |
261 | pub const F_GET_RW_HINT: u32 = 1035; | |
262 | pub const F_SET_RW_HINT: u32 = 1036; | |
263 | pub const F_GET_FILE_RW_HINT: u32 = 1037; | |
264 | pub const F_SET_FILE_RW_HINT: u32 = 1038; | |
265 | pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; | |
266 | pub const RWH_WRITE_LIFE_NONE: u32 = 1; | |
267 | pub const RWH_WRITE_LIFE_SHORT: u32 = 2; | |
268 | pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; | |
269 | pub const RWH_WRITE_LIFE_LONG: u32 = 4; | |
270 | pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; | |
271 | pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; | |
272 | pub const DN_ACCESS: u32 = 1; | |
273 | pub const DN_MODIFY: u32 = 2; | |
274 | pub const DN_CREATE: u32 = 4; | |
275 | pub const DN_DELETE: u32 = 8; | |
276 | pub const DN_RENAME: u32 = 16; | |
277 | pub const DN_ATTRIB: u32 = 32; | |
278 | pub const DN_MULTISHOT: u32 = 2147483648; | |
279 | pub const AT_FDCWD: i32 = -100; | |
280 | pub const AT_SYMLINK_NOFOLLOW: u32 = 256; | |
281 | pub const AT_EACCESS: u32 = 512; | |
282 | pub const AT_REMOVEDIR: u32 = 512; | |
283 | pub const AT_SYMLINK_FOLLOW: u32 = 1024; | |
284 | pub const AT_NO_AUTOMOUNT: u32 = 2048; | |
285 | pub const AT_EMPTY_PATH: u32 = 4096; | |
286 | pub const AT_STATX_SYNC_TYPE: u32 = 24576; | |
287 | pub const AT_STATX_SYNC_AS_STAT: u32 = 0; | |
288 | pub const AT_STATX_FORCE_SYNC: u32 = 8192; | |
289 | pub const AT_STATX_DONT_SYNC: u32 = 16384; | |
290 | pub const AT_RECURSIVE: u32 = 32768; | |
291 | pub const EPOLL_CLOEXEC: u32 = 524288; | |
292 | pub const EPOLL_CTL_ADD: u32 = 1; | |
293 | pub const EPOLL_CTL_DEL: u32 = 2; | |
294 | pub const EPOLL_CTL_MOD: u32 = 3; | |
295 | pub const POSIX_FADV_NORMAL: u32 = 0; | |
296 | pub const POSIX_FADV_RANDOM: u32 = 1; | |
297 | pub const POSIX_FADV_SEQUENTIAL: u32 = 2; | |
298 | pub const POSIX_FADV_WILLNEED: u32 = 3; | |
299 | pub const POSIX_FADV_DONTNEED: u32 = 4; | |
300 | pub const POSIX_FADV_NOREUSE: u32 = 5; | |
301 | pub const FALLOC_FL_KEEP_SIZE: u32 = 1; | |
302 | pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; | |
303 | pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; | |
304 | pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; | |
305 | pub const FALLOC_FL_ZERO_RANGE: u32 = 16; | |
306 | pub const FALLOC_FL_INSERT_RANGE: u32 = 32; | |
307 | pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; | |
308 | pub const NR_OPEN: u32 = 1024; | |
309 | pub const NGROUPS_MAX: u32 = 65536; | |
310 | pub const ARG_MAX: u32 = 131072; | |
311 | pub const LINK_MAX: u32 = 127; | |
312 | pub const MAX_CANON: u32 = 255; | |
313 | pub const MAX_INPUT: u32 = 255; | |
314 | pub const NAME_MAX: u32 = 255; | |
315 | pub const PATH_MAX: u32 = 4096; | |
316 | pub const PIPE_BUF: u32 = 4096; | |
317 | pub const XATTR_NAME_MAX: u32 = 255; | |
318 | pub const XATTR_SIZE_MAX: u32 = 65536; | |
319 | pub const XATTR_LIST_MAX: u32 = 65536; | |
320 | pub const RTSIG_MAX: u32 = 32; | |
321 | pub const _IOC_NRBITS: u32 = 8; | |
322 | pub const _IOC_TYPEBITS: u32 = 8; | |
323 | pub const _IOC_SIZEBITS: u32 = 14; | |
324 | pub const _IOC_DIRBITS: u32 = 2; | |
325 | pub const _IOC_NRMASK: u32 = 255; | |
326 | pub const _IOC_TYPEMASK: u32 = 255; | |
327 | pub const _IOC_SIZEMASK: u32 = 16383; | |
328 | pub const _IOC_DIRMASK: u32 = 3; | |
329 | pub const _IOC_NRSHIFT: u32 = 0; | |
330 | pub const _IOC_TYPESHIFT: u32 = 8; | |
331 | pub const _IOC_SIZESHIFT: u32 = 16; | |
332 | pub const _IOC_DIRSHIFT: u32 = 30; | |
333 | pub const _IOC_NONE: u32 = 0; | |
334 | pub const _IOC_WRITE: u32 = 1; | |
335 | pub const _IOC_READ: u32 = 2; | |
336 | pub const IOC_IN: u32 = 1073741824; | |
337 | pub const IOC_OUT: u32 = 2147483648; | |
338 | pub const IOC_INOUT: u32 = 3221225472; | |
339 | pub const IOCSIZE_MASK: u32 = 1073676288; | |
340 | pub const IOCSIZE_SHIFT: u32 = 16; | |
341 | pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; | |
342 | pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; | |
343 | pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; | |
344 | pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; | |
345 | pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; | |
346 | pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; | |
347 | pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; | |
348 | pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; | |
349 | pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; | |
350 | pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; | |
351 | pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; | |
352 | pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; | |
353 | pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; | |
354 | pub const FSCRYPT_POLICY_V1: u32 = 0; | |
355 | pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; | |
356 | pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9usize] = b"fscrypt:\0"; | |
357 | pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; | |
358 | pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; | |
359 | pub const FSCRYPT_POLICY_V2: u32 = 2; | |
360 | pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; | |
361 | pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; | |
362 | pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; | |
363 | pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; | |
364 | pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; | |
365 | pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; | |
366 | pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; | |
367 | pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; | |
368 | pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; | |
369 | pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; | |
370 | pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; | |
371 | pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; | |
372 | pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; | |
373 | pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; | |
374 | pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; | |
375 | pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; | |
376 | pub const FS_POLICY_FLAGS_VALID: u32 = 7; | |
377 | pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; | |
378 | pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; | |
379 | pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; | |
380 | pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; | |
381 | pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; | |
382 | pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; | |
383 | pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; | |
384 | pub const FS_ENCRYPTION_MODE_SPECK128_256_XTS: u32 = 7; | |
385 | pub const FS_ENCRYPTION_MODE_SPECK128_256_CTS: u32 = 8; | |
386 | pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; | |
387 | pub const FS_KEY_DESC_PREFIX: &[u8; 9usize] = b"fscrypt:\0"; | |
388 | pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; | |
389 | pub const FS_MAX_KEY_SIZE: u32 = 64; | |
390 | pub const MS_RDONLY: u32 = 1; | |
391 | pub const MS_NOSUID: u32 = 2; | |
392 | pub const MS_NODEV: u32 = 4; | |
393 | pub const MS_NOEXEC: u32 = 8; | |
394 | pub const MS_SYNCHRONOUS: u32 = 16; | |
395 | pub const MS_REMOUNT: u32 = 32; | |
396 | pub const MS_MANDLOCK: u32 = 64; | |
397 | pub const MS_DIRSYNC: u32 = 128; | |
398 | pub const MS_NOSYMFOLLOW: u32 = 256; | |
399 | pub const MS_NOATIME: u32 = 1024; | |
400 | pub const MS_NODIRATIME: u32 = 2048; | |
401 | pub const MS_BIND: u32 = 4096; | |
402 | pub const MS_MOVE: u32 = 8192; | |
403 | pub const MS_REC: u32 = 16384; | |
404 | pub const MS_VERBOSE: u32 = 32768; | |
405 | pub const MS_SILENT: u32 = 32768; | |
406 | pub const MS_POSIXACL: u32 = 65536; | |
407 | pub const MS_UNBINDABLE: u32 = 131072; | |
408 | pub const MS_PRIVATE: u32 = 262144; | |
409 | pub const MS_SLAVE: u32 = 524288; | |
410 | pub const MS_SHARED: u32 = 1048576; | |
411 | pub const MS_RELATIME: u32 = 2097152; | |
412 | pub const MS_KERNMOUNT: u32 = 4194304; | |
413 | pub const MS_I_VERSION: u32 = 8388608; | |
414 | pub const MS_STRICTATIME: u32 = 16777216; | |
415 | pub const MS_LAZYTIME: u32 = 33554432; | |
416 | pub const MS_SUBMOUNT: u32 = 67108864; | |
417 | pub const MS_NOREMOTELOCK: u32 = 134217728; | |
418 | pub const MS_NOSEC: u32 = 268435456; | |
419 | pub const MS_BORN: u32 = 536870912; | |
420 | pub const MS_ACTIVE: u32 = 1073741824; | |
421 | pub const MS_NOUSER: u32 = 2147483648; | |
422 | pub const MS_RMT_MASK: u32 = 41943121; | |
423 | pub const MS_MGC_VAL: u32 = 3236757504; | |
424 | pub const MS_MGC_MSK: u32 = 4294901760; | |
425 | pub const OPEN_TREE_CLONE: u32 = 1; | |
426 | pub const OPEN_TREE_CLOEXEC: u32 = 524288; | |
427 | pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; | |
428 | pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; | |
429 | pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; | |
430 | pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; | |
431 | pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; | |
432 | pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; | |
433 | pub const MOVE_MOUNT_SET_GROUP: u32 = 256; | |
434 | pub const MOVE_MOUNT__MASK: u32 = 375; | |
435 | pub const FSOPEN_CLOEXEC: u32 = 1; | |
436 | pub const FSPICK_CLOEXEC: u32 = 1; | |
437 | pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; | |
438 | pub const FSPICK_NO_AUTOMOUNT: u32 = 4; | |
439 | pub const FSPICK_EMPTY_PATH: u32 = 8; | |
440 | pub const FSMOUNT_CLOEXEC: u32 = 1; | |
441 | pub const MOUNT_ATTR_RDONLY: u32 = 1; | |
442 | pub const MOUNT_ATTR_NOSUID: u32 = 2; | |
443 | pub const MOUNT_ATTR_NODEV: u32 = 4; | |
444 | pub const MOUNT_ATTR_NOEXEC: u32 = 8; | |
445 | pub const MOUNT_ATTR__ATIME: u32 = 112; | |
446 | pub const MOUNT_ATTR_RELATIME: u32 = 0; | |
447 | pub const MOUNT_ATTR_NOATIME: u32 = 16; | |
448 | pub const MOUNT_ATTR_STRICTATIME: u32 = 32; | |
449 | pub const MOUNT_ATTR_NODIRATIME: u32 = 128; | |
450 | pub const MOUNT_ATTR_IDMAP: u32 = 1048576; | |
451 | pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; | |
452 | pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; | |
453 | pub const INR_OPEN_CUR: u32 = 1024; | |
454 | pub const INR_OPEN_MAX: u32 = 4096; | |
455 | pub const BLOCK_SIZE_BITS: u32 = 10; | |
456 | pub const BLOCK_SIZE: u32 = 1024; | |
457 | pub const SEEK_SET: u32 = 0; | |
458 | pub const SEEK_CUR: u32 = 1; | |
459 | pub const SEEK_END: u32 = 2; | |
460 | pub const SEEK_DATA: u32 = 3; | |
461 | pub const SEEK_HOLE: u32 = 4; | |
462 | pub const SEEK_MAX: u32 = 4; | |
463 | pub const RENAME_NOREPLACE: u32 = 1; | |
464 | pub const RENAME_EXCHANGE: u32 = 2; | |
465 | pub const RENAME_WHITEOUT: u32 = 4; | |
466 | pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; | |
467 | pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; | |
468 | pub const NR_FILE: u32 = 8192; | |
469 | pub const FS_XFLAG_REALTIME: u32 = 1; | |
470 | pub const FS_XFLAG_PREALLOC: u32 = 2; | |
471 | pub const FS_XFLAG_IMMUTABLE: u32 = 8; | |
472 | pub const FS_XFLAG_APPEND: u32 = 16; | |
473 | pub const FS_XFLAG_SYNC: u32 = 32; | |
474 | pub const FS_XFLAG_NOATIME: u32 = 64; | |
475 | pub const FS_XFLAG_NODUMP: u32 = 128; | |
476 | pub const FS_XFLAG_RTINHERIT: u32 = 256; | |
477 | pub const FS_XFLAG_PROJINHERIT: u32 = 512; | |
478 | pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; | |
479 | pub const FS_XFLAG_EXTSIZE: u32 = 2048; | |
480 | pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; | |
481 | pub const FS_XFLAG_NODEFRAG: u32 = 8192; | |
482 | pub const FS_XFLAG_FILESTREAM: u32 = 16384; | |
483 | pub const FS_XFLAG_DAX: u32 = 32768; | |
484 | pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; | |
485 | pub const FS_XFLAG_HASATTR: u32 = 2147483648; | |
486 | pub const BMAP_IOCTL: u32 = 1; | |
487 | pub const FSLABEL_MAX: u32 = 256; | |
488 | pub const FS_SECRM_FL: u32 = 1; | |
489 | pub const FS_UNRM_FL: u32 = 2; | |
490 | pub const FS_COMPR_FL: u32 = 4; | |
491 | pub const FS_SYNC_FL: u32 = 8; | |
492 | pub const FS_IMMUTABLE_FL: u32 = 16; | |
493 | pub const FS_APPEND_FL: u32 = 32; | |
494 | pub const FS_NODUMP_FL: u32 = 64; | |
495 | pub const FS_NOATIME_FL: u32 = 128; | |
496 | pub const FS_DIRTY_FL: u32 = 256; | |
497 | pub const FS_COMPRBLK_FL: u32 = 512; | |
498 | pub const FS_NOCOMP_FL: u32 = 1024; | |
499 | pub const FS_ENCRYPT_FL: u32 = 2048; | |
500 | pub const FS_BTREE_FL: u32 = 4096; | |
501 | pub const FS_INDEX_FL: u32 = 4096; | |
502 | pub const FS_IMAGIC_FL: u32 = 8192; | |
503 | pub const FS_JOURNAL_DATA_FL: u32 = 16384; | |
504 | pub const FS_NOTAIL_FL: u32 = 32768; | |
505 | pub const FS_DIRSYNC_FL: u32 = 65536; | |
506 | pub const FS_TOPDIR_FL: u32 = 131072; | |
507 | pub const FS_HUGE_FILE_FL: u32 = 262144; | |
508 | pub const FS_EXTENT_FL: u32 = 524288; | |
509 | pub const FS_VERITY_FL: u32 = 1048576; | |
510 | pub const FS_EA_INODE_FL: u32 = 2097152; | |
511 | pub const FS_EOFBLOCKS_FL: u32 = 4194304; | |
512 | pub const FS_NOCOW_FL: u32 = 8388608; | |
513 | pub const FS_DAX_FL: u32 = 33554432; | |
514 | pub const FS_INLINE_DATA_FL: u32 = 268435456; | |
515 | pub const FS_PROJINHERIT_FL: u32 = 536870912; | |
516 | pub const FS_CASEFOLD_FL: u32 = 1073741824; | |
517 | pub const FS_RESERVED_FL: u32 = 2147483648; | |
518 | pub const FS_FL_USER_VISIBLE: u32 = 253951; | |
519 | pub const FS_FL_USER_MODIFIABLE: u32 = 229631; | |
520 | pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; | |
521 | pub const SYNC_FILE_RANGE_WRITE: u32 = 2; | |
522 | pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; | |
523 | pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; | |
524 | pub const FUTEX_WAIT: u32 = 0; | |
525 | pub const FUTEX_WAKE: u32 = 1; | |
526 | pub const FUTEX_FD: u32 = 2; | |
527 | pub const FUTEX_REQUEUE: u32 = 3; | |
528 | pub const FUTEX_CMP_REQUEUE: u32 = 4; | |
529 | pub const FUTEX_WAKE_OP: u32 = 5; | |
530 | pub const FUTEX_LOCK_PI: u32 = 6; | |
531 | pub const FUTEX_UNLOCK_PI: u32 = 7; | |
532 | pub const FUTEX_TRYLOCK_PI: u32 = 8; | |
533 | pub const FUTEX_WAIT_BITSET: u32 = 9; | |
534 | pub const FUTEX_WAKE_BITSET: u32 = 10; | |
535 | pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; | |
536 | pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; | |
537 | pub const FUTEX_LOCK_PI2: u32 = 13; | |
538 | pub const FUTEX_PRIVATE_FLAG: u32 = 128; | |
539 | pub const FUTEX_CLOCK_REALTIME: u32 = 256; | |
540 | pub const FUTEX_CMD_MASK: i32 = -385; | |
541 | pub const FUTEX_WAIT_PRIVATE: u32 = 128; | |
542 | pub const FUTEX_WAKE_PRIVATE: u32 = 129; | |
543 | pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; | |
544 | pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; | |
545 | pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; | |
546 | pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; | |
547 | pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; | |
548 | pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; | |
549 | pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; | |
550 | pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; | |
551 | pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; | |
552 | pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; | |
553 | pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; | |
554 | pub const FUTEX_32: u32 = 2; | |
555 | pub const FUTEX_WAITV_MAX: u32 = 128; | |
556 | pub const FUTEX_WAITERS: u32 = 2147483648; | |
557 | pub const FUTEX_OWNER_DIED: u32 = 1073741824; | |
558 | pub const FUTEX_TID_MASK: u32 = 1073741823; | |
559 | pub const ROBUST_LIST_LIMIT: u32 = 2048; | |
560 | pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; | |
561 | pub const FUTEX_OP_SET: u32 = 0; | |
562 | pub const FUTEX_OP_ADD: u32 = 1; | |
563 | pub const FUTEX_OP_OR: u32 = 2; | |
564 | pub const FUTEX_OP_ANDN: u32 = 3; | |
565 | pub const FUTEX_OP_XOR: u32 = 4; | |
566 | pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; | |
567 | pub const FUTEX_OP_CMP_EQ: u32 = 0; | |
568 | pub const FUTEX_OP_CMP_NE: u32 = 1; | |
569 | pub const FUTEX_OP_CMP_LT: u32 = 2; | |
570 | pub const FUTEX_OP_CMP_LE: u32 = 3; | |
571 | pub const FUTEX_OP_CMP_GT: u32 = 4; | |
572 | pub const FUTEX_OP_CMP_GE: u32 = 5; | |
573 | pub const __UAPI_DEF_IF_IFCONF: u32 = 1; | |
574 | pub const __UAPI_DEF_IF_IFMAP: u32 = 1; | |
575 | pub const __UAPI_DEF_IF_IFNAMSIZ: u32 = 1; | |
576 | pub const __UAPI_DEF_IF_IFREQ: u32 = 1; | |
577 | pub const __UAPI_DEF_IF_NET_DEVICE_FLAGS: u32 = 1; | |
578 | pub const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO: u32 = 1; | |
579 | pub const __UAPI_DEF_IN_ADDR: u32 = 1; | |
580 | pub const __UAPI_DEF_IN_IPPROTO: u32 = 1; | |
581 | pub const __UAPI_DEF_IN_PKTINFO: u32 = 1; | |
582 | pub const __UAPI_DEF_IP_MREQ: u32 = 1; | |
583 | pub const __UAPI_DEF_SOCKADDR_IN: u32 = 1; | |
584 | pub const __UAPI_DEF_IN_CLASS: u32 = 1; | |
585 | pub const __UAPI_DEF_IN6_ADDR: u32 = 1; | |
586 | pub const __UAPI_DEF_IN6_ADDR_ALT: u32 = 1; | |
587 | pub const __UAPI_DEF_SOCKADDR_IN6: u32 = 1; | |
588 | pub const __UAPI_DEF_IPV6_MREQ: u32 = 1; | |
589 | pub const __UAPI_DEF_IPPROTO_V6: u32 = 1; | |
590 | pub const __UAPI_DEF_IPV6_OPTIONS: u32 = 1; | |
591 | pub const __UAPI_DEF_IN6_PKTINFO: u32 = 1; | |
592 | pub const __UAPI_DEF_IP6_MTUINFO: u32 = 1; | |
593 | pub const __UAPI_DEF_SOCKADDR_IPX: u32 = 1; | |
594 | pub const __UAPI_DEF_IPX_ROUTE_DEFINITION: u32 = 1; | |
595 | pub const __UAPI_DEF_IPX_INTERFACE_DEFINITION: u32 = 1; | |
596 | pub const __UAPI_DEF_IPX_CONFIG_DATA: u32 = 1; | |
597 | pub const __UAPI_DEF_IPX_ROUTE_DEF: u32 = 1; | |
598 | pub const __UAPI_DEF_XATTR: u32 = 1; | |
599 | pub const _K_SS_MAXSIZE: u32 = 128; | |
600 | pub const SOCK_SNDBUF_LOCK: u32 = 1; | |
601 | pub const SOCK_RCVBUF_LOCK: u32 = 2; | |
602 | pub const SOCK_BUF_LOCK_MASK: u32 = 3; | |
603 | pub const IP_TOS: u32 = 1; | |
604 | pub const IP_TTL: u32 = 2; | |
605 | pub const IP_HDRINCL: u32 = 3; | |
606 | pub const IP_OPTIONS: u32 = 4; | |
607 | pub const IP_ROUTER_ALERT: u32 = 5; | |
608 | pub const IP_RECVOPTS: u32 = 6; | |
609 | pub const IP_RETOPTS: u32 = 7; | |
610 | pub const IP_PKTINFO: u32 = 8; | |
611 | pub const IP_PKTOPTIONS: u32 = 9; | |
612 | pub const IP_MTU_DISCOVER: u32 = 10; | |
613 | pub const IP_RECVERR: u32 = 11; | |
614 | pub const IP_RECVTTL: u32 = 12; | |
615 | pub const IP_RECVTOS: u32 = 13; | |
616 | pub const IP_MTU: u32 = 14; | |
617 | pub const IP_FREEBIND: u32 = 15; | |
618 | pub const IP_IPSEC_POLICY: u32 = 16; | |
619 | pub const IP_XFRM_POLICY: u32 = 17; | |
620 | pub const IP_PASSSEC: u32 = 18; | |
621 | pub const IP_TRANSPARENT: u32 = 19; | |
622 | pub const IP_RECVRETOPTS: u32 = 7; | |
623 | pub const IP_ORIGDSTADDR: u32 = 20; | |
624 | pub const IP_RECVORIGDSTADDR: u32 = 20; | |
625 | pub const IP_MINTTL: u32 = 21; | |
626 | pub const IP_NODEFRAG: u32 = 22; | |
627 | pub const IP_CHECKSUM: u32 = 23; | |
628 | pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; | |
629 | pub const IP_RECVFRAGSIZE: u32 = 25; | |
630 | pub const IP_RECVERR_RFC4884: u32 = 26; | |
631 | pub const IP_PMTUDISC_DONT: u32 = 0; | |
632 | pub const IP_PMTUDISC_WANT: u32 = 1; | |
633 | pub const IP_PMTUDISC_DO: u32 = 2; | |
634 | pub const IP_PMTUDISC_PROBE: u32 = 3; | |
635 | pub const IP_PMTUDISC_INTERFACE: u32 = 4; | |
636 | pub const IP_PMTUDISC_OMIT: u32 = 5; | |
637 | pub const IP_MULTICAST_IF: u32 = 32; | |
638 | pub const IP_MULTICAST_TTL: u32 = 33; | |
639 | pub const IP_MULTICAST_LOOP: u32 = 34; | |
640 | pub const IP_ADD_MEMBERSHIP: u32 = 35; | |
641 | pub const IP_DROP_MEMBERSHIP: u32 = 36; | |
642 | pub const IP_UNBLOCK_SOURCE: u32 = 37; | |
643 | pub const IP_BLOCK_SOURCE: u32 = 38; | |
644 | pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; | |
645 | pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; | |
646 | pub const IP_MSFILTER: u32 = 41; | |
647 | pub const MCAST_JOIN_GROUP: u32 = 42; | |
648 | pub const MCAST_BLOCK_SOURCE: u32 = 43; | |
649 | pub const MCAST_UNBLOCK_SOURCE: u32 = 44; | |
650 | pub const MCAST_LEAVE_GROUP: u32 = 45; | |
651 | pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; | |
652 | pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; | |
653 | pub const MCAST_MSFILTER: u32 = 48; | |
654 | pub const IP_MULTICAST_ALL: u32 = 49; | |
655 | pub const IP_UNICAST_IF: u32 = 50; | |
656 | pub const MCAST_EXCLUDE: u32 = 0; | |
657 | pub const MCAST_INCLUDE: u32 = 1; | |
658 | pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; | |
659 | pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; | |
660 | pub const __SOCK_SIZE__: u32 = 16; | |
661 | pub const IN_CLASSA_NET: u32 = 4278190080; | |
662 | pub const IN_CLASSA_NSHIFT: u32 = 24; | |
663 | pub const IN_CLASSA_HOST: u32 = 16777215; | |
664 | pub const IN_CLASSA_MAX: u32 = 128; | |
665 | pub const IN_CLASSB_NET: u32 = 4294901760; | |
666 | pub const IN_CLASSB_NSHIFT: u32 = 16; | |
667 | pub const IN_CLASSB_HOST: u32 = 65535; | |
668 | pub const IN_CLASSB_MAX: u32 = 65536; | |
669 | pub const IN_CLASSC_NET: u32 = 4294967040; | |
670 | pub const IN_CLASSC_NSHIFT: u32 = 8; | |
671 | pub const IN_CLASSC_HOST: u32 = 255; | |
672 | pub const IN_MULTICAST_NET: u32 = 3758096384; | |
673 | pub const IN_CLASSE_NET: u32 = 4294967295; | |
674 | pub const IN_CLASSE_NSHIFT: u32 = 0; | |
675 | pub const IN_LOOPBACKNET: u32 = 127; | |
676 | pub const INADDR_LOOPBACK: u32 = 2130706433; | |
677 | pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; | |
678 | pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; | |
679 | pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; | |
680 | pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; | |
681 | pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; | |
682 | pub const __LITTLE_ENDIAN: u32 = 1234; | |
6522a427 EL |
683 | pub const IN_ACCESS: u32 = 1; |
684 | pub const IN_MODIFY: u32 = 2; | |
685 | pub const IN_ATTRIB: u32 = 4; | |
686 | pub const IN_CLOSE_WRITE: u32 = 8; | |
687 | pub const IN_CLOSE_NOWRITE: u32 = 16; | |
688 | pub const IN_OPEN: u32 = 32; | |
689 | pub const IN_MOVED_FROM: u32 = 64; | |
690 | pub const IN_MOVED_TO: u32 = 128; | |
691 | pub const IN_CREATE: u32 = 256; | |
692 | pub const IN_DELETE: u32 = 512; | |
693 | pub const IN_DELETE_SELF: u32 = 1024; | |
694 | pub const IN_MOVE_SELF: u32 = 2048; | |
695 | pub const IN_UNMOUNT: u32 = 8192; | |
696 | pub const IN_Q_OVERFLOW: u32 = 16384; | |
697 | pub const IN_IGNORED: u32 = 32768; | |
698 | pub const IN_CLOSE: u32 = 24; | |
699 | pub const IN_MOVE: u32 = 192; | |
700 | pub const IN_ONLYDIR: u32 = 16777216; | |
701 | pub const IN_DONT_FOLLOW: u32 = 33554432; | |
702 | pub const IN_EXCL_UNLINK: u32 = 67108864; | |
703 | pub const IN_MASK_CREATE: u32 = 268435456; | |
704 | pub const IN_MASK_ADD: u32 = 536870912; | |
705 | pub const IN_ISDIR: u32 = 1073741824; | |
706 | pub const IN_ONESHOT: u32 = 2147483648; | |
707 | pub const IN_ALL_EVENTS: u32 = 4095; | |
708 | pub const IN_CLOEXEC: u32 = 524288; | |
709 | pub const IN_NONBLOCK: u32 = 2048; | |
064997fb FG |
710 | pub const IPTOS_TOS_MASK: u32 = 30; |
711 | pub const IPTOS_LOWDELAY: u32 = 16; | |
712 | pub const IPTOS_THROUGHPUT: u32 = 8; | |
713 | pub const IPTOS_RELIABILITY: u32 = 4; | |
714 | pub const IPTOS_MINCOST: u32 = 2; | |
715 | pub const IPTOS_PREC_MASK: u32 = 224; | |
716 | pub const IPTOS_PREC_NETCONTROL: u32 = 224; | |
717 | pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; | |
718 | pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; | |
719 | pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; | |
720 | pub const IPTOS_PREC_FLASH: u32 = 96; | |
721 | pub const IPTOS_PREC_IMMEDIATE: u32 = 64; | |
722 | pub const IPTOS_PREC_PRIORITY: u32 = 32; | |
723 | pub const IPTOS_PREC_ROUTINE: u32 = 0; | |
724 | pub const IPOPT_COPY: u32 = 128; | |
725 | pub const IPOPT_CLASS_MASK: u32 = 96; | |
726 | pub const IPOPT_NUMBER_MASK: u32 = 31; | |
727 | pub const IPOPT_CONTROL: u32 = 0; | |
728 | pub const IPOPT_RESERVED1: u32 = 32; | |
729 | pub const IPOPT_MEASUREMENT: u32 = 64; | |
730 | pub const IPOPT_RESERVED2: u32 = 96; | |
731 | pub const IPOPT_END: u32 = 0; | |
732 | pub const IPOPT_NOOP: u32 = 1; | |
733 | pub const IPOPT_SEC: u32 = 130; | |
734 | pub const IPOPT_LSRR: u32 = 131; | |
735 | pub const IPOPT_TIMESTAMP: u32 = 68; | |
736 | pub const IPOPT_CIPSO: u32 = 134; | |
737 | pub const IPOPT_RR: u32 = 7; | |
738 | pub const IPOPT_SID: u32 = 136; | |
739 | pub const IPOPT_SSRR: u32 = 137; | |
740 | pub const IPOPT_RA: u32 = 148; | |
741 | pub const IPVERSION: u32 = 4; | |
742 | pub const MAXTTL: u32 = 255; | |
743 | pub const IPDEFTTL: u32 = 64; | |
744 | pub const IPOPT_OPTVAL: u32 = 0; | |
745 | pub const IPOPT_OLEN: u32 = 1; | |
746 | pub const IPOPT_OFFSET: u32 = 2; | |
747 | pub const IPOPT_MINOFF: u32 = 4; | |
748 | pub const MAX_IPOPTLEN: u32 = 40; | |
749 | pub const IPOPT_NOP: u32 = 1; | |
750 | pub const IPOPT_EOL: u32 = 0; | |
751 | pub const IPOPT_TS: u32 = 68; | |
752 | pub const IPOPT_TS_TSONLY: u32 = 0; | |
753 | pub const IPOPT_TS_TSANDADDR: u32 = 1; | |
754 | pub const IPOPT_TS_PRESPEC: u32 = 3; | |
755 | pub const IPV4_BEET_PHMAXLEN: u32 = 8; | |
756 | pub const IPV6_FL_A_GET: u32 = 0; | |
757 | pub const IPV6_FL_A_PUT: u32 = 1; | |
758 | pub const IPV6_FL_A_RENEW: u32 = 2; | |
759 | pub const IPV6_FL_F_CREATE: u32 = 1; | |
760 | pub const IPV6_FL_F_EXCL: u32 = 2; | |
761 | pub const IPV6_FL_F_REFLECT: u32 = 4; | |
762 | pub const IPV6_FL_F_REMOTE: u32 = 8; | |
763 | pub const IPV6_FL_S_NONE: u32 = 0; | |
764 | pub const IPV6_FL_S_EXCL: u32 = 1; | |
765 | pub const IPV6_FL_S_PROCESS: u32 = 2; | |
766 | pub const IPV6_FL_S_USER: u32 = 3; | |
767 | pub const IPV6_FL_S_ANY: u32 = 255; | |
768 | pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; | |
769 | pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; | |
770 | pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; | |
771 | pub const IPV6_PRIORITY_FILLER: u32 = 256; | |
772 | pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; | |
773 | pub const IPV6_PRIORITY_RESERVED1: u32 = 768; | |
774 | pub const IPV6_PRIORITY_BULK: u32 = 1024; | |
775 | pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; | |
776 | pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; | |
777 | pub const IPV6_PRIORITY_CONTROL: u32 = 1792; | |
778 | pub const IPV6_PRIORITY_8: u32 = 2048; | |
779 | pub const IPV6_PRIORITY_9: u32 = 2304; | |
780 | pub const IPV6_PRIORITY_10: u32 = 2560; | |
781 | pub const IPV6_PRIORITY_11: u32 = 2816; | |
782 | pub const IPV6_PRIORITY_12: u32 = 3072; | |
783 | pub const IPV6_PRIORITY_13: u32 = 3328; | |
784 | pub const IPV6_PRIORITY_14: u32 = 3584; | |
785 | pub const IPV6_PRIORITY_15: u32 = 3840; | |
786 | pub const IPPROTO_HOPOPTS: u32 = 0; | |
787 | pub const IPPROTO_ROUTING: u32 = 43; | |
788 | pub const IPPROTO_FRAGMENT: u32 = 44; | |
789 | pub const IPPROTO_ICMPV6: u32 = 58; | |
790 | pub const IPPROTO_NONE: u32 = 59; | |
791 | pub const IPPROTO_DSTOPTS: u32 = 60; | |
792 | pub const IPPROTO_MH: u32 = 135; | |
793 | pub const IPV6_TLV_PAD1: u32 = 0; | |
794 | pub const IPV6_TLV_PADN: u32 = 1; | |
795 | pub const IPV6_TLV_ROUTERALERT: u32 = 5; | |
796 | pub const IPV6_TLV_CALIPSO: u32 = 7; | |
797 | pub const IPV6_TLV_IOAM: u32 = 49; | |
798 | pub const IPV6_TLV_JUMBO: u32 = 194; | |
799 | pub const IPV6_TLV_HAO: u32 = 201; | |
800 | pub const IPV6_ADDRFORM: u32 = 1; | |
801 | pub const IPV6_2292PKTINFO: u32 = 2; | |
802 | pub const IPV6_2292HOPOPTS: u32 = 3; | |
803 | pub const IPV6_2292DSTOPTS: u32 = 4; | |
804 | pub const IPV6_2292RTHDR: u32 = 5; | |
805 | pub const IPV6_2292PKTOPTIONS: u32 = 6; | |
806 | pub const IPV6_CHECKSUM: u32 = 7; | |
807 | pub const IPV6_2292HOPLIMIT: u32 = 8; | |
808 | pub const IPV6_NEXTHOP: u32 = 9; | |
809 | pub const IPV6_AUTHHDR: u32 = 10; | |
810 | pub const IPV6_FLOWINFO: u32 = 11; | |
811 | pub const IPV6_UNICAST_HOPS: u32 = 16; | |
812 | pub const IPV6_MULTICAST_IF: u32 = 17; | |
813 | pub const IPV6_MULTICAST_HOPS: u32 = 18; | |
814 | pub const IPV6_MULTICAST_LOOP: u32 = 19; | |
815 | pub const IPV6_ADD_MEMBERSHIP: u32 = 20; | |
816 | pub const IPV6_DROP_MEMBERSHIP: u32 = 21; | |
817 | pub const IPV6_ROUTER_ALERT: u32 = 22; | |
818 | pub const IPV6_MTU_DISCOVER: u32 = 23; | |
819 | pub const IPV6_MTU: u32 = 24; | |
820 | pub const IPV6_RECVERR: u32 = 25; | |
821 | pub const IPV6_V6ONLY: u32 = 26; | |
822 | pub const IPV6_JOIN_ANYCAST: u32 = 27; | |
823 | pub const IPV6_LEAVE_ANYCAST: u32 = 28; | |
824 | pub const IPV6_MULTICAST_ALL: u32 = 29; | |
825 | pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; | |
826 | pub const IPV6_RECVERR_RFC4884: u32 = 31; | |
827 | pub const IPV6_PMTUDISC_DONT: u32 = 0; | |
828 | pub const IPV6_PMTUDISC_WANT: u32 = 1; | |
829 | pub const IPV6_PMTUDISC_DO: u32 = 2; | |
830 | pub const IPV6_PMTUDISC_PROBE: u32 = 3; | |
831 | pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; | |
832 | pub const IPV6_PMTUDISC_OMIT: u32 = 5; | |
833 | pub const IPV6_FLOWLABEL_MGR: u32 = 32; | |
834 | pub const IPV6_FLOWINFO_SEND: u32 = 33; | |
835 | pub const IPV6_IPSEC_POLICY: u32 = 34; | |
836 | pub const IPV6_XFRM_POLICY: u32 = 35; | |
837 | pub const IPV6_HDRINCL: u32 = 36; | |
838 | pub const IPV6_RECVPKTINFO: u32 = 49; | |
839 | pub const IPV6_PKTINFO: u32 = 50; | |
840 | pub const IPV6_RECVHOPLIMIT: u32 = 51; | |
841 | pub const IPV6_HOPLIMIT: u32 = 52; | |
842 | pub const IPV6_RECVHOPOPTS: u32 = 53; | |
843 | pub const IPV6_HOPOPTS: u32 = 54; | |
844 | pub const IPV6_RTHDRDSTOPTS: u32 = 55; | |
845 | pub const IPV6_RECVRTHDR: u32 = 56; | |
846 | pub const IPV6_RTHDR: u32 = 57; | |
847 | pub const IPV6_RECVDSTOPTS: u32 = 58; | |
848 | pub const IPV6_DSTOPTS: u32 = 59; | |
849 | pub const IPV6_RECVPATHMTU: u32 = 60; | |
850 | pub const IPV6_PATHMTU: u32 = 61; | |
851 | pub const IPV6_DONTFRAG: u32 = 62; | |
852 | pub const IPV6_RECVTCLASS: u32 = 66; | |
853 | pub const IPV6_TCLASS: u32 = 67; | |
854 | pub const IPV6_AUTOFLOWLABEL: u32 = 70; | |
855 | pub const IPV6_ADDR_PREFERENCES: u32 = 72; | |
856 | pub const IPV6_PREFER_SRC_TMP: u32 = 1; | |
857 | pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; | |
858 | pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; | |
859 | pub const IPV6_PREFER_SRC_COA: u32 = 4; | |
860 | pub const IPV6_PREFER_SRC_HOME: u32 = 1024; | |
861 | pub const IPV6_PREFER_SRC_CGA: u32 = 8; | |
862 | pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; | |
863 | pub const IPV6_MINHOPCOUNT: u32 = 73; | |
864 | pub const IPV6_ORIGDSTADDR: u32 = 74; | |
865 | pub const IPV6_RECVORIGDSTADDR: u32 = 74; | |
866 | pub const IPV6_TRANSPARENT: u32 = 75; | |
867 | pub const IPV6_UNICAST_IF: u32 = 76; | |
868 | pub const IPV6_RECVFRAGSIZE: u32 = 77; | |
869 | pub const IPV6_FREEBIND: u32 = 78; | |
870 | pub const IPV6_MIN_MTU: u32 = 1280; | |
871 | pub const IPV6_SRCRT_STRICT: u32 = 1; | |
872 | pub const IPV6_SRCRT_TYPE_0: u32 = 0; | |
873 | pub const IPV6_SRCRT_TYPE_2: u32 = 2; | |
874 | pub const IPV6_SRCRT_TYPE_3: u32 = 3; | |
875 | pub const IPV6_SRCRT_TYPE_4: u32 = 4; | |
876 | pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; | |
877 | pub const ADFS_SUPER_MAGIC: u32 = 44533; | |
878 | pub const AFFS_SUPER_MAGIC: u32 = 44543; | |
879 | pub const AFS_SUPER_MAGIC: u32 = 1397113167; | |
880 | pub const AUTOFS_SUPER_MAGIC: u32 = 391; | |
881 | pub const CEPH_SUPER_MAGIC: u32 = 12805120; | |
882 | pub const CODA_SUPER_MAGIC: u32 = 1937076805; | |
883 | pub const CRAMFS_MAGIC: u32 = 684539205; | |
884 | pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; | |
885 | pub const DEBUGFS_MAGIC: u32 = 1684170528; | |
886 | pub const SECURITYFS_MAGIC: u32 = 1935894131; | |
887 | pub const SELINUX_MAGIC: u32 = 4185718668; | |
888 | pub const SMACK_MAGIC: u32 = 1128357203; | |
889 | pub const RAMFS_MAGIC: u32 = 2240043254; | |
890 | pub const TMPFS_MAGIC: u32 = 16914836; | |
891 | pub const HUGETLBFS_MAGIC: u32 = 2508478710; | |
892 | pub const SQUASHFS_MAGIC: u32 = 1936814952; | |
893 | pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; | |
894 | pub const EFS_SUPER_MAGIC: u32 = 4278867; | |
895 | pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; | |
896 | pub const EXT2_SUPER_MAGIC: u32 = 61267; | |
897 | pub const EXT3_SUPER_MAGIC: u32 = 61267; | |
898 | pub const XENFS_SUPER_MAGIC: u32 = 2881100148; | |
899 | pub const EXT4_SUPER_MAGIC: u32 = 61267; | |
900 | pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; | |
901 | pub const NILFS_SUPER_MAGIC: u32 = 13364; | |
902 | pub const F2FS_SUPER_MAGIC: u32 = 4076150800; | |
903 | pub const HPFS_SUPER_MAGIC: u32 = 4187351113; | |
904 | pub const ISOFS_SUPER_MAGIC: u32 = 38496; | |
905 | pub const JFFS2_SUPER_MAGIC: u32 = 29366; | |
906 | pub const XFS_SUPER_MAGIC: u32 = 1481003842; | |
907 | pub const PSTOREFS_MAGIC: u32 = 1634035564; | |
908 | pub const EFIVARFS_MAGIC: u32 = 3730735588; | |
909 | pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; | |
910 | pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; | |
911 | pub const FUSE_SUPER_MAGIC: u32 = 1702057286; | |
912 | pub const MINIX_SUPER_MAGIC: u32 = 4991; | |
913 | pub const MINIX_SUPER_MAGIC2: u32 = 5007; | |
914 | pub const MINIX2_SUPER_MAGIC: u32 = 9320; | |
915 | pub const MINIX2_SUPER_MAGIC2: u32 = 9336; | |
916 | pub const MINIX3_SUPER_MAGIC: u32 = 19802; | |
917 | pub const MSDOS_SUPER_MAGIC: u32 = 19780; | |
918 | pub const EXFAT_SUPER_MAGIC: u32 = 538032816; | |
919 | pub const NCP_SUPER_MAGIC: u32 = 22092; | |
920 | pub const NFS_SUPER_MAGIC: u32 = 26985; | |
921 | pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; | |
922 | pub const OPENPROM_SUPER_MAGIC: u32 = 40865; | |
923 | pub const QNX4_SUPER_MAGIC: u32 = 47; | |
924 | pub const QNX6_SUPER_MAGIC: u32 = 1746473250; | |
925 | pub const AFS_FS_MAGIC: u32 = 1799439955; | |
926 | pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; | |
927 | pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9usize] = b"ReIsErFs\0"; | |
928 | pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10usize] = b"ReIsEr2Fs\0"; | |
929 | pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10usize] = b"ReIsEr3Fs\0"; | |
930 | pub const SMB_SUPER_MAGIC: u32 = 20859; | |
931 | pub const CIFS_SUPER_MAGIC: u32 = 4283649346; | |
932 | pub const SMB2_SUPER_MAGIC: u32 = 4266872130; | |
933 | pub const CGROUP_SUPER_MAGIC: u32 = 2613483; | |
934 | pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; | |
935 | pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; | |
936 | pub const STACK_END_MAGIC: u32 = 1470918301; | |
937 | pub const TRACEFS_MAGIC: u32 = 1953653091; | |
938 | pub const V9FS_MAGIC: u32 = 16914839; | |
939 | pub const BDEVFS_MAGIC: u32 = 1650746742; | |
940 | pub const DAXFS_MAGIC: u32 = 1684300152; | |
941 | pub const BINFMTFS_MAGIC: u32 = 1112100429; | |
942 | pub const DEVPTS_SUPER_MAGIC: u32 = 7377; | |
943 | pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; | |
944 | pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; | |
945 | pub const PIPEFS_MAGIC: u32 = 1346981957; | |
946 | pub const PROC_SUPER_MAGIC: u32 = 40864; | |
947 | pub const SOCKFS_MAGIC: u32 = 1397703499; | |
948 | pub const SYSFS_MAGIC: u32 = 1650812274; | |
949 | pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; | |
950 | pub const MTD_INODE_FS_MAGIC: u32 = 288389204; | |
951 | pub const ANON_INODE_FS_MAGIC: u32 = 151263540; | |
952 | pub const BTRFS_TEST_MAGIC: u32 = 1936880249; | |
953 | pub const NSFS_MAGIC: u32 = 1853056627; | |
954 | pub const BPF_FS_MAGIC: u32 = 3405662737; | |
955 | pub const AAFS_MAGIC: u32 = 1513908720; | |
956 | pub const ZONEFS_MAGIC: u32 = 1515144787; | |
957 | pub const UDF_SUPER_MAGIC: u32 = 352400198; | |
958 | pub const BALLOON_KVM_MAGIC: u32 = 325456742; | |
959 | pub const ZSMALLOC_MAGIC: u32 = 1479104553; | |
960 | pub const DMA_BUF_MAGIC: u32 = 1145913666; | |
961 | pub const DEVMEM_MAGIC: u32 = 1162691661; | |
962 | pub const Z3FOLD_MAGIC: u32 = 51; | |
963 | pub const PPC_CMM_MAGIC: u32 = 3344373136; | |
964 | pub const SECRETMEM_MAGIC: u32 = 1397048141; | |
965 | pub const PROT_READ: u32 = 1; | |
966 | pub const PROT_WRITE: u32 = 2; | |
967 | pub const PROT_EXEC: u32 = 4; | |
968 | pub const PROT_SEM: u32 = 8; | |
969 | pub const PROT_NONE: u32 = 0; | |
970 | pub const PROT_GROWSDOWN: u32 = 16777216; | |
971 | pub const PROT_GROWSUP: u32 = 33554432; | |
972 | pub const MAP_TYPE: u32 = 15; | |
973 | pub const MAP_FIXED: u32 = 16; | |
974 | pub const MAP_ANONYMOUS: u32 = 32; | |
975 | pub const MAP_POPULATE: u32 = 32768; | |
976 | pub const MAP_NONBLOCK: u32 = 65536; | |
977 | pub const MAP_STACK: u32 = 131072; | |
978 | pub const MAP_HUGETLB: u32 = 262144; | |
979 | pub const MAP_SYNC: u32 = 524288; | |
980 | pub const MAP_FIXED_NOREPLACE: u32 = 1048576; | |
981 | pub const MAP_UNINITIALIZED: u32 = 67108864; | |
982 | pub const MLOCK_ONFAULT: u32 = 1; | |
983 | pub const MS_ASYNC: u32 = 1; | |
984 | pub const MS_INVALIDATE: u32 = 2; | |
985 | pub const MS_SYNC: u32 = 4; | |
986 | pub const MADV_NORMAL: u32 = 0; | |
987 | pub const MADV_RANDOM: u32 = 1; | |
988 | pub const MADV_SEQUENTIAL: u32 = 2; | |
989 | pub const MADV_WILLNEED: u32 = 3; | |
990 | pub const MADV_DONTNEED: u32 = 4; | |
991 | pub const MADV_FREE: u32 = 8; | |
992 | pub const MADV_REMOVE: u32 = 9; | |
993 | pub const MADV_DONTFORK: u32 = 10; | |
994 | pub const MADV_DOFORK: u32 = 11; | |
995 | pub const MADV_HWPOISON: u32 = 100; | |
996 | pub const MADV_SOFT_OFFLINE: u32 = 101; | |
997 | pub const MADV_MERGEABLE: u32 = 12; | |
998 | pub const MADV_UNMERGEABLE: u32 = 13; | |
999 | pub const MADV_HUGEPAGE: u32 = 14; | |
1000 | pub const MADV_NOHUGEPAGE: u32 = 15; | |
1001 | pub const MADV_DONTDUMP: u32 = 16; | |
1002 | pub const MADV_DODUMP: u32 = 17; | |
1003 | pub const MADV_WIPEONFORK: u32 = 18; | |
1004 | pub const MADV_KEEPONFORK: u32 = 19; | |
1005 | pub const MADV_COLD: u32 = 20; | |
1006 | pub const MADV_PAGEOUT: u32 = 21; | |
1007 | pub const MADV_POPULATE_READ: u32 = 22; | |
1008 | pub const MADV_POPULATE_WRITE: u32 = 23; | |
1009 | pub const MAP_FILE: u32 = 0; | |
1010 | pub const PKEY_DISABLE_ACCESS: u32 = 1; | |
1011 | pub const PKEY_DISABLE_WRITE: u32 = 2; | |
1012 | pub const PKEY_ACCESS_MASK: u32 = 3; | |
1013 | pub const MAP_GROWSDOWN: u32 = 256; | |
1014 | pub const MAP_DENYWRITE: u32 = 2048; | |
1015 | pub const MAP_EXECUTABLE: u32 = 4096; | |
1016 | pub const MAP_LOCKED: u32 = 8192; | |
1017 | pub const MAP_NORESERVE: u32 = 16384; | |
1018 | pub const MCL_CURRENT: u32 = 1; | |
1019 | pub const MCL_FUTURE: u32 = 2; | |
1020 | pub const MCL_ONFAULT: u32 = 4; | |
1021 | pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; | |
1022 | pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; | |
1023 | pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; | |
1024 | pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; | |
1025 | pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; | |
1026 | pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; | |
1027 | pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; | |
1028 | pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; | |
1029 | pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; | |
1030 | pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; | |
1031 | pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; | |
1032 | pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; | |
1033 | pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; | |
1034 | pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; | |
1035 | pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; | |
1036 | pub const MREMAP_MAYMOVE: u32 = 1; | |
1037 | pub const MREMAP_FIXED: u32 = 2; | |
1038 | pub const MREMAP_DONTUNMAP: u32 = 4; | |
1039 | pub const OVERCOMMIT_GUESS: u32 = 0; | |
1040 | pub const OVERCOMMIT_ALWAYS: u32 = 1; | |
1041 | pub const OVERCOMMIT_NEVER: u32 = 2; | |
1042 | pub const MAP_SHARED: u32 = 1; | |
1043 | pub const MAP_PRIVATE: u32 = 2; | |
1044 | pub const MAP_SHARED_VALIDATE: u32 = 3; | |
1045 | pub const MAP_HUGE_SHIFT: u32 = 26; | |
1046 | pub const MAP_HUGE_MASK: u32 = 63; | |
1047 | pub const MAP_HUGE_16KB: u32 = 939524096; | |
1048 | pub const MAP_HUGE_64KB: u32 = 1073741824; | |
1049 | pub const MAP_HUGE_512KB: u32 = 1275068416; | |
1050 | pub const MAP_HUGE_1MB: u32 = 1342177280; | |
1051 | pub const MAP_HUGE_2MB: u32 = 1409286144; | |
1052 | pub const MAP_HUGE_8MB: u32 = 1543503872; | |
1053 | pub const MAP_HUGE_16MB: u32 = 1610612736; | |
1054 | pub const MAP_HUGE_32MB: u32 = 1677721600; | |
1055 | pub const MAP_HUGE_256MB: u32 = 1879048192; | |
1056 | pub const MAP_HUGE_512MB: u32 = 1946157056; | |
1057 | pub const MAP_HUGE_1GB: u32 = 2013265920; | |
1058 | pub const MAP_HUGE_2GB: u32 = 2080374784; | |
1059 | pub const MAP_HUGE_16GB: u32 = 2281701376; | |
1060 | pub const SIOCGSTAMP_OLD: u32 = 35078; | |
1061 | pub const SIOCGSTAMPNS_OLD: u32 = 35079; | |
1062 | pub const SOL_SOCKET: u32 = 1; | |
1063 | pub const SO_DEBUG: u32 = 1; | |
1064 | pub const SO_REUSEADDR: u32 = 2; | |
1065 | pub const SO_TYPE: u32 = 3; | |
1066 | pub const SO_ERROR: u32 = 4; | |
1067 | pub const SO_DONTROUTE: u32 = 5; | |
1068 | pub const SO_BROADCAST: u32 = 6; | |
1069 | pub const SO_SNDBUF: u32 = 7; | |
1070 | pub const SO_RCVBUF: u32 = 8; | |
1071 | pub const SO_SNDBUFFORCE: u32 = 32; | |
1072 | pub const SO_RCVBUFFORCE: u32 = 33; | |
1073 | pub const SO_KEEPALIVE: u32 = 9; | |
1074 | pub const SO_OOBINLINE: u32 = 10; | |
1075 | pub const SO_NO_CHECK: u32 = 11; | |
1076 | pub const SO_PRIORITY: u32 = 12; | |
1077 | pub const SO_LINGER: u32 = 13; | |
1078 | pub const SO_BSDCOMPAT: u32 = 14; | |
1079 | pub const SO_REUSEPORT: u32 = 15; | |
1080 | pub const SO_PASSCRED: u32 = 16; | |
1081 | pub const SO_PEERCRED: u32 = 17; | |
1082 | pub const SO_RCVLOWAT: u32 = 18; | |
1083 | pub const SO_SNDLOWAT: u32 = 19; | |
1084 | pub const SO_RCVTIMEO_OLD: u32 = 20; | |
1085 | pub const SO_SNDTIMEO_OLD: u32 = 21; | |
1086 | pub const SO_SECURITY_AUTHENTICATION: u32 = 22; | |
1087 | pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; | |
1088 | pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; | |
1089 | pub const SO_BINDTODEVICE: u32 = 25; | |
1090 | pub const SO_ATTACH_FILTER: u32 = 26; | |
1091 | pub const SO_DETACH_FILTER: u32 = 27; | |
1092 | pub const SO_GET_FILTER: u32 = 26; | |
1093 | pub const SO_PEERNAME: u32 = 28; | |
1094 | pub const SO_ACCEPTCONN: u32 = 30; | |
1095 | pub const SO_PEERSEC: u32 = 31; | |
1096 | pub const SO_PASSSEC: u32 = 34; | |
1097 | pub const SO_MARK: u32 = 36; | |
1098 | pub const SO_PROTOCOL: u32 = 38; | |
1099 | pub const SO_DOMAIN: u32 = 39; | |
1100 | pub const SO_RXQ_OVFL: u32 = 40; | |
1101 | pub const SO_WIFI_STATUS: u32 = 41; | |
1102 | pub const SCM_WIFI_STATUS: u32 = 41; | |
1103 | pub const SO_PEEK_OFF: u32 = 42; | |
1104 | pub const SO_NOFCS: u32 = 43; | |
1105 | pub const SO_LOCK_FILTER: u32 = 44; | |
1106 | pub const SO_SELECT_ERR_QUEUE: u32 = 45; | |
1107 | pub const SO_BUSY_POLL: u32 = 46; | |
1108 | pub const SO_MAX_PACING_RATE: u32 = 47; | |
1109 | pub const SO_BPF_EXTENSIONS: u32 = 48; | |
1110 | pub const SO_INCOMING_CPU: u32 = 49; | |
1111 | pub const SO_ATTACH_BPF: u32 = 50; | |
1112 | pub const SO_DETACH_BPF: u32 = 27; | |
1113 | pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; | |
1114 | pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; | |
1115 | pub const SO_CNX_ADVICE: u32 = 53; | |
1116 | pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; | |
1117 | pub const SO_MEMINFO: u32 = 55; | |
1118 | pub const SO_INCOMING_NAPI_ID: u32 = 56; | |
1119 | pub const SO_COOKIE: u32 = 57; | |
1120 | pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; | |
1121 | pub const SO_PEERGROUPS: u32 = 59; | |
1122 | pub const SO_ZEROCOPY: u32 = 60; | |
1123 | pub const SO_TXTIME: u32 = 61; | |
1124 | pub const SCM_TXTIME: u32 = 61; | |
1125 | pub const SO_BINDTOIFINDEX: u32 = 62; | |
1126 | pub const SO_TIMESTAMP_OLD: u32 = 29; | |
1127 | pub const SO_TIMESTAMPNS_OLD: u32 = 35; | |
1128 | pub const SO_TIMESTAMPING_OLD: u32 = 37; | |
1129 | pub const SO_TIMESTAMP_NEW: u32 = 63; | |
1130 | pub const SO_TIMESTAMPNS_NEW: u32 = 64; | |
1131 | pub const SO_TIMESTAMPING_NEW: u32 = 65; | |
1132 | pub const SO_RCVTIMEO_NEW: u32 = 66; | |
1133 | pub const SO_SNDTIMEO_NEW: u32 = 67; | |
1134 | pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; | |
1135 | pub const SO_PREFER_BUSY_POLL: u32 = 69; | |
1136 | pub const SO_BUSY_POLL_BUDGET: u32 = 70; | |
1137 | pub const SO_NETNS_COOKIE: u32 = 71; | |
1138 | pub const SO_BUF_LOCK: u32 = 72; | |
1139 | pub const SO_RESERVE_MEM: u32 = 73; | |
1140 | pub const SYS_SOCKET: u32 = 1; | |
1141 | pub const SYS_BIND: u32 = 2; | |
1142 | pub const SYS_CONNECT: u32 = 3; | |
1143 | pub const SYS_LISTEN: u32 = 4; | |
1144 | pub const SYS_ACCEPT: u32 = 5; | |
1145 | pub const SYS_GETSOCKNAME: u32 = 6; | |
1146 | pub const SYS_GETPEERNAME: u32 = 7; | |
1147 | pub const SYS_SOCKETPAIR: u32 = 8; | |
1148 | pub const SYS_SEND: u32 = 9; | |
1149 | pub const SYS_RECV: u32 = 10; | |
1150 | pub const SYS_SENDTO: u32 = 11; | |
1151 | pub const SYS_RECVFROM: u32 = 12; | |
1152 | pub const SYS_SHUTDOWN: u32 = 13; | |
1153 | pub const SYS_SETSOCKOPT: u32 = 14; | |
1154 | pub const SYS_GETSOCKOPT: u32 = 15; | |
1155 | pub const SYS_SENDMSG: u32 = 16; | |
1156 | pub const SYS_RECVMSG: u32 = 17; | |
1157 | pub const SYS_ACCEPT4: u32 = 18; | |
1158 | pub const SYS_RECVMMSG: u32 = 19; | |
1159 | pub const SYS_SENDMMSG: u32 = 20; | |
1160 | pub const __SO_ACCEPTCON: u32 = 65536; | |
1161 | pub const POLLIN: u32 = 1; | |
1162 | pub const POLLPRI: u32 = 2; | |
1163 | pub const POLLOUT: u32 = 4; | |
1164 | pub const POLLERR: u32 = 8; | |
1165 | pub const POLLHUP: u32 = 16; | |
1166 | pub const POLLNVAL: u32 = 32; | |
1167 | pub const POLLRDNORM: u32 = 64; | |
1168 | pub const POLLRDBAND: u32 = 128; | |
1169 | pub const POLLWRNORM: u32 = 256; | |
1170 | pub const POLLWRBAND: u32 = 512; | |
1171 | pub const POLLMSG: u32 = 1024; | |
1172 | pub const POLLREMOVE: u32 = 4096; | |
1173 | pub const POLLRDHUP: u32 = 8192; | |
1174 | pub const PR_SET_PDEATHSIG: u32 = 1; | |
1175 | pub const PR_GET_PDEATHSIG: u32 = 2; | |
1176 | pub const PR_GET_DUMPABLE: u32 = 3; | |
1177 | pub const PR_SET_DUMPABLE: u32 = 4; | |
1178 | pub const PR_GET_UNALIGN: u32 = 5; | |
1179 | pub const PR_SET_UNALIGN: u32 = 6; | |
1180 | pub const PR_UNALIGN_NOPRINT: u32 = 1; | |
1181 | pub const PR_UNALIGN_SIGBUS: u32 = 2; | |
1182 | pub const PR_GET_KEEPCAPS: u32 = 7; | |
1183 | pub const PR_SET_KEEPCAPS: u32 = 8; | |
1184 | pub const PR_GET_FPEMU: u32 = 9; | |
1185 | pub const PR_SET_FPEMU: u32 = 10; | |
1186 | pub const PR_FPEMU_NOPRINT: u32 = 1; | |
1187 | pub const PR_FPEMU_SIGFPE: u32 = 2; | |
1188 | pub const PR_GET_FPEXC: u32 = 11; | |
1189 | pub const PR_SET_FPEXC: u32 = 12; | |
1190 | pub const PR_FP_EXC_SW_ENABLE: u32 = 128; | |
1191 | pub const PR_FP_EXC_DIV: u32 = 65536; | |
1192 | pub const PR_FP_EXC_OVF: u32 = 131072; | |
1193 | pub const PR_FP_EXC_UND: u32 = 262144; | |
1194 | pub const PR_FP_EXC_RES: u32 = 524288; | |
1195 | pub const PR_FP_EXC_INV: u32 = 1048576; | |
1196 | pub const PR_FP_EXC_DISABLED: u32 = 0; | |
1197 | pub const PR_FP_EXC_NONRECOV: u32 = 1; | |
1198 | pub const PR_FP_EXC_ASYNC: u32 = 2; | |
1199 | pub const PR_FP_EXC_PRECISE: u32 = 3; | |
1200 | pub const PR_GET_TIMING: u32 = 13; | |
1201 | pub const PR_SET_TIMING: u32 = 14; | |
1202 | pub const PR_TIMING_STATISTICAL: u32 = 0; | |
1203 | pub const PR_TIMING_TIMESTAMP: u32 = 1; | |
1204 | pub const PR_SET_NAME: u32 = 15; | |
1205 | pub const PR_GET_NAME: u32 = 16; | |
1206 | pub const PR_GET_ENDIAN: u32 = 19; | |
1207 | pub const PR_SET_ENDIAN: u32 = 20; | |
1208 | pub const PR_ENDIAN_BIG: u32 = 0; | |
1209 | pub const PR_ENDIAN_LITTLE: u32 = 1; | |
1210 | pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; | |
1211 | pub const PR_GET_SECCOMP: u32 = 21; | |
1212 | pub const PR_SET_SECCOMP: u32 = 22; | |
1213 | pub const PR_CAPBSET_READ: u32 = 23; | |
1214 | pub const PR_CAPBSET_DROP: u32 = 24; | |
1215 | pub const PR_GET_TSC: u32 = 25; | |
1216 | pub const PR_SET_TSC: u32 = 26; | |
1217 | pub const PR_TSC_ENABLE: u32 = 1; | |
1218 | pub const PR_TSC_SIGSEGV: u32 = 2; | |
1219 | pub const PR_GET_SECUREBITS: u32 = 27; | |
1220 | pub const PR_SET_SECUREBITS: u32 = 28; | |
1221 | pub const PR_SET_TIMERSLACK: u32 = 29; | |
1222 | pub const PR_GET_TIMERSLACK: u32 = 30; | |
1223 | pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; | |
1224 | pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; | |
1225 | pub const PR_MCE_KILL: u32 = 33; | |
1226 | pub const PR_MCE_KILL_CLEAR: u32 = 0; | |
1227 | pub const PR_MCE_KILL_SET: u32 = 1; | |
1228 | pub const PR_MCE_KILL_LATE: u32 = 0; | |
1229 | pub const PR_MCE_KILL_EARLY: u32 = 1; | |
1230 | pub const PR_MCE_KILL_DEFAULT: u32 = 2; | |
1231 | pub const PR_MCE_KILL_GET: u32 = 34; | |
1232 | pub const PR_SET_MM: u32 = 35; | |
1233 | pub const PR_SET_MM_START_CODE: u32 = 1; | |
1234 | pub const PR_SET_MM_END_CODE: u32 = 2; | |
1235 | pub const PR_SET_MM_START_DATA: u32 = 3; | |
1236 | pub const PR_SET_MM_END_DATA: u32 = 4; | |
1237 | pub const PR_SET_MM_START_STACK: u32 = 5; | |
1238 | pub const PR_SET_MM_START_BRK: u32 = 6; | |
1239 | pub const PR_SET_MM_BRK: u32 = 7; | |
1240 | pub const PR_SET_MM_ARG_START: u32 = 8; | |
1241 | pub const PR_SET_MM_ARG_END: u32 = 9; | |
1242 | pub const PR_SET_MM_ENV_START: u32 = 10; | |
1243 | pub const PR_SET_MM_ENV_END: u32 = 11; | |
1244 | pub const PR_SET_MM_AUXV: u32 = 12; | |
1245 | pub const PR_SET_MM_EXE_FILE: u32 = 13; | |
1246 | pub const PR_SET_MM_MAP: u32 = 14; | |
1247 | pub const PR_SET_MM_MAP_SIZE: u32 = 15; | |
1248 | pub const PR_SET_PTRACER: u32 = 1499557217; | |
1249 | pub const PR_SET_CHILD_SUBREAPER: u32 = 36; | |
1250 | pub const PR_GET_CHILD_SUBREAPER: u32 = 37; | |
1251 | pub const PR_SET_NO_NEW_PRIVS: u32 = 38; | |
1252 | pub const PR_GET_NO_NEW_PRIVS: u32 = 39; | |
1253 | pub const PR_GET_TID_ADDRESS: u32 = 40; | |
1254 | pub const PR_SET_THP_DISABLE: u32 = 41; | |
1255 | pub const PR_GET_THP_DISABLE: u32 = 42; | |
1256 | pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; | |
1257 | pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; | |
1258 | pub const PR_SET_FP_MODE: u32 = 45; | |
1259 | pub const PR_GET_FP_MODE: u32 = 46; | |
1260 | pub const PR_FP_MODE_FR: u32 = 1; | |
1261 | pub const PR_FP_MODE_FRE: u32 = 2; | |
1262 | pub const PR_CAP_AMBIENT: u32 = 47; | |
1263 | pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; | |
1264 | pub const PR_CAP_AMBIENT_RAISE: u32 = 2; | |
1265 | pub const PR_CAP_AMBIENT_LOWER: u32 = 3; | |
1266 | pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; | |
1267 | pub const PR_SVE_SET_VL: u32 = 50; | |
1268 | pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; | |
1269 | pub const PR_SVE_GET_VL: u32 = 51; | |
1270 | pub const PR_SVE_VL_LEN_MASK: u32 = 65535; | |
1271 | pub const PR_SVE_VL_INHERIT: u32 = 131072; | |
1272 | pub const PR_GET_SPECULATION_CTRL: u32 = 52; | |
1273 | pub const PR_SET_SPECULATION_CTRL: u32 = 53; | |
1274 | pub const PR_SPEC_STORE_BYPASS: u32 = 0; | |
1275 | pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; | |
1276 | pub const PR_SPEC_L1D_FLUSH: u32 = 2; | |
1277 | pub const PR_SPEC_NOT_AFFECTED: u32 = 0; | |
1278 | pub const PR_SPEC_PRCTL: u32 = 1; | |
1279 | pub const PR_SPEC_ENABLE: u32 = 2; | |
1280 | pub const PR_SPEC_DISABLE: u32 = 4; | |
1281 | pub const PR_SPEC_FORCE_DISABLE: u32 = 8; | |
1282 | pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; | |
1283 | pub const PR_PAC_RESET_KEYS: u32 = 54; | |
1284 | pub const PR_PAC_APIAKEY: u32 = 1; | |
1285 | pub const PR_PAC_APIBKEY: u32 = 2; | |
1286 | pub const PR_PAC_APDAKEY: u32 = 4; | |
1287 | pub const PR_PAC_APDBKEY: u32 = 8; | |
1288 | pub const PR_PAC_APGAKEY: u32 = 16; | |
1289 | pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; | |
1290 | pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; | |
1291 | pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; | |
1292 | pub const PR_MTE_TCF_NONE: u32 = 0; | |
1293 | pub const PR_MTE_TCF_SYNC: u32 = 2; | |
1294 | pub const PR_MTE_TCF_ASYNC: u32 = 4; | |
1295 | pub const PR_MTE_TCF_MASK: u32 = 6; | |
1296 | pub const PR_MTE_TAG_SHIFT: u32 = 3; | |
1297 | pub const PR_MTE_TAG_MASK: u32 = 524280; | |
1298 | pub const PR_MTE_TCF_SHIFT: u32 = 1; | |
1299 | pub const PR_SET_IO_FLUSHER: u32 = 57; | |
1300 | pub const PR_GET_IO_FLUSHER: u32 = 58; | |
1301 | pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; | |
1302 | pub const PR_SYS_DISPATCH_OFF: u32 = 0; | |
1303 | pub const PR_SYS_DISPATCH_ON: u32 = 1; | |
1304 | pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; | |
1305 | pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; | |
1306 | pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; | |
1307 | pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; | |
1308 | pub const PR_SCHED_CORE: u32 = 62; | |
1309 | pub const PR_SCHED_CORE_GET: u32 = 0; | |
1310 | pub const PR_SCHED_CORE_CREATE: u32 = 1; | |
1311 | pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; | |
1312 | pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; | |
1313 | pub const PR_SCHED_CORE_MAX: u32 = 4; | |
1314 | pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; | |
1315 | pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; | |
1316 | pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; | |
1317 | pub const PR_SET_VMA: u32 = 1398164801; | |
1318 | pub const PR_SET_VMA_ANON_NAME: u32 = 0; | |
1319 | pub const GRND_NONBLOCK: u32 = 1; | |
1320 | pub const GRND_RANDOM: u32 = 2; | |
1321 | pub const GRND_INSECURE: u32 = 4; | |
1322 | pub const ITIMER_REAL: u32 = 0; | |
1323 | pub const ITIMER_VIRTUAL: u32 = 1; | |
1324 | pub const ITIMER_PROF: u32 = 2; | |
1325 | pub const CLOCK_REALTIME: u32 = 0; | |
1326 | pub const CLOCK_MONOTONIC: u32 = 1; | |
1327 | pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; | |
1328 | pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; | |
1329 | pub const CLOCK_MONOTONIC_RAW: u32 = 4; | |
1330 | pub const CLOCK_REALTIME_COARSE: u32 = 5; | |
1331 | pub const CLOCK_MONOTONIC_COARSE: u32 = 6; | |
1332 | pub const CLOCK_BOOTTIME: u32 = 7; | |
1333 | pub const CLOCK_REALTIME_ALARM: u32 = 8; | |
1334 | pub const CLOCK_BOOTTIME_ALARM: u32 = 9; | |
1335 | pub const CLOCK_SGI_CYCLE: u32 = 10; | |
1336 | pub const CLOCK_TAI: u32 = 11; | |
1337 | pub const MAX_CLOCKS: u32 = 16; | |
1338 | pub const CLOCKS_MASK: u32 = 1; | |
1339 | pub const CLOCKS_MONO: u32 = 1; | |
1340 | pub const TIMER_ABSTIME: u32 = 1; | |
1341 | pub const RUSAGE_SELF: u32 = 0; | |
1342 | pub const RUSAGE_CHILDREN: i32 = -1; | |
1343 | pub const RUSAGE_BOTH: i32 = -2; | |
1344 | pub const RUSAGE_THREAD: u32 = 1; | |
1345 | pub const RLIM64_INFINITY: i32 = -1; | |
1346 | pub const PRIO_MIN: i32 = -20; | |
1347 | pub const PRIO_MAX: u32 = 20; | |
1348 | pub const PRIO_PROCESS: u32 = 0; | |
1349 | pub const PRIO_PGRP: u32 = 1; | |
1350 | pub const PRIO_USER: u32 = 2; | |
1351 | pub const _STK_LIM: u32 = 8388608; | |
1352 | pub const MLOCK_LIMIT: u32 = 8388608; | |
1353 | pub const RLIMIT_CPU: u32 = 0; | |
1354 | pub const RLIMIT_FSIZE: u32 = 1; | |
1355 | pub const RLIMIT_DATA: u32 = 2; | |
1356 | pub const RLIMIT_STACK: u32 = 3; | |
1357 | pub const RLIMIT_CORE: u32 = 4; | |
1358 | pub const RLIMIT_RSS: u32 = 5; | |
1359 | pub const RLIMIT_NPROC: u32 = 6; | |
1360 | pub const RLIMIT_NOFILE: u32 = 7; | |
1361 | pub const RLIMIT_MEMLOCK: u32 = 8; | |
1362 | pub const RLIMIT_AS: u32 = 9; | |
1363 | pub const RLIMIT_LOCKS: u32 = 10; | |
1364 | pub const RLIMIT_SIGPENDING: u32 = 11; | |
1365 | pub const RLIMIT_MSGQUEUE: u32 = 12; | |
1366 | pub const RLIMIT_NICE: u32 = 13; | |
1367 | pub const RLIMIT_RTPRIO: u32 = 14; | |
1368 | pub const RLIMIT_RTTIME: u32 = 15; | |
1369 | pub const RLIM_NLIMITS: u32 = 16; | |
1370 | pub const RLIM_INFINITY: i32 = -1; | |
1371 | pub const CSIGNAL: u32 = 255; | |
1372 | pub const CLONE_VM: u32 = 256; | |
1373 | pub const CLONE_FS: u32 = 512; | |
1374 | pub const CLONE_FILES: u32 = 1024; | |
1375 | pub const CLONE_SIGHAND: u32 = 2048; | |
1376 | pub const CLONE_PIDFD: u32 = 4096; | |
1377 | pub const CLONE_PTRACE: u32 = 8192; | |
1378 | pub const CLONE_VFORK: u32 = 16384; | |
1379 | pub const CLONE_PARENT: u32 = 32768; | |
1380 | pub const CLONE_THREAD: u32 = 65536; | |
1381 | pub const CLONE_NEWNS: u32 = 131072; | |
1382 | pub const CLONE_SYSVSEM: u32 = 262144; | |
1383 | pub const CLONE_SETTLS: u32 = 524288; | |
1384 | pub const CLONE_PARENT_SETTID: u32 = 1048576; | |
1385 | pub const CLONE_CHILD_CLEARTID: u32 = 2097152; | |
1386 | pub const CLONE_DETACHED: u32 = 4194304; | |
1387 | pub const CLONE_UNTRACED: u32 = 8388608; | |
1388 | pub const CLONE_CHILD_SETTID: u32 = 16777216; | |
1389 | pub const CLONE_NEWCGROUP: u32 = 33554432; | |
1390 | pub const CLONE_NEWUTS: u32 = 67108864; | |
1391 | pub const CLONE_NEWIPC: u32 = 134217728; | |
1392 | pub const CLONE_NEWUSER: u32 = 268435456; | |
1393 | pub const CLONE_NEWPID: u32 = 536870912; | |
1394 | pub const CLONE_NEWNET: u32 = 1073741824; | |
1395 | pub const CLONE_IO: u32 = 2147483648; | |
1396 | pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; | |
1397 | pub const CLONE_INTO_CGROUP: u64 = 8589934592; | |
1398 | pub const CLONE_NEWTIME: u32 = 128; | |
1399 | pub const CLONE_ARGS_SIZE_VER0: u32 = 64; | |
1400 | pub const CLONE_ARGS_SIZE_VER1: u32 = 80; | |
1401 | pub const CLONE_ARGS_SIZE_VER2: u32 = 88; | |
1402 | pub const SCHED_NORMAL: u32 = 0; | |
1403 | pub const SCHED_FIFO: u32 = 1; | |
1404 | pub const SCHED_RR: u32 = 2; | |
1405 | pub const SCHED_BATCH: u32 = 3; | |
1406 | pub const SCHED_IDLE: u32 = 5; | |
1407 | pub const SCHED_DEADLINE: u32 = 6; | |
1408 | pub const SCHED_RESET_ON_FORK: u32 = 1073741824; | |
1409 | pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; | |
1410 | pub const SCHED_FLAG_RECLAIM: u32 = 2; | |
1411 | pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; | |
1412 | pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; | |
1413 | pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; | |
1414 | pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; | |
1415 | pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; | |
1416 | pub const SCHED_FLAG_KEEP_ALL: u32 = 24; | |
1417 | pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; | |
1418 | pub const SCHED_FLAG_ALL: u32 = 127; | |
1419 | pub const _NSIG: u32 = 64; | |
1420 | pub const SIGHUP: u32 = 1; | |
1421 | pub const SIGINT: u32 = 2; | |
1422 | pub const SIGQUIT: u32 = 3; | |
1423 | pub const SIGILL: u32 = 4; | |
1424 | pub const SIGTRAP: u32 = 5; | |
1425 | pub const SIGABRT: u32 = 6; | |
1426 | pub const SIGIOT: u32 = 6; | |
1427 | pub const SIGBUS: u32 = 7; | |
1428 | pub const SIGFPE: u32 = 8; | |
1429 | pub const SIGKILL: u32 = 9; | |
1430 | pub const SIGUSR1: u32 = 10; | |
1431 | pub const SIGSEGV: u32 = 11; | |
1432 | pub const SIGUSR2: u32 = 12; | |
1433 | pub const SIGPIPE: u32 = 13; | |
1434 | pub const SIGALRM: u32 = 14; | |
1435 | pub const SIGTERM: u32 = 15; | |
1436 | pub const SIGSTKFLT: u32 = 16; | |
1437 | pub const SIGCHLD: u32 = 17; | |
1438 | pub const SIGCONT: u32 = 18; | |
1439 | pub const SIGSTOP: u32 = 19; | |
1440 | pub const SIGTSTP: u32 = 20; | |
1441 | pub const SIGTTIN: u32 = 21; | |
1442 | pub const SIGTTOU: u32 = 22; | |
1443 | pub const SIGURG: u32 = 23; | |
1444 | pub const SIGXCPU: u32 = 24; | |
1445 | pub const SIGXFSZ: u32 = 25; | |
1446 | pub const SIGVTALRM: u32 = 26; | |
1447 | pub const SIGPROF: u32 = 27; | |
1448 | pub const SIGWINCH: u32 = 28; | |
1449 | pub const SIGIO: u32 = 29; | |
1450 | pub const SIGPOLL: u32 = 29; | |
1451 | pub const SIGPWR: u32 = 30; | |
1452 | pub const SIGSYS: u32 = 31; | |
1453 | pub const SIGUNUSED: u32 = 31; | |
1454 | pub const SIGRTMIN: u32 = 32; | |
1455 | pub const SIGRTMAX: u32 = 64; | |
1456 | pub const MINSIGSTKSZ: u32 = 2048; | |
1457 | pub const SIGSTKSZ: u32 = 8192; | |
1458 | pub const SA_NOCLDSTOP: u32 = 1; | |
1459 | pub const SA_NOCLDWAIT: u32 = 2; | |
1460 | pub const SA_SIGINFO: u32 = 4; | |
1461 | pub const SA_UNSUPPORTED: u32 = 1024; | |
1462 | pub const SA_EXPOSE_TAGBITS: u32 = 2048; | |
1463 | pub const SA_ONSTACK: u32 = 134217728; | |
1464 | pub const SA_RESTART: u32 = 268435456; | |
1465 | pub const SA_NODEFER: u32 = 1073741824; | |
1466 | pub const SA_RESETHAND: u32 = 2147483648; | |
1467 | pub const SA_NOMASK: u32 = 1073741824; | |
1468 | pub const SA_ONESHOT: u32 = 2147483648; | |
1469 | pub const SIG_BLOCK: u32 = 0; | |
1470 | pub const SIG_UNBLOCK: u32 = 1; | |
1471 | pub const SIG_SETMASK: u32 = 2; | |
1472 | pub const SI_MAX_SIZE: u32 = 128; | |
1473 | pub const SI_USER: u32 = 0; | |
1474 | pub const SI_KERNEL: u32 = 128; | |
1475 | pub const SI_QUEUE: i32 = -1; | |
1476 | pub const SI_TIMER: i32 = -2; | |
1477 | pub const SI_MESGQ: i32 = -3; | |
1478 | pub const SI_ASYNCIO: i32 = -4; | |
1479 | pub const SI_SIGIO: i32 = -5; | |
1480 | pub const SI_TKILL: i32 = -6; | |
1481 | pub const SI_DETHREAD: i32 = -7; | |
1482 | pub const SI_ASYNCNL: i32 = -60; | |
1483 | pub const ILL_ILLOPC: u32 = 1; | |
1484 | pub const ILL_ILLOPN: u32 = 2; | |
1485 | pub const ILL_ILLADR: u32 = 3; | |
1486 | pub const ILL_ILLTRP: u32 = 4; | |
1487 | pub const ILL_PRVOPC: u32 = 5; | |
1488 | pub const ILL_PRVREG: u32 = 6; | |
1489 | pub const ILL_COPROC: u32 = 7; | |
1490 | pub const ILL_BADSTK: u32 = 8; | |
1491 | pub const ILL_BADIADDR: u32 = 9; | |
1492 | pub const __ILL_BREAK: u32 = 10; | |
1493 | pub const __ILL_BNDMOD: u32 = 11; | |
1494 | pub const NSIGILL: u32 = 11; | |
1495 | pub const FPE_INTDIV: u32 = 1; | |
1496 | pub const FPE_INTOVF: u32 = 2; | |
1497 | pub const FPE_FLTDIV: u32 = 3; | |
1498 | pub const FPE_FLTOVF: u32 = 4; | |
1499 | pub const FPE_FLTUND: u32 = 5; | |
1500 | pub const FPE_FLTRES: u32 = 6; | |
1501 | pub const FPE_FLTINV: u32 = 7; | |
1502 | pub const FPE_FLTSUB: u32 = 8; | |
1503 | pub const __FPE_DECOVF: u32 = 9; | |
1504 | pub const __FPE_DECDIV: u32 = 10; | |
1505 | pub const __FPE_DECERR: u32 = 11; | |
1506 | pub const __FPE_INVASC: u32 = 12; | |
1507 | pub const __FPE_INVDEC: u32 = 13; | |
1508 | pub const FPE_FLTUNK: u32 = 14; | |
1509 | pub const FPE_CONDTRAP: u32 = 15; | |
1510 | pub const NSIGFPE: u32 = 15; | |
1511 | pub const SEGV_MAPERR: u32 = 1; | |
1512 | pub const SEGV_ACCERR: u32 = 2; | |
1513 | pub const SEGV_BNDERR: u32 = 3; | |
1514 | pub const SEGV_PKUERR: u32 = 4; | |
1515 | pub const SEGV_ACCADI: u32 = 5; | |
1516 | pub const SEGV_ADIDERR: u32 = 6; | |
1517 | pub const SEGV_ADIPERR: u32 = 7; | |
1518 | pub const SEGV_MTEAERR: u32 = 8; | |
1519 | pub const SEGV_MTESERR: u32 = 9; | |
1520 | pub const NSIGSEGV: u32 = 9; | |
1521 | pub const BUS_ADRALN: u32 = 1; | |
1522 | pub const BUS_ADRERR: u32 = 2; | |
1523 | pub const BUS_OBJERR: u32 = 3; | |
1524 | pub const BUS_MCEERR_AR: u32 = 4; | |
1525 | pub const BUS_MCEERR_AO: u32 = 5; | |
1526 | pub const NSIGBUS: u32 = 5; | |
1527 | pub const TRAP_BRKPT: u32 = 1; | |
1528 | pub const TRAP_TRACE: u32 = 2; | |
1529 | pub const TRAP_BRANCH: u32 = 3; | |
1530 | pub const TRAP_HWBKPT: u32 = 4; | |
1531 | pub const TRAP_UNK: u32 = 5; | |
1532 | pub const TRAP_PERF: u32 = 6; | |
1533 | pub const NSIGTRAP: u32 = 6; | |
1534 | pub const CLD_EXITED: u32 = 1; | |
1535 | pub const CLD_KILLED: u32 = 2; | |
1536 | pub const CLD_DUMPED: u32 = 3; | |
1537 | pub const CLD_TRAPPED: u32 = 4; | |
1538 | pub const CLD_STOPPED: u32 = 5; | |
1539 | pub const CLD_CONTINUED: u32 = 6; | |
1540 | pub const NSIGCHLD: u32 = 6; | |
1541 | pub const POLL_IN: u32 = 1; | |
1542 | pub const POLL_OUT: u32 = 2; | |
1543 | pub const POLL_MSG: u32 = 3; | |
1544 | pub const POLL_ERR: u32 = 4; | |
1545 | pub const POLL_PRI: u32 = 5; | |
1546 | pub const POLL_HUP: u32 = 6; | |
1547 | pub const NSIGPOLL: u32 = 6; | |
1548 | pub const SYS_SECCOMP: u32 = 1; | |
1549 | pub const SYS_USER_DISPATCH: u32 = 2; | |
1550 | pub const NSIGSYS: u32 = 2; | |
1551 | pub const EMT_TAGOVF: u32 = 1; | |
1552 | pub const NSIGEMT: u32 = 1; | |
1553 | pub const SIGEV_SIGNAL: u32 = 0; | |
1554 | pub const SIGEV_NONE: u32 = 1; | |
1555 | pub const SIGEV_THREAD: u32 = 2; | |
1556 | pub const SIGEV_THREAD_ID: u32 = 4; | |
1557 | pub const SIGEV_MAX_SIZE: u32 = 64; | |
1558 | pub const SS_ONSTACK: u32 = 1; | |
1559 | pub const SS_DISABLE: u32 = 2; | |
1560 | pub const SS_AUTODISARM: u32 = 2147483648; | |
1561 | pub const SS_FLAG_BITS: u32 = 2147483648; | |
1562 | pub const S_IFMT: u32 = 61440; | |
1563 | pub const S_IFSOCK: u32 = 49152; | |
1564 | pub const S_IFLNK: u32 = 40960; | |
1565 | pub const S_IFREG: u32 = 32768; | |
1566 | pub const S_IFBLK: u32 = 24576; | |
1567 | pub const S_IFDIR: u32 = 16384; | |
1568 | pub const S_IFCHR: u32 = 8192; | |
1569 | pub const S_IFIFO: u32 = 4096; | |
1570 | pub const S_ISUID: u32 = 2048; | |
1571 | pub const S_ISGID: u32 = 1024; | |
1572 | pub const S_ISVTX: u32 = 512; | |
1573 | pub const S_IRWXU: u32 = 448; | |
1574 | pub const S_IRUSR: u32 = 256; | |
1575 | pub const S_IWUSR: u32 = 128; | |
1576 | pub const S_IXUSR: u32 = 64; | |
1577 | pub const S_IRWXG: u32 = 56; | |
1578 | pub const S_IRGRP: u32 = 32; | |
1579 | pub const S_IWGRP: u32 = 16; | |
1580 | pub const S_IXGRP: u32 = 8; | |
1581 | pub const S_IRWXO: u32 = 7; | |
1582 | pub const S_IROTH: u32 = 4; | |
1583 | pub const S_IWOTH: u32 = 2; | |
1584 | pub const S_IXOTH: u32 = 1; | |
1585 | pub const STATX_TYPE: u32 = 1; | |
1586 | pub const STATX_MODE: u32 = 2; | |
1587 | pub const STATX_NLINK: u32 = 4; | |
1588 | pub const STATX_UID: u32 = 8; | |
1589 | pub const STATX_GID: u32 = 16; | |
1590 | pub const STATX_ATIME: u32 = 32; | |
1591 | pub const STATX_MTIME: u32 = 64; | |
1592 | pub const STATX_CTIME: u32 = 128; | |
1593 | pub const STATX_INO: u32 = 256; | |
1594 | pub const STATX_SIZE: u32 = 512; | |
1595 | pub const STATX_BLOCKS: u32 = 1024; | |
1596 | pub const STATX_BASIC_STATS: u32 = 2047; | |
1597 | pub const STATX_BTIME: u32 = 2048; | |
1598 | pub const STATX_MNT_ID: u32 = 4096; | |
1599 | pub const STATX__RESERVED: u32 = 2147483648; | |
1600 | pub const STATX_ALL: u32 = 4095; | |
1601 | pub const STATX_ATTR_COMPRESSED: u32 = 4; | |
1602 | pub const STATX_ATTR_IMMUTABLE: u32 = 16; | |
1603 | pub const STATX_ATTR_APPEND: u32 = 32; | |
1604 | pub const STATX_ATTR_NODUMP: u32 = 64; | |
1605 | pub const STATX_ATTR_ENCRYPTED: u32 = 2048; | |
1606 | pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; | |
1607 | pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; | |
1608 | pub const STATX_ATTR_VERITY: u32 = 1048576; | |
1609 | pub const STATX_ATTR_DAX: u32 = 2097152; | |
6522a427 | 1610 | pub const SI_LOAD_SHIFT: u32 = 16; |
064997fb FG |
1611 | pub const TCP_MSS_DEFAULT: u32 = 536; |
1612 | pub const TCP_MSS_DESIRED: u32 = 1220; | |
1613 | pub const TCP_NODELAY: u32 = 1; | |
1614 | pub const TCP_MAXSEG: u32 = 2; | |
1615 | pub const TCP_CORK: u32 = 3; | |
1616 | pub const TCP_KEEPIDLE: u32 = 4; | |
1617 | pub const TCP_KEEPINTVL: u32 = 5; | |
1618 | pub const TCP_KEEPCNT: u32 = 6; | |
1619 | pub const TCP_SYNCNT: u32 = 7; | |
1620 | pub const TCP_LINGER2: u32 = 8; | |
1621 | pub const TCP_DEFER_ACCEPT: u32 = 9; | |
1622 | pub const TCP_WINDOW_CLAMP: u32 = 10; | |
1623 | pub const TCP_INFO: u32 = 11; | |
1624 | pub const TCP_QUICKACK: u32 = 12; | |
1625 | pub const TCP_CONGESTION: u32 = 13; | |
1626 | pub const TCP_MD5SIG: u32 = 14; | |
1627 | pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; | |
1628 | pub const TCP_THIN_DUPACK: u32 = 17; | |
1629 | pub const TCP_USER_TIMEOUT: u32 = 18; | |
1630 | pub const TCP_REPAIR: u32 = 19; | |
1631 | pub const TCP_REPAIR_QUEUE: u32 = 20; | |
1632 | pub const TCP_QUEUE_SEQ: u32 = 21; | |
1633 | pub const TCP_REPAIR_OPTIONS: u32 = 22; | |
1634 | pub const TCP_FASTOPEN: u32 = 23; | |
1635 | pub const TCP_TIMESTAMP: u32 = 24; | |
1636 | pub const TCP_NOTSENT_LOWAT: u32 = 25; | |
1637 | pub const TCP_CC_INFO: u32 = 26; | |
1638 | pub const TCP_SAVE_SYN: u32 = 27; | |
1639 | pub const TCP_SAVED_SYN: u32 = 28; | |
1640 | pub const TCP_REPAIR_WINDOW: u32 = 29; | |
1641 | pub const TCP_FASTOPEN_CONNECT: u32 = 30; | |
1642 | pub const TCP_ULP: u32 = 31; | |
1643 | pub const TCP_MD5SIG_EXT: u32 = 32; | |
1644 | pub const TCP_FASTOPEN_KEY: u32 = 33; | |
1645 | pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; | |
1646 | pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; | |
1647 | pub const TCP_INQ: u32 = 36; | |
1648 | pub const TCP_CM_INQ: u32 = 36; | |
1649 | pub const TCP_TX_DELAY: u32 = 37; | |
1650 | pub const TCP_REPAIR_ON: u32 = 1; | |
1651 | pub const TCP_REPAIR_OFF: u32 = 0; | |
1652 | pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; | |
1653 | pub const TCPI_OPT_TIMESTAMPS: u32 = 1; | |
1654 | pub const TCPI_OPT_SACK: u32 = 2; | |
1655 | pub const TCPI_OPT_WSCALE: u32 = 4; | |
1656 | pub const TCPI_OPT_ECN: u32 = 8; | |
1657 | pub const TCPI_OPT_ECN_SEEN: u32 = 16; | |
1658 | pub const TCPI_OPT_SYN_DATA: u32 = 32; | |
1659 | pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; | |
1660 | pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; | |
1661 | pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; | |
1662 | pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; | |
1663 | pub const NCCS: u32 = 19; | |
1664 | pub const VINTR: u32 = 0; | |
1665 | pub const VQUIT: u32 = 1; | |
1666 | pub const VERASE: u32 = 2; | |
1667 | pub const VKILL: u32 = 3; | |
1668 | pub const VEOF: u32 = 4; | |
1669 | pub const VTIME: u32 = 5; | |
1670 | pub const VMIN: u32 = 6; | |
1671 | pub const VSWTC: u32 = 7; | |
1672 | pub const VSTART: u32 = 8; | |
1673 | pub const VSTOP: u32 = 9; | |
1674 | pub const VSUSP: u32 = 10; | |
1675 | pub const VEOL: u32 = 11; | |
1676 | pub const VREPRINT: u32 = 12; | |
1677 | pub const VDISCARD: u32 = 13; | |
1678 | pub const VWERASE: u32 = 14; | |
1679 | pub const VLNEXT: u32 = 15; | |
1680 | pub const VEOL2: u32 = 16; | |
1681 | pub const IGNBRK: u32 = 1; | |
1682 | pub const BRKINT: u32 = 2; | |
1683 | pub const IGNPAR: u32 = 4; | |
1684 | pub const PARMRK: u32 = 8; | |
1685 | pub const INPCK: u32 = 16; | |
1686 | pub const ISTRIP: u32 = 32; | |
1687 | pub const INLCR: u32 = 64; | |
1688 | pub const IGNCR: u32 = 128; | |
1689 | pub const ICRNL: u32 = 256; | |
1690 | pub const IUCLC: u32 = 512; | |
1691 | pub const IXON: u32 = 1024; | |
1692 | pub const IXANY: u32 = 2048; | |
1693 | pub const IXOFF: u32 = 4096; | |
1694 | pub const IMAXBEL: u32 = 8192; | |
1695 | pub const IUTF8: u32 = 16384; | |
1696 | pub const OPOST: u32 = 1; | |
1697 | pub const OLCUC: u32 = 2; | |
1698 | pub const ONLCR: u32 = 4; | |
1699 | pub const OCRNL: u32 = 8; | |
1700 | pub const ONOCR: u32 = 16; | |
1701 | pub const ONLRET: u32 = 32; | |
1702 | pub const OFILL: u32 = 64; | |
1703 | pub const OFDEL: u32 = 128; | |
1704 | pub const NLDLY: u32 = 256; | |
1705 | pub const NL0: u32 = 0; | |
1706 | pub const NL1: u32 = 256; | |
1707 | pub const CRDLY: u32 = 1536; | |
1708 | pub const CR0: u32 = 0; | |
1709 | pub const CR1: u32 = 512; | |
1710 | pub const CR2: u32 = 1024; | |
1711 | pub const CR3: u32 = 1536; | |
1712 | pub const TABDLY: u32 = 6144; | |
1713 | pub const TAB0: u32 = 0; | |
1714 | pub const TAB1: u32 = 2048; | |
1715 | pub const TAB2: u32 = 4096; | |
1716 | pub const TAB3: u32 = 6144; | |
1717 | pub const XTABS: u32 = 6144; | |
1718 | pub const BSDLY: u32 = 8192; | |
1719 | pub const BS0: u32 = 0; | |
1720 | pub const BS1: u32 = 8192; | |
1721 | pub const VTDLY: u32 = 16384; | |
1722 | pub const VT0: u32 = 0; | |
1723 | pub const VT1: u32 = 16384; | |
1724 | pub const FFDLY: u32 = 32768; | |
1725 | pub const FF0: u32 = 0; | |
1726 | pub const FF1: u32 = 32768; | |
1727 | pub const CBAUD: u32 = 4111; | |
1728 | pub const B0: u32 = 0; | |
1729 | pub const B50: u32 = 1; | |
1730 | pub const B75: u32 = 2; | |
1731 | pub const B110: u32 = 3; | |
1732 | pub const B134: u32 = 4; | |
1733 | pub const B150: u32 = 5; | |
1734 | pub const B200: u32 = 6; | |
1735 | pub const B300: u32 = 7; | |
1736 | pub const B600: u32 = 8; | |
1737 | pub const B1200: u32 = 9; | |
1738 | pub const B1800: u32 = 10; | |
1739 | pub const B2400: u32 = 11; | |
1740 | pub const B4800: u32 = 12; | |
1741 | pub const B9600: u32 = 13; | |
1742 | pub const B19200: u32 = 14; | |
1743 | pub const B38400: u32 = 15; | |
1744 | pub const EXTA: u32 = 14; | |
1745 | pub const EXTB: u32 = 15; | |
1746 | pub const CSIZE: u32 = 48; | |
1747 | pub const CS5: u32 = 0; | |
1748 | pub const CS6: u32 = 16; | |
1749 | pub const CS7: u32 = 32; | |
1750 | pub const CS8: u32 = 48; | |
1751 | pub const CSTOPB: u32 = 64; | |
1752 | pub const CREAD: u32 = 128; | |
1753 | pub const PARENB: u32 = 256; | |
1754 | pub const PARODD: u32 = 512; | |
1755 | pub const HUPCL: u32 = 1024; | |
1756 | pub const CLOCAL: u32 = 2048; | |
1757 | pub const CBAUDEX: u32 = 4096; | |
1758 | pub const BOTHER: u32 = 4096; | |
1759 | pub const B57600: u32 = 4097; | |
1760 | pub const B115200: u32 = 4098; | |
1761 | pub const B230400: u32 = 4099; | |
1762 | pub const B460800: u32 = 4100; | |
1763 | pub const B500000: u32 = 4101; | |
1764 | pub const B576000: u32 = 4102; | |
1765 | pub const B921600: u32 = 4103; | |
1766 | pub const B1000000: u32 = 4104; | |
1767 | pub const B1152000: u32 = 4105; | |
1768 | pub const B1500000: u32 = 4106; | |
1769 | pub const B2000000: u32 = 4107; | |
1770 | pub const B2500000: u32 = 4108; | |
1771 | pub const B3000000: u32 = 4109; | |
1772 | pub const B3500000: u32 = 4110; | |
1773 | pub const B4000000: u32 = 4111; | |
1774 | pub const CIBAUD: u32 = 269418496; | |
1775 | pub const CMSPAR: u32 = 1073741824; | |
1776 | pub const CRTSCTS: u32 = 2147483648; | |
1777 | pub const IBSHIFT: u32 = 16; | |
1778 | pub const ISIG: u32 = 1; | |
1779 | pub const ICANON: u32 = 2; | |
1780 | pub const XCASE: u32 = 4; | |
1781 | pub const ECHO: u32 = 8; | |
1782 | pub const ECHOE: u32 = 16; | |
1783 | pub const ECHOK: u32 = 32; | |
1784 | pub const ECHONL: u32 = 64; | |
1785 | pub const NOFLSH: u32 = 128; | |
1786 | pub const TOSTOP: u32 = 256; | |
1787 | pub const ECHOCTL: u32 = 512; | |
1788 | pub const ECHOPRT: u32 = 1024; | |
1789 | pub const ECHOKE: u32 = 2048; | |
1790 | pub const FLUSHO: u32 = 4096; | |
1791 | pub const PENDIN: u32 = 16384; | |
1792 | pub const IEXTEN: u32 = 32768; | |
1793 | pub const EXTPROC: u32 = 65536; | |
1794 | pub const TCOOFF: u32 = 0; | |
1795 | pub const TCOON: u32 = 1; | |
1796 | pub const TCIOFF: u32 = 2; | |
1797 | pub const TCION: u32 = 3; | |
1798 | pub const TCIFLUSH: u32 = 0; | |
1799 | pub const TCOFLUSH: u32 = 1; | |
1800 | pub const TCIOFLUSH: u32 = 2; | |
1801 | pub const TCSANOW: u32 = 0; | |
1802 | pub const TCSADRAIN: u32 = 1; | |
1803 | pub const TCSAFLUSH: u32 = 2; | |
1804 | pub const TIOCPKT_DATA: u32 = 0; | |
1805 | pub const TIOCPKT_FLUSHREAD: u32 = 1; | |
1806 | pub const TIOCPKT_FLUSHWRITE: u32 = 2; | |
1807 | pub const TIOCPKT_STOP: u32 = 4; | |
1808 | pub const TIOCPKT_START: u32 = 8; | |
1809 | pub const TIOCPKT_NOSTOP: u32 = 16; | |
1810 | pub const TIOCPKT_DOSTOP: u32 = 32; | |
1811 | pub const TIOCPKT_IOCTL: u32 = 64; | |
1812 | pub const TIOCSER_TEMT: u32 = 1; | |
1813 | pub const NCC: u32 = 8; | |
1814 | pub const TIOCM_LE: u32 = 1; | |
1815 | pub const TIOCM_DTR: u32 = 2; | |
1816 | pub const TIOCM_RTS: u32 = 4; | |
1817 | pub const TIOCM_ST: u32 = 8; | |
1818 | pub const TIOCM_SR: u32 = 16; | |
1819 | pub const TIOCM_CTS: u32 = 32; | |
1820 | pub const TIOCM_CAR: u32 = 64; | |
1821 | pub const TIOCM_RNG: u32 = 128; | |
1822 | pub const TIOCM_DSR: u32 = 256; | |
1823 | pub const TIOCM_CD: u32 = 64; | |
1824 | pub const TIOCM_RI: u32 = 128; | |
1825 | pub const TIOCM_OUT1: u32 = 8192; | |
1826 | pub const TIOCM_OUT2: u32 = 16384; | |
1827 | pub const TIOCM_LOOP: u32 = 32768; | |
1828 | pub const UIO_FASTIOV: u32 = 8; | |
1829 | pub const UIO_MAXIOV: u32 = 1024; | |
1830 | pub const UNIX_PATH_MAX: u32 = 108; | |
1831 | pub const __NR_io_setup: u32 = 0; | |
1832 | pub const __NR_io_destroy: u32 = 1; | |
1833 | pub const __NR_io_submit: u32 = 2; | |
1834 | pub const __NR_io_cancel: u32 = 3; | |
1835 | pub const __NR_setxattr: u32 = 5; | |
1836 | pub const __NR_lsetxattr: u32 = 6; | |
1837 | pub const __NR_fsetxattr: u32 = 7; | |
1838 | pub const __NR_getxattr: u32 = 8; | |
1839 | pub const __NR_lgetxattr: u32 = 9; | |
1840 | pub const __NR_fgetxattr: u32 = 10; | |
1841 | pub const __NR_listxattr: u32 = 11; | |
1842 | pub const __NR_llistxattr: u32 = 12; | |
1843 | pub const __NR_flistxattr: u32 = 13; | |
1844 | pub const __NR_removexattr: u32 = 14; | |
1845 | pub const __NR_lremovexattr: u32 = 15; | |
1846 | pub const __NR_fremovexattr: u32 = 16; | |
1847 | pub const __NR_getcwd: u32 = 17; | |
1848 | pub const __NR_lookup_dcookie: u32 = 18; | |
1849 | pub const __NR_eventfd2: u32 = 19; | |
1850 | pub const __NR_epoll_create1: u32 = 20; | |
1851 | pub const __NR_epoll_ctl: u32 = 21; | |
1852 | pub const __NR_epoll_pwait: u32 = 22; | |
1853 | pub const __NR_dup: u32 = 23; | |
1854 | pub const __NR_dup3: u32 = 24; | |
1855 | pub const __NR3264_fcntl: u32 = 25; | |
1856 | pub const __NR_inotify_init1: u32 = 26; | |
1857 | pub const __NR_inotify_add_watch: u32 = 27; | |
1858 | pub const __NR_inotify_rm_watch: u32 = 28; | |
1859 | pub const __NR_ioctl: u32 = 29; | |
1860 | pub const __NR_ioprio_set: u32 = 30; | |
1861 | pub const __NR_ioprio_get: u32 = 31; | |
1862 | pub const __NR_flock: u32 = 32; | |
1863 | pub const __NR_mknodat: u32 = 33; | |
1864 | pub const __NR_mkdirat: u32 = 34; | |
1865 | pub const __NR_unlinkat: u32 = 35; | |
1866 | pub const __NR_symlinkat: u32 = 36; | |
1867 | pub const __NR_linkat: u32 = 37; | |
1868 | pub const __NR_umount2: u32 = 39; | |
1869 | pub const __NR_mount: u32 = 40; | |
1870 | pub const __NR_pivot_root: u32 = 41; | |
1871 | pub const __NR_nfsservctl: u32 = 42; | |
1872 | pub const __NR3264_statfs: u32 = 43; | |
1873 | pub const __NR3264_fstatfs: u32 = 44; | |
1874 | pub const __NR3264_truncate: u32 = 45; | |
1875 | pub const __NR3264_ftruncate: u32 = 46; | |
1876 | pub const __NR_fallocate: u32 = 47; | |
1877 | pub const __NR_faccessat: u32 = 48; | |
1878 | pub const __NR_chdir: u32 = 49; | |
1879 | pub const __NR_fchdir: u32 = 50; | |
1880 | pub const __NR_chroot: u32 = 51; | |
1881 | pub const __NR_fchmod: u32 = 52; | |
1882 | pub const __NR_fchmodat: u32 = 53; | |
1883 | pub const __NR_fchownat: u32 = 54; | |
1884 | pub const __NR_fchown: u32 = 55; | |
1885 | pub const __NR_openat: u32 = 56; | |
1886 | pub const __NR_close: u32 = 57; | |
1887 | pub const __NR_vhangup: u32 = 58; | |
1888 | pub const __NR_pipe2: u32 = 59; | |
1889 | pub const __NR_quotactl: u32 = 60; | |
1890 | pub const __NR_getdents64: u32 = 61; | |
1891 | pub const __NR3264_lseek: u32 = 62; | |
1892 | pub const __NR_read: u32 = 63; | |
1893 | pub const __NR_write: u32 = 64; | |
1894 | pub const __NR_readv: u32 = 65; | |
1895 | pub const __NR_writev: u32 = 66; | |
1896 | pub const __NR_pread64: u32 = 67; | |
1897 | pub const __NR_pwrite64: u32 = 68; | |
1898 | pub const __NR_preadv: u32 = 69; | |
1899 | pub const __NR_pwritev: u32 = 70; | |
1900 | pub const __NR3264_sendfile: u32 = 71; | |
1901 | pub const __NR_signalfd4: u32 = 74; | |
1902 | pub const __NR_vmsplice: u32 = 75; | |
1903 | pub const __NR_splice: u32 = 76; | |
1904 | pub const __NR_tee: u32 = 77; | |
1905 | pub const __NR_readlinkat: u32 = 78; | |
1906 | pub const __NR_sync: u32 = 81; | |
1907 | pub const __NR_fsync: u32 = 82; | |
1908 | pub const __NR_fdatasync: u32 = 83; | |
1909 | pub const __NR_sync_file_range: u32 = 84; | |
1910 | pub const __NR_timerfd_create: u32 = 85; | |
1911 | pub const __NR_acct: u32 = 89; | |
1912 | pub const __NR_capget: u32 = 90; | |
1913 | pub const __NR_capset: u32 = 91; | |
1914 | pub const __NR_personality: u32 = 92; | |
1915 | pub const __NR_exit: u32 = 93; | |
1916 | pub const __NR_exit_group: u32 = 94; | |
1917 | pub const __NR_waitid: u32 = 95; | |
1918 | pub const __NR_set_tid_address: u32 = 96; | |
1919 | pub const __NR_unshare: u32 = 97; | |
1920 | pub const __NR_set_robust_list: u32 = 99; | |
1921 | pub const __NR_get_robust_list: u32 = 100; | |
1922 | pub const __NR_getitimer: u32 = 102; | |
1923 | pub const __NR_setitimer: u32 = 103; | |
1924 | pub const __NR_kexec_load: u32 = 104; | |
1925 | pub const __NR_init_module: u32 = 105; | |
1926 | pub const __NR_delete_module: u32 = 106; | |
1927 | pub const __NR_timer_create: u32 = 107; | |
1928 | pub const __NR_timer_getoverrun: u32 = 109; | |
1929 | pub const __NR_timer_delete: u32 = 111; | |
1930 | pub const __NR_syslog: u32 = 116; | |
1931 | pub const __NR_ptrace: u32 = 117; | |
1932 | pub const __NR_sched_setparam: u32 = 118; | |
1933 | pub const __NR_sched_setscheduler: u32 = 119; | |
1934 | pub const __NR_sched_getscheduler: u32 = 120; | |
1935 | pub const __NR_sched_getparam: u32 = 121; | |
1936 | pub const __NR_sched_setaffinity: u32 = 122; | |
1937 | pub const __NR_sched_getaffinity: u32 = 123; | |
1938 | pub const __NR_sched_yield: u32 = 124; | |
1939 | pub const __NR_sched_get_priority_max: u32 = 125; | |
1940 | pub const __NR_sched_get_priority_min: u32 = 126; | |
1941 | pub const __NR_restart_syscall: u32 = 128; | |
1942 | pub const __NR_kill: u32 = 129; | |
1943 | pub const __NR_tkill: u32 = 130; | |
1944 | pub const __NR_tgkill: u32 = 131; | |
1945 | pub const __NR_sigaltstack: u32 = 132; | |
1946 | pub const __NR_rt_sigsuspend: u32 = 133; | |
1947 | pub const __NR_rt_sigaction: u32 = 134; | |
1948 | pub const __NR_rt_sigprocmask: u32 = 135; | |
1949 | pub const __NR_rt_sigpending: u32 = 136; | |
1950 | pub const __NR_rt_sigqueueinfo: u32 = 138; | |
1951 | pub const __NR_rt_sigreturn: u32 = 139; | |
1952 | pub const __NR_setpriority: u32 = 140; | |
1953 | pub const __NR_getpriority: u32 = 141; | |
1954 | pub const __NR_reboot: u32 = 142; | |
1955 | pub const __NR_setregid: u32 = 143; | |
1956 | pub const __NR_setgid: u32 = 144; | |
1957 | pub const __NR_setreuid: u32 = 145; | |
1958 | pub const __NR_setuid: u32 = 146; | |
1959 | pub const __NR_setresuid: u32 = 147; | |
1960 | pub const __NR_getresuid: u32 = 148; | |
1961 | pub const __NR_setresgid: u32 = 149; | |
1962 | pub const __NR_getresgid: u32 = 150; | |
1963 | pub const __NR_setfsuid: u32 = 151; | |
1964 | pub const __NR_setfsgid: u32 = 152; | |
1965 | pub const __NR_times: u32 = 153; | |
1966 | pub const __NR_setpgid: u32 = 154; | |
1967 | pub const __NR_getpgid: u32 = 155; | |
1968 | pub const __NR_getsid: u32 = 156; | |
1969 | pub const __NR_setsid: u32 = 157; | |
1970 | pub const __NR_getgroups: u32 = 158; | |
1971 | pub const __NR_setgroups: u32 = 159; | |
1972 | pub const __NR_uname: u32 = 160; | |
1973 | pub const __NR_sethostname: u32 = 161; | |
1974 | pub const __NR_setdomainname: u32 = 162; | |
1975 | pub const __NR_getrusage: u32 = 165; | |
1976 | pub const __NR_umask: u32 = 166; | |
1977 | pub const __NR_prctl: u32 = 167; | |
1978 | pub const __NR_getcpu: u32 = 168; | |
1979 | pub const __NR_getpid: u32 = 172; | |
1980 | pub const __NR_getppid: u32 = 173; | |
1981 | pub const __NR_getuid: u32 = 174; | |
1982 | pub const __NR_geteuid: u32 = 175; | |
1983 | pub const __NR_getgid: u32 = 176; | |
1984 | pub const __NR_getegid: u32 = 177; | |
1985 | pub const __NR_gettid: u32 = 178; | |
1986 | pub const __NR_sysinfo: u32 = 179; | |
1987 | pub const __NR_mq_open: u32 = 180; | |
1988 | pub const __NR_mq_unlink: u32 = 181; | |
1989 | pub const __NR_mq_notify: u32 = 184; | |
1990 | pub const __NR_mq_getsetattr: u32 = 185; | |
1991 | pub const __NR_msgget: u32 = 186; | |
1992 | pub const __NR_msgctl: u32 = 187; | |
1993 | pub const __NR_msgrcv: u32 = 188; | |
1994 | pub const __NR_msgsnd: u32 = 189; | |
1995 | pub const __NR_semget: u32 = 190; | |
1996 | pub const __NR_semctl: u32 = 191; | |
1997 | pub const __NR_semop: u32 = 193; | |
1998 | pub const __NR_shmget: u32 = 194; | |
1999 | pub const __NR_shmctl: u32 = 195; | |
2000 | pub const __NR_shmat: u32 = 196; | |
2001 | pub const __NR_shmdt: u32 = 197; | |
2002 | pub const __NR_socket: u32 = 198; | |
2003 | pub const __NR_socketpair: u32 = 199; | |
2004 | pub const __NR_bind: u32 = 200; | |
2005 | pub const __NR_listen: u32 = 201; | |
2006 | pub const __NR_accept: u32 = 202; | |
2007 | pub const __NR_connect: u32 = 203; | |
2008 | pub const __NR_getsockname: u32 = 204; | |
2009 | pub const __NR_getpeername: u32 = 205; | |
2010 | pub const __NR_sendto: u32 = 206; | |
2011 | pub const __NR_recvfrom: u32 = 207; | |
2012 | pub const __NR_setsockopt: u32 = 208; | |
2013 | pub const __NR_getsockopt: u32 = 209; | |
2014 | pub const __NR_shutdown: u32 = 210; | |
2015 | pub const __NR_sendmsg: u32 = 211; | |
2016 | pub const __NR_recvmsg: u32 = 212; | |
2017 | pub const __NR_readahead: u32 = 213; | |
2018 | pub const __NR_brk: u32 = 214; | |
2019 | pub const __NR_munmap: u32 = 215; | |
2020 | pub const __NR_mremap: u32 = 216; | |
2021 | pub const __NR_add_key: u32 = 217; | |
2022 | pub const __NR_request_key: u32 = 218; | |
2023 | pub const __NR_keyctl: u32 = 219; | |
2024 | pub const __NR_clone: u32 = 220; | |
2025 | pub const __NR_execve: u32 = 221; | |
2026 | pub const __NR3264_mmap: u32 = 222; | |
2027 | pub const __NR3264_fadvise64: u32 = 223; | |
2028 | pub const __NR_swapon: u32 = 224; | |
2029 | pub const __NR_swapoff: u32 = 225; | |
2030 | pub const __NR_mprotect: u32 = 226; | |
2031 | pub const __NR_msync: u32 = 227; | |
2032 | pub const __NR_mlock: u32 = 228; | |
2033 | pub const __NR_munlock: u32 = 229; | |
2034 | pub const __NR_mlockall: u32 = 230; | |
2035 | pub const __NR_munlockall: u32 = 231; | |
2036 | pub const __NR_mincore: u32 = 232; | |
2037 | pub const __NR_madvise: u32 = 233; | |
2038 | pub const __NR_remap_file_pages: u32 = 234; | |
2039 | pub const __NR_mbind: u32 = 235; | |
2040 | pub const __NR_get_mempolicy: u32 = 236; | |
2041 | pub const __NR_set_mempolicy: u32 = 237; | |
2042 | pub const __NR_migrate_pages: u32 = 238; | |
2043 | pub const __NR_move_pages: u32 = 239; | |
2044 | pub const __NR_rt_tgsigqueueinfo: u32 = 240; | |
2045 | pub const __NR_perf_event_open: u32 = 241; | |
2046 | pub const __NR_accept4: u32 = 242; | |
2047 | pub const __NR_arch_specific_syscall: u32 = 244; | |
2048 | pub const __NR_prlimit64: u32 = 261; | |
2049 | pub const __NR_fanotify_init: u32 = 262; | |
2050 | pub const __NR_fanotify_mark: u32 = 263; | |
2051 | pub const __NR_name_to_handle_at: u32 = 264; | |
2052 | pub const __NR_open_by_handle_at: u32 = 265; | |
2053 | pub const __NR_syncfs: u32 = 267; | |
2054 | pub const __NR_setns: u32 = 268; | |
2055 | pub const __NR_sendmmsg: u32 = 269; | |
2056 | pub const __NR_process_vm_readv: u32 = 270; | |
2057 | pub const __NR_process_vm_writev: u32 = 271; | |
2058 | pub const __NR_kcmp: u32 = 272; | |
2059 | pub const __NR_finit_module: u32 = 273; | |
2060 | pub const __NR_sched_setattr: u32 = 274; | |
2061 | pub const __NR_sched_getattr: u32 = 275; | |
2062 | pub const __NR_renameat2: u32 = 276; | |
2063 | pub const __NR_seccomp: u32 = 277; | |
2064 | pub const __NR_getrandom: u32 = 278; | |
2065 | pub const __NR_memfd_create: u32 = 279; | |
2066 | pub const __NR_bpf: u32 = 280; | |
2067 | pub const __NR_execveat: u32 = 281; | |
2068 | pub const __NR_userfaultfd: u32 = 282; | |
2069 | pub const __NR_membarrier: u32 = 283; | |
2070 | pub const __NR_mlock2: u32 = 284; | |
2071 | pub const __NR_copy_file_range: u32 = 285; | |
2072 | pub const __NR_preadv2: u32 = 286; | |
2073 | pub const __NR_pwritev2: u32 = 287; | |
2074 | pub const __NR_pkey_mprotect: u32 = 288; | |
2075 | pub const __NR_pkey_alloc: u32 = 289; | |
2076 | pub const __NR_pkey_free: u32 = 290; | |
2077 | pub const __NR_statx: u32 = 291; | |
2078 | pub const __NR_rseq: u32 = 293; | |
2079 | pub const __NR_kexec_file_load: u32 = 294; | |
2080 | pub const __NR_clock_gettime64: u32 = 403; | |
2081 | pub const __NR_clock_settime64: u32 = 404; | |
2082 | pub const __NR_clock_adjtime64: u32 = 405; | |
2083 | pub const __NR_clock_getres_time64: u32 = 406; | |
2084 | pub const __NR_clock_nanosleep_time64: u32 = 407; | |
2085 | pub const __NR_timer_gettime64: u32 = 408; | |
2086 | pub const __NR_timer_settime64: u32 = 409; | |
2087 | pub const __NR_timerfd_gettime64: u32 = 410; | |
2088 | pub const __NR_timerfd_settime64: u32 = 411; | |
2089 | pub const __NR_utimensat_time64: u32 = 412; | |
2090 | pub const __NR_pselect6_time64: u32 = 413; | |
2091 | pub const __NR_ppoll_time64: u32 = 414; | |
2092 | pub const __NR_io_pgetevents_time64: u32 = 416; | |
2093 | pub const __NR_recvmmsg_time64: u32 = 417; | |
2094 | pub const __NR_mq_timedsend_time64: u32 = 418; | |
2095 | pub const __NR_mq_timedreceive_time64: u32 = 419; | |
2096 | pub const __NR_semtimedop_time64: u32 = 420; | |
2097 | pub const __NR_rt_sigtimedwait_time64: u32 = 421; | |
2098 | pub const __NR_futex_time64: u32 = 422; | |
2099 | pub const __NR_sched_rr_get_interval_time64: u32 = 423; | |
2100 | pub const __NR_pidfd_send_signal: u32 = 424; | |
2101 | pub const __NR_io_uring_setup: u32 = 425; | |
2102 | pub const __NR_io_uring_enter: u32 = 426; | |
2103 | pub const __NR_io_uring_register: u32 = 427; | |
2104 | pub const __NR_open_tree: u32 = 428; | |
2105 | pub const __NR_move_mount: u32 = 429; | |
2106 | pub const __NR_fsopen: u32 = 430; | |
2107 | pub const __NR_fsconfig: u32 = 431; | |
2108 | pub const __NR_fsmount: u32 = 432; | |
2109 | pub const __NR_fspick: u32 = 433; | |
2110 | pub const __NR_pidfd_open: u32 = 434; | |
2111 | pub const __NR_clone3: u32 = 435; | |
2112 | pub const __NR_close_range: u32 = 436; | |
2113 | pub const __NR_openat2: u32 = 437; | |
2114 | pub const __NR_pidfd_getfd: u32 = 438; | |
2115 | pub const __NR_faccessat2: u32 = 439; | |
2116 | pub const __NR_process_madvise: u32 = 440; | |
2117 | pub const __NR_epoll_pwait2: u32 = 441; | |
2118 | pub const __NR_mount_setattr: u32 = 442; | |
2119 | pub const __NR_quotactl_fd: u32 = 443; | |
2120 | pub const __NR_landlock_create_ruleset: u32 = 444; | |
2121 | pub const __NR_landlock_add_rule: u32 = 445; | |
2122 | pub const __NR_landlock_restrict_self: u32 = 446; | |
2123 | pub const __NR_process_mrelease: u32 = 448; | |
2124 | pub const __NR_futex_waitv: u32 = 449; | |
2125 | pub const __NR_set_mempolicy_home_node: u32 = 450; | |
2126 | pub const __NR_syscalls: u32 = 451; | |
2127 | pub const __NR_fcntl64: u32 = 25; | |
2128 | pub const __NR_statfs64: u32 = 43; | |
2129 | pub const __NR_fstatfs64: u32 = 44; | |
2130 | pub const __NR_truncate64: u32 = 45; | |
2131 | pub const __NR_ftruncate64: u32 = 46; | |
2132 | pub const __NR_llseek: u32 = 62; | |
2133 | pub const __NR_sendfile64: u32 = 71; | |
2134 | pub const __NR_mmap2: u32 = 222; | |
2135 | pub const __NR_fadvise64_64: u32 = 223; | |
2136 | pub const __NR_riscv_flush_icache: u32 = 259; | |
2137 | pub const __OLD_UTS_LEN: u32 = 8; | |
2138 | pub const __NEW_UTS_LEN: u32 = 64; | |
2139 | pub const WNOHANG: u32 = 1; | |
2140 | pub const WUNTRACED: u32 = 2; | |
2141 | pub const WSTOPPED: u32 = 2; | |
2142 | pub const WEXITED: u32 = 4; | |
2143 | pub const WCONTINUED: u32 = 8; | |
2144 | pub const WNOWAIT: u32 = 16777216; | |
2145 | pub const __WNOTHREAD: u32 = 536870912; | |
2146 | pub const __WALL: u32 = 1073741824; | |
2147 | pub const __WCLONE: u32 = 2147483648; | |
2148 | pub const P_ALL: u32 = 0; | |
2149 | pub const P_PID: u32 = 1; | |
2150 | pub const P_PGID: u32 = 2; | |
2151 | pub const P_PIDFD: u32 = 3; | |
2152 | pub const MFD_CLOEXEC: u32 = 1; | |
2153 | pub const MFD_ALLOW_SEALING: u32 = 2; | |
2154 | pub const MFD_HUGETLB: u32 = 4; | |
2155 | pub const MFD_HUGE_SHIFT: u32 = 26; | |
2156 | pub const MFD_HUGE_MASK: u32 = 63; | |
2157 | pub const MFD_HUGE_64KB: u32 = 1073741824; | |
2158 | pub const MFD_HUGE_512KB: u32 = 1275068416; | |
2159 | pub const MFD_HUGE_1MB: u32 = 1342177280; | |
2160 | pub const MFD_HUGE_2MB: u32 = 1409286144; | |
2161 | pub const MFD_HUGE_8MB: u32 = 1543503872; | |
2162 | pub const MFD_HUGE_16MB: u32 = 1610612736; | |
2163 | pub const MFD_HUGE_32MB: u32 = 1677721600; | |
2164 | pub const MFD_HUGE_256MB: u32 = 1879048192; | |
2165 | pub const MFD_HUGE_512MB: u32 = 1946157056; | |
2166 | pub const MFD_HUGE_1GB: u32 = 2013265920; | |
2167 | pub const MFD_HUGE_2GB: u32 = 2080374784; | |
2168 | pub const MFD_HUGE_16GB: u32 = 2281701376; | |
2169 | pub const TFD_TIMER_ABSTIME: u32 = 1; | |
2170 | pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; | |
2171 | pub const TFD_CLOEXEC: u32 = 524288; | |
2172 | pub const TFD_NONBLOCK: u32 = 2048; | |
2173 | pub const _UFFDIO_REGISTER: u32 = 0; | |
2174 | pub const _UFFDIO_UNREGISTER: u32 = 1; | |
2175 | pub const _UFFDIO_WAKE: u32 = 2; | |
2176 | pub const _UFFDIO_COPY: u32 = 3; | |
2177 | pub const _UFFDIO_ZEROPAGE: u32 = 4; | |
2178 | pub const _UFFDIO_WRITEPROTECT: u32 = 6; | |
2179 | pub const _UFFDIO_CONTINUE: u32 = 7; | |
2180 | pub const _UFFDIO_API: u32 = 63; | |
2181 | pub const UFFDIO: u32 = 170; | |
2182 | pub const UFFD_EVENT_PAGEFAULT: u32 = 18; | |
2183 | pub const UFFD_EVENT_FORK: u32 = 19; | |
2184 | pub const UFFD_EVENT_REMAP: u32 = 20; | |
2185 | pub const UFFD_EVENT_REMOVE: u32 = 21; | |
2186 | pub const UFFD_EVENT_UNMAP: u32 = 22; | |
2187 | pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; | |
2188 | pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; | |
2189 | pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; | |
2190 | pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; | |
2191 | pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; | |
2192 | pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; | |
2193 | pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; | |
2194 | pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; | |
2195 | pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; | |
2196 | pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; | |
2197 | pub const UFFD_FEATURE_SIGBUS: u32 = 128; | |
2198 | pub const UFFD_FEATURE_THREAD_ID: u32 = 256; | |
2199 | pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; | |
2200 | pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; | |
2201 | pub const UFFD_USER_MODE_ONLY: u32 = 1; | |
2202 | pub const IORING_SETUP_IOPOLL: u32 = 1; | |
2203 | pub const IORING_SETUP_SQPOLL: u32 = 2; | |
2204 | pub const IORING_SETUP_SQ_AFF: u32 = 4; | |
2205 | pub const IORING_SETUP_CQSIZE: u32 = 8; | |
2206 | pub const IORING_SETUP_CLAMP: u32 = 16; | |
2207 | pub const IORING_SETUP_ATTACH_WQ: u32 = 32; | |
2208 | pub const IORING_SETUP_R_DISABLED: u32 = 64; | |
2209 | pub const IORING_FSYNC_DATASYNC: u32 = 1; | |
2210 | pub const IORING_TIMEOUT_ABS: u32 = 1; | |
2211 | pub const IORING_TIMEOUT_UPDATE: u32 = 2; | |
2212 | pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; | |
2213 | pub const IORING_TIMEOUT_REALTIME: u32 = 8; | |
2214 | pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; | |
2215 | pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; | |
2216 | pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; | |
2217 | pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; | |
2218 | pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; | |
2219 | pub const IORING_POLL_ADD_MULTI: u32 = 1; | |
2220 | pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; | |
2221 | pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; | |
2222 | pub const IORING_CQE_F_BUFFER: u32 = 1; | |
2223 | pub const IORING_CQE_F_MORE: u32 = 2; | |
2224 | pub const IORING_OFF_SQ_RING: u32 = 0; | |
2225 | pub const IORING_OFF_CQ_RING: u32 = 134217728; | |
2226 | pub const IORING_OFF_SQES: u32 = 268435456; | |
2227 | pub const IORING_SQ_NEED_WAKEUP: u32 = 1; | |
2228 | pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; | |
2229 | pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; | |
2230 | pub const IORING_ENTER_GETEVENTS: u32 = 1; | |
2231 | pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; | |
2232 | pub const IORING_ENTER_SQ_WAIT: u32 = 4; | |
2233 | pub const IORING_ENTER_EXT_ARG: u32 = 8; | |
2234 | pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; | |
2235 | pub const IORING_FEAT_NODROP: u32 = 2; | |
2236 | pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; | |
2237 | pub const IORING_FEAT_RW_CUR_POS: u32 = 8; | |
2238 | pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; | |
2239 | pub const IORING_FEAT_FAST_POLL: u32 = 32; | |
2240 | pub const IORING_FEAT_POLL_32BITS: u32 = 64; | |
2241 | pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; | |
2242 | pub const IORING_FEAT_EXT_ARG: u32 = 256; | |
2243 | pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; | |
2244 | pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; | |
2245 | pub const IORING_FEAT_CQE_SKIP: u32 = 2048; | |
2246 | pub const IORING_REGISTER_FILES_SKIP: i32 = -2; | |
2247 | pub const IO_URING_OP_SUPPORTED: u32 = 1; | |
2248 | pub const DT_UNKNOWN: u32 = 0; | |
2249 | pub const DT_FIFO: u32 = 1; | |
2250 | pub const DT_CHR: u32 = 2; | |
2251 | pub const DT_DIR: u32 = 4; | |
2252 | pub const DT_BLK: u32 = 6; | |
2253 | pub const DT_REG: u32 = 8; | |
2254 | pub const DT_LNK: u32 = 10; | |
2255 | pub const DT_SOCK: u32 = 12; | |
2256 | pub const SHUT_RD: u32 = 0; | |
2257 | pub const SHUT_WR: u32 = 1; | |
2258 | pub const SHUT_RDWR: u32 = 2; | |
2259 | pub const STAT_HAVE_NSEC: u32 = 1; | |
2260 | pub const SOCK_STREAM: u32 = 1; | |
2261 | pub const SOCK_DGRAM: u32 = 2; | |
2262 | pub const SOCK_RAW: u32 = 3; | |
2263 | pub const SOCK_RDM: u32 = 4; | |
2264 | pub const SOCK_SEQPACKET: u32 = 5; | |
2265 | pub const F_OK: u32 = 0; | |
2266 | pub const R_OK: u32 = 4; | |
2267 | pub const W_OK: u32 = 2; | |
2268 | pub const X_OK: u32 = 1; | |
2269 | pub const UTIME_NOW: u32 = 1073741823; | |
2270 | pub const UTIME_OMIT: u32 = 1073741822; | |
2271 | pub const MSG_DONTWAIT: u32 = 64; | |
2272 | pub const AF_UNSPEC: u32 = 0; | |
2273 | pub const AF_UNIX: u32 = 1; | |
2274 | pub const AF_INET: u32 = 2; | |
2275 | pub const AF_AX25: u32 = 3; | |
2276 | pub const AF_IPX: u32 = 4; | |
2277 | pub const AF_APPLETALK: u32 = 5; | |
2278 | pub const AF_NETROM: u32 = 6; | |
2279 | pub const AF_BRIDGE: u32 = 7; | |
2280 | pub const AF_ATMPVC: u32 = 8; | |
2281 | pub const AF_X25: u32 = 9; | |
2282 | pub const AF_INET6: u32 = 10; | |
2283 | pub const AF_ROSE: u32 = 11; | |
2284 | pub const AF_DECnet: u32 = 12; | |
2285 | pub const AF_NETBEUI: u32 = 13; | |
2286 | pub const AF_SECURITY: u32 = 14; | |
2287 | pub const AF_KEY: u32 = 15; | |
2288 | pub const AF_NETLINK: u32 = 16; | |
2289 | pub const AF_PACKET: u32 = 17; | |
2290 | pub const AF_ASH: u32 = 18; | |
2291 | pub const AF_ECONET: u32 = 19; | |
2292 | pub const AF_ATMSVC: u32 = 20; | |
2293 | pub const AF_RDS: u32 = 21; | |
2294 | pub const AF_SNA: u32 = 22; | |
2295 | pub const AF_IRDA: u32 = 23; | |
2296 | pub const AF_PPPOX: u32 = 24; | |
2297 | pub const AF_WANPIPE: u32 = 25; | |
2298 | pub const AF_LLC: u32 = 26; | |
2299 | pub const AF_CAN: u32 = 29; | |
2300 | pub const AF_TIPC: u32 = 30; | |
2301 | pub const AF_BLUETOOTH: u32 = 31; | |
2302 | pub const AF_IUCV: u32 = 32; | |
2303 | pub const AF_RXRPC: u32 = 33; | |
2304 | pub const AF_ISDN: u32 = 34; | |
2305 | pub const AF_PHONET: u32 = 35; | |
2306 | pub const AF_IEEE802154: u32 = 36; | |
2307 | pub const AF_MAX: u32 = 37; | |
2308 | pub const MSG_OOB: u32 = 1; | |
2309 | pub const MSG_PEEK: u32 = 2; | |
2310 | pub const MSG_DONTROUTE: u32 = 4; | |
2311 | pub const MSG_CTRUNC: u32 = 8; | |
2312 | pub const MSG_PROBE: u32 = 16; | |
2313 | pub const MSG_TRUNC: u32 = 32; | |
2314 | pub const MSG_EOR: u32 = 128; | |
2315 | pub const MSG_WAITALL: u32 = 256; | |
2316 | pub const MSG_FIN: u32 = 512; | |
2317 | pub const MSG_SYN: u32 = 1024; | |
2318 | pub const MSG_CONFIRM: u32 = 2048; | |
2319 | pub const MSG_RST: u32 = 4096; | |
2320 | pub const MSG_ERRQUEUE: u32 = 8192; | |
2321 | pub const MSG_NOSIGNAL: u32 = 16384; | |
2322 | pub const MSG_MORE: u32 = 32768; | |
2323 | pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; | |
2324 | pub const STDIN_FILENO: u32 = 0; | |
2325 | pub const STDOUT_FILENO: u32 = 1; | |
2326 | pub const STDERR_FILENO: u32 = 2; | |
2327 | pub const RWF_HIPRI: u32 = 1; | |
2328 | pub const RWF_DSYNC: u32 = 2; | |
2329 | pub const RWF_SYNC: u32 = 4; | |
2330 | pub const RWF_NOWAIT: u32 = 8; | |
2331 | pub const RWF_APPEND: u32 = 16; | |
2332 | pub const EFD_SEMAPHORE: u32 = 1; | |
2333 | pub const EFD_CLOEXEC: u32 = 524288; | |
2334 | pub const EFD_NONBLOCK: u32 = 2048; | |
2335 | pub const EPOLLIN: u32 = 1; | |
2336 | pub const EPOLLPRI: u32 = 2; | |
2337 | pub const EPOLLOUT: u32 = 4; | |
2338 | pub const EPOLLERR: u32 = 8; | |
2339 | pub const EPOLLHUP: u32 = 16; | |
2340 | pub const EPOLLNVAL: u32 = 32; | |
2341 | pub const EPOLLRDNORM: u32 = 64; | |
2342 | pub const EPOLLRDBAND: u32 = 128; | |
2343 | pub const EPOLLWRNORM: u32 = 256; | |
2344 | pub const EPOLLWRBAND: u32 = 512; | |
2345 | pub const EPOLLMSG: u32 = 1024; | |
2346 | pub const EPOLLRDHUP: u32 = 8192; | |
2347 | pub const EPOLLEXCLUSIVE: u32 = 268435456; | |
2348 | pub const EPOLLWAKEUP: u32 = 536870912; | |
2349 | pub const EPOLLONESHOT: u32 = 1073741824; | |
2350 | pub const EPOLLET: u32 = 2147483648; | |
2351 | pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; | |
2352 | pub const TFD_CREATE_FLAGS: u32 = 526336; | |
2353 | pub const TFD_SETTIME_FLAGS: u32 = 1; | |
2354 | pub const SCM_RIGHTS: u32 = 1; | |
2355 | pub const SCM_CREDENTIALS: u32 = 2; | |
2356 | pub const SCM_SECURITY: u32 = 3; | |
2357 | pub const UFFD_API: u32 = 170; | |
2358 | pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; | |
2359 | pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; | |
2360 | pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; | |
2361 | pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; | |
2362 | pub const UFFDIO_COPY_MODE_WP: u32 = 2; | |
2363 | pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; | |
6522a427 EL |
2364 | pub const SPLICE_F_MOVE: u32 = 1; |
2365 | pub const SPLICE_F_NONBLOCK: u32 = 2; | |
2366 | pub const SPLICE_F_MORE: u32 = 4; | |
2367 | pub const SPLICE_F_GIFT: u32 = 8; | |
064997fb FG |
2368 | pub type size_t = crate::ctypes::c_uint; |
2369 | pub type ssize_t = crate::ctypes::c_int; | |
2370 | pub type __s8 = crate::ctypes::c_schar; | |
2371 | pub type __u8 = crate::ctypes::c_uchar; | |
2372 | pub type __s16 = crate::ctypes::c_short; | |
2373 | pub type __u16 = crate::ctypes::c_ushort; | |
2374 | pub type __s32 = crate::ctypes::c_int; | |
2375 | pub type __u32 = crate::ctypes::c_uint; | |
2376 | pub type __s64 = crate::ctypes::c_longlong; | |
2377 | pub type __u64 = crate::ctypes::c_ulonglong; | |
2378 | #[repr(C)] | |
2379 | #[derive(Debug, Copy, Clone)] | |
2380 | pub struct __kernel_fd_set { | |
2381 | pub fds_bits: [crate::ctypes::c_ulong; 32usize], | |
2382 | } | |
2383 | pub type __kernel_sighandler_t = ::core::option::Option<unsafe extern "C" fn(arg1: crate::ctypes::c_int)>; | |
2384 | pub type __kernel_key_t = crate::ctypes::c_int; | |
2385 | pub type __kernel_mqd_t = crate::ctypes::c_int; | |
2386 | pub type __kernel_long_t = crate::ctypes::c_long; | |
2387 | pub type __kernel_ulong_t = crate::ctypes::c_ulong; | |
2388 | pub type __kernel_ino_t = __kernel_ulong_t; | |
2389 | pub type __kernel_mode_t = crate::ctypes::c_uint; | |
2390 | pub type __kernel_pid_t = crate::ctypes::c_int; | |
2391 | pub type __kernel_ipc_pid_t = crate::ctypes::c_int; | |
2392 | pub type __kernel_uid_t = crate::ctypes::c_uint; | |
2393 | pub type __kernel_gid_t = crate::ctypes::c_uint; | |
2394 | pub type __kernel_suseconds_t = __kernel_long_t; | |
2395 | pub type __kernel_daddr_t = crate::ctypes::c_int; | |
2396 | pub type __kernel_uid32_t = crate::ctypes::c_uint; | |
2397 | pub type __kernel_gid32_t = crate::ctypes::c_uint; | |
2398 | pub type __kernel_old_uid_t = __kernel_uid_t; | |
2399 | pub type __kernel_old_gid_t = __kernel_gid_t; | |
2400 | pub type __kernel_old_dev_t = crate::ctypes::c_uint; | |
2401 | pub type __kernel_size_t = crate::ctypes::c_uint; | |
2402 | pub type __kernel_ssize_t = crate::ctypes::c_int; | |
2403 | pub type __kernel_ptrdiff_t = crate::ctypes::c_int; | |
2404 | #[repr(C)] | |
2405 | #[derive(Debug, Copy, Clone)] | |
2406 | pub struct __kernel_fsid_t { | |
2407 | pub val: [crate::ctypes::c_int; 2usize], | |
2408 | } | |
2409 | pub type __kernel_off_t = __kernel_long_t; | |
2410 | pub type __kernel_loff_t = crate::ctypes::c_longlong; | |
2411 | pub type __kernel_old_time_t = __kernel_long_t; | |
2412 | pub type __kernel_time_t = __kernel_long_t; | |
2413 | pub type __kernel_time64_t = crate::ctypes::c_longlong; | |
2414 | pub type __kernel_clock_t = __kernel_long_t; | |
2415 | pub type __kernel_timer_t = crate::ctypes::c_int; | |
2416 | pub type __kernel_clockid_t = crate::ctypes::c_int; | |
2417 | pub type __kernel_caddr_t = *mut crate::ctypes::c_char; | |
2418 | pub type __kernel_uid16_t = crate::ctypes::c_ushort; | |
2419 | pub type __kernel_gid16_t = crate::ctypes::c_ushort; | |
2420 | pub type __le16 = __u16; | |
2421 | pub type __be16 = __u16; | |
2422 | pub type __le32 = __u32; | |
2423 | pub type __be32 = __u32; | |
2424 | pub type __le64 = __u64; | |
2425 | pub type __be64 = __u64; | |
2426 | pub type __sum16 = __u16; | |
2427 | pub type __wsum = __u32; | |
2428 | pub type __poll_t = crate::ctypes::c_uint; | |
2429 | #[repr(C)] | |
2430 | #[derive(Debug, Copy, Clone)] | |
2431 | pub struct f_owner_ex { | |
2432 | pub type_: crate::ctypes::c_int, | |
2433 | pub pid: __kernel_pid_t, | |
2434 | } | |
2435 | #[repr(C)] | |
2436 | #[derive(Debug, Copy, Clone)] | |
2437 | pub struct flock { | |
2438 | pub l_type: crate::ctypes::c_short, | |
2439 | pub l_whence: crate::ctypes::c_short, | |
2440 | pub l_start: __kernel_off_t, | |
2441 | pub l_len: __kernel_off_t, | |
2442 | pub l_pid: __kernel_pid_t, | |
2443 | } | |
2444 | #[repr(C)] | |
2445 | #[derive(Debug, Copy, Clone)] | |
2446 | pub struct flock64 { | |
2447 | pub l_type: crate::ctypes::c_short, | |
2448 | pub l_whence: crate::ctypes::c_short, | |
2449 | pub l_start: __kernel_loff_t, | |
2450 | pub l_len: __kernel_loff_t, | |
2451 | pub l_pid: __kernel_pid_t, | |
2452 | } | |
2453 | #[repr(C)] | |
2454 | #[derive(Debug, Copy, Clone)] | |
2455 | pub struct open_how { | |
2456 | pub flags: __u64, | |
2457 | pub mode: __u64, | |
2458 | pub resolve: __u64, | |
2459 | } | |
2460 | #[repr(C)] | |
2461 | #[derive(Debug, Copy, Clone)] | |
2462 | pub struct epoll_event { | |
2463 | pub events: __poll_t, | |
2464 | pub data: __u64, | |
2465 | } | |
2466 | #[repr(C)] | |
2467 | #[derive(Debug, Copy, Clone)] | |
2468 | pub struct fscrypt_policy_v1 { | |
2469 | pub version: __u8, | |
2470 | pub contents_encryption_mode: __u8, | |
2471 | pub filenames_encryption_mode: __u8, | |
2472 | pub flags: __u8, | |
2473 | pub master_key_descriptor: [__u8; 8usize], | |
2474 | } | |
2475 | #[repr(C)] | |
2476 | #[derive(Debug, Copy, Clone)] | |
2477 | pub struct fscrypt_key { | |
2478 | pub mode: __u32, | |
2479 | pub raw: [__u8; 64usize], | |
2480 | pub size: __u32, | |
2481 | } | |
2482 | #[repr(C)] | |
2483 | #[derive(Debug, Copy, Clone)] | |
2484 | pub struct fscrypt_policy_v2 { | |
2485 | pub version: __u8, | |
2486 | pub contents_encryption_mode: __u8, | |
2487 | pub filenames_encryption_mode: __u8, | |
2488 | pub flags: __u8, | |
2489 | pub __reserved: [__u8; 4usize], | |
2490 | pub master_key_identifier: [__u8; 16usize], | |
2491 | } | |
2492 | #[repr(C)] | |
2493 | #[derive(Copy, Clone)] | |
2494 | pub struct fscrypt_get_policy_ex_arg { | |
2495 | pub policy_size: __u64, | |
2496 | pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, | |
2497 | } | |
2498 | #[repr(C)] | |
2499 | #[derive(Copy, Clone)] | |
2500 | pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { | |
2501 | pub version: __u8, | |
2502 | pub v1: fscrypt_policy_v1, | |
2503 | pub v2: fscrypt_policy_v2, | |
2504 | } | |
2505 | #[repr(C)] | |
2506 | #[derive(Copy, Clone)] | |
2507 | pub struct fscrypt_key_specifier { | |
2508 | pub type_: __u32, | |
2509 | pub __reserved: __u32, | |
2510 | pub u: fscrypt_key_specifier__bindgen_ty_1, | |
2511 | } | |
2512 | #[repr(C)] | |
2513 | #[derive(Copy, Clone)] | |
2514 | pub union fscrypt_key_specifier__bindgen_ty_1 { | |
2515 | pub __reserved: [__u8; 32usize], | |
2516 | pub descriptor: [__u8; 8usize], | |
2517 | pub identifier: [__u8; 16usize], | |
2518 | } | |
2519 | #[repr(C)] | |
2520 | #[derive(Debug)] | |
2521 | pub struct fscrypt_provisioning_key_payload { | |
2522 | pub type_: __u32, | |
2523 | pub __reserved: __u32, | |
2524 | pub raw: __IncompleteArrayField<__u8>, | |
2525 | } | |
2526 | #[repr(C)] | |
2527 | pub struct fscrypt_add_key_arg { | |
2528 | pub key_spec: fscrypt_key_specifier, | |
2529 | pub raw_size: __u32, | |
2530 | pub key_id: __u32, | |
2531 | pub __reserved: [__u32; 8usize], | |
2532 | pub raw: __IncompleteArrayField<__u8>, | |
2533 | } | |
2534 | #[repr(C)] | |
2535 | #[derive(Copy, Clone)] | |
2536 | pub struct fscrypt_remove_key_arg { | |
2537 | pub key_spec: fscrypt_key_specifier, | |
2538 | pub removal_status_flags: __u32, | |
2539 | pub __reserved: [__u32; 5usize], | |
2540 | } | |
2541 | #[repr(C)] | |
2542 | #[derive(Copy, Clone)] | |
2543 | pub struct fscrypt_get_key_status_arg { | |
2544 | pub key_spec: fscrypt_key_specifier, | |
2545 | pub __reserved: [__u32; 6usize], | |
2546 | pub status: __u32, | |
2547 | pub status_flags: __u32, | |
2548 | pub user_count: __u32, | |
2549 | pub __out_reserved: [__u32; 13usize], | |
2550 | } | |
2551 | #[repr(u32)] | |
2552 | #[non_exhaustive] | |
2553 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
2554 | pub enum fsconfig_command { | |
2555 | FSCONFIG_SET_FLAG = 0, | |
2556 | FSCONFIG_SET_STRING = 1, | |
2557 | FSCONFIG_SET_BINARY = 2, | |
2558 | FSCONFIG_SET_PATH = 3, | |
2559 | FSCONFIG_SET_PATH_EMPTY = 4, | |
2560 | FSCONFIG_SET_FD = 5, | |
2561 | FSCONFIG_CMD_CREATE = 6, | |
2562 | FSCONFIG_CMD_RECONFIGURE = 7, | |
2563 | } | |
2564 | #[repr(C)] | |
2565 | #[derive(Debug, Copy, Clone)] | |
2566 | pub struct mount_attr { | |
2567 | pub attr_set: __u64, | |
2568 | pub attr_clr: __u64, | |
2569 | pub propagation: __u64, | |
2570 | pub userns_fd: __u64, | |
2571 | } | |
2572 | #[repr(C)] | |
2573 | #[derive(Debug, Copy, Clone)] | |
2574 | pub struct file_clone_range { | |
2575 | pub src_fd: __s64, | |
2576 | pub src_offset: __u64, | |
2577 | pub src_length: __u64, | |
2578 | pub dest_offset: __u64, | |
2579 | } | |
2580 | #[repr(C)] | |
2581 | #[derive(Debug, Copy, Clone)] | |
2582 | pub struct fstrim_range { | |
2583 | pub start: __u64, | |
2584 | pub len: __u64, | |
2585 | pub minlen: __u64, | |
2586 | } | |
2587 | #[repr(C)] | |
2588 | #[derive(Debug, Copy, Clone)] | |
2589 | pub struct file_dedupe_range_info { | |
2590 | pub dest_fd: __s64, | |
2591 | pub dest_offset: __u64, | |
2592 | pub bytes_deduped: __u64, | |
2593 | pub status: __s32, | |
2594 | pub reserved: __u32, | |
2595 | } | |
2596 | #[repr(C)] | |
2597 | #[derive(Debug)] | |
2598 | pub struct file_dedupe_range { | |
2599 | pub src_offset: __u64, | |
2600 | pub src_length: __u64, | |
2601 | pub dest_count: __u16, | |
2602 | pub reserved1: __u16, | |
2603 | pub reserved2: __u32, | |
2604 | pub info: __IncompleteArrayField<file_dedupe_range_info>, | |
2605 | } | |
2606 | #[repr(C)] | |
2607 | #[derive(Debug, Copy, Clone)] | |
2608 | pub struct files_stat_struct { | |
2609 | pub nr_files: crate::ctypes::c_ulong, | |
2610 | pub nr_free_files: crate::ctypes::c_ulong, | |
2611 | pub max_files: crate::ctypes::c_ulong, | |
2612 | } | |
2613 | #[repr(C)] | |
2614 | #[derive(Debug, Copy, Clone)] | |
2615 | pub struct inodes_stat_t { | |
2616 | pub nr_inodes: crate::ctypes::c_long, | |
2617 | pub nr_unused: crate::ctypes::c_long, | |
2618 | pub dummy: [crate::ctypes::c_long; 5usize], | |
2619 | } | |
2620 | #[repr(C)] | |
2621 | #[derive(Debug, Copy, Clone)] | |
2622 | pub struct fsxattr { | |
2623 | pub fsx_xflags: __u32, | |
2624 | pub fsx_extsize: __u32, | |
2625 | pub fsx_nextents: __u32, | |
2626 | pub fsx_projid: __u32, | |
2627 | pub fsx_cowextsize: __u32, | |
2628 | pub fsx_pad: [crate::ctypes::c_uchar; 8usize], | |
2629 | } | |
2630 | pub type __kernel_rwf_t = crate::ctypes::c_int; | |
2631 | #[repr(C)] | |
2632 | #[derive(Debug, Copy, Clone)] | |
2633 | pub struct futex_waitv { | |
2634 | pub val: __u64, | |
2635 | pub uaddr: __u64, | |
2636 | pub flags: __u32, | |
2637 | pub __reserved: __u32, | |
2638 | } | |
2639 | #[repr(C)] | |
2640 | #[derive(Debug, Copy, Clone)] | |
2641 | pub struct robust_list { | |
2642 | pub next: *mut robust_list, | |
2643 | } | |
2644 | #[repr(C)] | |
2645 | #[derive(Debug, Copy, Clone)] | |
2646 | pub struct robust_list_head { | |
2647 | pub list: robust_list, | |
2648 | pub futex_offset: crate::ctypes::c_long, | |
2649 | pub list_op_pending: *mut robust_list, | |
2650 | } | |
2651 | pub type __kernel_sa_family_t = crate::ctypes::c_ushort; | |
2652 | #[repr(C)] | |
2653 | #[derive(Copy, Clone)] | |
2654 | pub struct __kernel_sockaddr_storage { | |
2655 | pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, | |
2656 | } | |
2657 | #[repr(C)] | |
2658 | #[derive(Copy, Clone)] | |
2659 | pub union __kernel_sockaddr_storage__bindgen_ty_1 { | |
2660 | pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, | |
2661 | pub __align: *mut crate::ctypes::c_void, | |
2662 | } | |
2663 | #[repr(C)] | |
2664 | #[derive(Debug, Copy, Clone)] | |
2665 | pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { | |
2666 | pub ss_family: __kernel_sa_family_t, | |
2667 | pub __data: [crate::ctypes::c_char; 126usize], | |
2668 | } | |
2669 | pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; | |
2670 | pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; | |
2671 | pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; | |
2672 | pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; | |
2673 | pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; | |
2674 | pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; | |
2675 | pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; | |
2676 | pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; | |
2677 | pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; | |
2678 | pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; | |
2679 | pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; | |
2680 | pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; | |
2681 | pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; | |
2682 | pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; | |
2683 | pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; | |
2684 | pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; | |
2685 | pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; | |
2686 | pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; | |
2687 | pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; | |
2688 | pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; | |
2689 | pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; | |
2690 | pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; | |
2691 | pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; | |
2692 | pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; | |
2693 | pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; | |
2694 | pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; | |
2695 | pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; | |
2696 | pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; | |
2697 | #[repr(u32)] | |
2698 | #[non_exhaustive] | |
2699 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
2700 | pub enum _bindgen_ty_1 { | |
2701 | IPPROTO_IP = 0, | |
2702 | IPPROTO_ICMP = 1, | |
2703 | IPPROTO_IGMP = 2, | |
2704 | IPPROTO_IPIP = 4, | |
2705 | IPPROTO_TCP = 6, | |
2706 | IPPROTO_EGP = 8, | |
2707 | IPPROTO_PUP = 12, | |
2708 | IPPROTO_UDP = 17, | |
2709 | IPPROTO_IDP = 22, | |
2710 | IPPROTO_TP = 29, | |
2711 | IPPROTO_DCCP = 33, | |
2712 | IPPROTO_IPV6 = 41, | |
2713 | IPPROTO_RSVP = 46, | |
2714 | IPPROTO_GRE = 47, | |
2715 | IPPROTO_ESP = 50, | |
2716 | IPPROTO_AH = 51, | |
2717 | IPPROTO_MTP = 92, | |
2718 | IPPROTO_BEETPH = 94, | |
2719 | IPPROTO_ENCAP = 98, | |
2720 | IPPROTO_PIM = 103, | |
2721 | IPPROTO_COMP = 108, | |
2722 | IPPROTO_SCTP = 132, | |
2723 | IPPROTO_UDPLITE = 136, | |
2724 | IPPROTO_MPLS = 137, | |
2725 | IPPROTO_ETHERNET = 143, | |
2726 | IPPROTO_RAW = 255, | |
2727 | IPPROTO_MPTCP = 262, | |
2728 | IPPROTO_MAX = 263, | |
2729 | } | |
2730 | #[repr(C)] | |
2731 | #[derive(Debug, Copy, Clone)] | |
2732 | pub struct in_addr { | |
2733 | pub s_addr: __be32, | |
2734 | } | |
2735 | #[repr(C)] | |
2736 | #[derive(Debug, Copy, Clone)] | |
2737 | pub struct ip_mreq { | |
2738 | pub imr_multiaddr: in_addr, | |
2739 | pub imr_interface: in_addr, | |
2740 | } | |
2741 | #[repr(C)] | |
2742 | #[derive(Debug, Copy, Clone)] | |
2743 | pub struct ip_mreqn { | |
2744 | pub imr_multiaddr: in_addr, | |
2745 | pub imr_address: in_addr, | |
2746 | pub imr_ifindex: crate::ctypes::c_int, | |
2747 | } | |
2748 | #[repr(C)] | |
2749 | #[derive(Debug, Copy, Clone)] | |
2750 | pub struct ip_mreq_source { | |
2751 | pub imr_multiaddr: __be32, | |
2752 | pub imr_interface: __be32, | |
2753 | pub imr_sourceaddr: __be32, | |
2754 | } | |
2755 | #[repr(C)] | |
2756 | pub struct ip_msfilter { | |
2757 | pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, | |
2758 | } | |
2759 | #[repr(C)] | |
2760 | pub struct ip_msfilter__bindgen_ty_1 { | |
2761 | pub __bindgen_anon_1: __BindgenUnionField<ip_msfilter__bindgen_ty_1__bindgen_ty_1>, | |
2762 | pub __bindgen_anon_2: __BindgenUnionField<ip_msfilter__bindgen_ty_1__bindgen_ty_2>, | |
2763 | pub bindgen_union_field: [u32; 5usize], | |
2764 | } | |
2765 | #[repr(C)] | |
2766 | #[derive(Debug, Copy, Clone)] | |
2767 | pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { | |
2768 | pub imsf_multiaddr_aux: __be32, | |
2769 | pub imsf_interface_aux: __be32, | |
2770 | pub imsf_fmode_aux: __u32, | |
2771 | pub imsf_numsrc_aux: __u32, | |
2772 | pub imsf_slist: [__be32; 1usize], | |
2773 | } | |
2774 | #[repr(C)] | |
2775 | #[derive(Debug)] | |
2776 | pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_2 { | |
2777 | pub imsf_multiaddr: __be32, | |
2778 | pub imsf_interface: __be32, | |
2779 | pub imsf_fmode: __u32, | |
2780 | pub imsf_numsrc: __u32, | |
2781 | pub imsf_slist_flex: __IncompleteArrayField<__be32>, | |
2782 | } | |
2783 | #[repr(C)] | |
2784 | #[derive(Copy, Clone)] | |
2785 | pub struct group_req { | |
2786 | pub gr_interface: __u32, | |
2787 | pub gr_group: __kernel_sockaddr_storage, | |
2788 | } | |
2789 | #[repr(C)] | |
2790 | #[derive(Copy, Clone)] | |
2791 | pub struct group_source_req { | |
2792 | pub gsr_interface: __u32, | |
2793 | pub gsr_group: __kernel_sockaddr_storage, | |
2794 | pub gsr_source: __kernel_sockaddr_storage, | |
2795 | } | |
2796 | #[repr(C)] | |
2797 | pub struct group_filter { | |
2798 | pub __bindgen_anon_1: group_filter__bindgen_ty_1, | |
2799 | } | |
2800 | #[repr(C)] | |
2801 | pub struct group_filter__bindgen_ty_1 { | |
2802 | pub __bindgen_anon_1: __BindgenUnionField<group_filter__bindgen_ty_1__bindgen_ty_1>, | |
2803 | pub __bindgen_anon_2: __BindgenUnionField<group_filter__bindgen_ty_1__bindgen_ty_2>, | |
2804 | pub bindgen_union_field: [u32; 67usize], | |
2805 | } | |
2806 | #[repr(C)] | |
2807 | #[derive(Copy, Clone)] | |
2808 | pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { | |
2809 | pub gf_interface_aux: __u32, | |
2810 | pub gf_group_aux: __kernel_sockaddr_storage, | |
2811 | pub gf_fmode_aux: __u32, | |
2812 | pub gf_numsrc_aux: __u32, | |
2813 | pub gf_slist: [__kernel_sockaddr_storage; 1usize], | |
2814 | } | |
2815 | #[repr(C)] | |
2816 | pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { | |
2817 | pub gf_interface: __u32, | |
2818 | pub gf_group: __kernel_sockaddr_storage, | |
2819 | pub gf_fmode: __u32, | |
2820 | pub gf_numsrc: __u32, | |
2821 | pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, | |
2822 | } | |
2823 | #[repr(C)] | |
2824 | #[derive(Debug, Copy, Clone)] | |
2825 | pub struct in_pktinfo { | |
2826 | pub ipi_ifindex: crate::ctypes::c_int, | |
2827 | pub ipi_spec_dst: in_addr, | |
2828 | pub ipi_addr: in_addr, | |
2829 | } | |
2830 | #[repr(C)] | |
2831 | #[derive(Debug, Copy, Clone)] | |
2832 | pub struct sockaddr_in { | |
2833 | pub sin_family: __kernel_sa_family_t, | |
2834 | pub sin_port: __be16, | |
2835 | pub sin_addr: in_addr, | |
2836 | pub __pad: [crate::ctypes::c_uchar; 8usize], | |
2837 | } | |
2838 | #[repr(C)] | |
6522a427 EL |
2839 | #[derive(Debug)] |
2840 | pub struct inotify_event { | |
2841 | pub wd: __s32, | |
2842 | pub mask: __u32, | |
2843 | pub cookie: __u32, | |
2844 | pub len: __u32, | |
2845 | pub name: __IncompleteArrayField<crate::ctypes::c_char>, | |
2846 | } | |
2847 | #[repr(C)] | |
064997fb FG |
2848 | #[derive(Debug, Copy, Clone)] |
2849 | pub struct iphdr { | |
2850 | pub _bitfield_align_1: [u8; 0], | |
2851 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, | |
2852 | pub tos: __u8, | |
2853 | pub tot_len: __be16, | |
2854 | pub id: __be16, | |
2855 | pub frag_off: __be16, | |
2856 | pub ttl: __u8, | |
2857 | pub protocol: __u8, | |
2858 | pub check: __sum16, | |
2859 | pub saddr: __be32, | |
2860 | pub daddr: __be32, | |
2861 | } | |
2862 | impl iphdr { | |
2863 | #[inline] | |
2864 | pub fn ihl(&self) -> __u8 { | |
2865 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } | |
2866 | } | |
2867 | #[inline] | |
2868 | pub fn set_ihl(&mut self, val: __u8) { | |
2869 | unsafe { | |
2870 | let val: u8 = ::core::mem::transmute(val); | |
2871 | self._bitfield_1.set(0usize, 4u8, val as u64) | |
2872 | } | |
2873 | } | |
2874 | #[inline] | |
2875 | pub fn version(&self) -> __u8 { | |
2876 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } | |
2877 | } | |
2878 | #[inline] | |
2879 | pub fn set_version(&mut self, val: __u8) { | |
2880 | unsafe { | |
2881 | let val: u8 = ::core::mem::transmute(val); | |
2882 | self._bitfield_1.set(4usize, 4u8, val as u64) | |
2883 | } | |
2884 | } | |
2885 | #[inline] | |
2886 | pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { | |
2887 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); | |
2888 | __bindgen_bitfield_unit.set(0usize, 4u8, { | |
2889 | let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; | |
2890 | ihl as u64 | |
2891 | }); | |
2892 | __bindgen_bitfield_unit.set(4usize, 4u8, { | |
2893 | let version: u8 = unsafe { ::core::mem::transmute(version) }; | |
2894 | version as u64 | |
2895 | }); | |
2896 | __bindgen_bitfield_unit | |
2897 | } | |
2898 | } | |
2899 | #[repr(C)] | |
2900 | #[derive(Debug)] | |
2901 | pub struct ip_auth_hdr { | |
2902 | pub nexthdr: __u8, | |
2903 | pub hdrlen: __u8, | |
2904 | pub reserved: __be16, | |
2905 | pub spi: __be32, | |
2906 | pub seq_no: __be32, | |
2907 | pub auth_data: __IncompleteArrayField<__u8>, | |
2908 | } | |
2909 | #[repr(C)] | |
2910 | #[derive(Debug)] | |
2911 | pub struct ip_esp_hdr { | |
2912 | pub spi: __be32, | |
2913 | pub seq_no: __be32, | |
2914 | pub enc_data: __IncompleteArrayField<__u8>, | |
2915 | } | |
2916 | #[repr(C)] | |
2917 | #[derive(Debug, Copy, Clone)] | |
2918 | pub struct ip_comp_hdr { | |
2919 | pub nexthdr: __u8, | |
2920 | pub flags: __u8, | |
2921 | pub cpi: __be16, | |
2922 | } | |
2923 | #[repr(C)] | |
2924 | #[derive(Debug, Copy, Clone)] | |
2925 | pub struct ip_beet_phdr { | |
2926 | pub nexthdr: __u8, | |
2927 | pub hdrlen: __u8, | |
2928 | pub padlen: __u8, | |
2929 | pub reserved: __u8, | |
2930 | } | |
2931 | pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; | |
2932 | pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; | |
2933 | pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; | |
2934 | pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; | |
2935 | pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; | |
2936 | pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; | |
2937 | pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; | |
2938 | pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; | |
2939 | pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; | |
2940 | pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; | |
2941 | pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; | |
2942 | pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; | |
2943 | pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; | |
2944 | pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; | |
2945 | pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; | |
2946 | pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; | |
2947 | pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; | |
2948 | pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; | |
2949 | pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; | |
2950 | pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; | |
2951 | pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; | |
2952 | pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; | |
2953 | pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; | |
2954 | pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; | |
2955 | pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; | |
2956 | pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; | |
2957 | pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; | |
2958 | pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; | |
2959 | pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; | |
2960 | pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; | |
2961 | pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; | |
2962 | pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; | |
2963 | pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; | |
2964 | pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; | |
2965 | #[repr(u32)] | |
2966 | #[non_exhaustive] | |
2967 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
2968 | pub enum _bindgen_ty_2 { | |
2969 | IPV4_DEVCONF_FORWARDING = 1, | |
2970 | IPV4_DEVCONF_MC_FORWARDING = 2, | |
2971 | IPV4_DEVCONF_PROXY_ARP = 3, | |
2972 | IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, | |
2973 | IPV4_DEVCONF_SECURE_REDIRECTS = 5, | |
2974 | IPV4_DEVCONF_SEND_REDIRECTS = 6, | |
2975 | IPV4_DEVCONF_SHARED_MEDIA = 7, | |
2976 | IPV4_DEVCONF_RP_FILTER = 8, | |
2977 | IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, | |
2978 | IPV4_DEVCONF_BOOTP_RELAY = 10, | |
2979 | IPV4_DEVCONF_LOG_MARTIANS = 11, | |
2980 | IPV4_DEVCONF_TAG = 12, | |
2981 | IPV4_DEVCONF_ARPFILTER = 13, | |
2982 | IPV4_DEVCONF_MEDIUM_ID = 14, | |
2983 | IPV4_DEVCONF_NOXFRM = 15, | |
2984 | IPV4_DEVCONF_NOPOLICY = 16, | |
2985 | IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, | |
2986 | IPV4_DEVCONF_ARP_ANNOUNCE = 18, | |
2987 | IPV4_DEVCONF_ARP_IGNORE = 19, | |
2988 | IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, | |
2989 | IPV4_DEVCONF_ARP_ACCEPT = 21, | |
2990 | IPV4_DEVCONF_ARP_NOTIFY = 22, | |
2991 | IPV4_DEVCONF_ACCEPT_LOCAL = 23, | |
2992 | IPV4_DEVCONF_SRC_VMARK = 24, | |
2993 | IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, | |
2994 | IPV4_DEVCONF_ROUTE_LOCALNET = 26, | |
2995 | IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, | |
2996 | IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, | |
2997 | IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, | |
2998 | IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, | |
2999 | IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, | |
3000 | IPV4_DEVCONF_BC_FORWARDING = 32, | |
3001 | IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, | |
3002 | __IPV4_DEVCONF_MAX = 34, | |
3003 | } | |
3004 | #[repr(C)] | |
3005 | #[derive(Copy, Clone)] | |
3006 | pub struct in6_addr { | |
3007 | pub in6_u: in6_addr__bindgen_ty_1, | |
3008 | } | |
3009 | #[repr(C)] | |
3010 | #[derive(Copy, Clone)] | |
3011 | pub union in6_addr__bindgen_ty_1 { | |
3012 | pub u6_addr8: [__u8; 16usize], | |
3013 | pub u6_addr16: [__be16; 8usize], | |
3014 | pub u6_addr32: [__be32; 4usize], | |
3015 | } | |
3016 | #[repr(C)] | |
3017 | #[derive(Copy, Clone)] | |
3018 | pub struct sockaddr_in6 { | |
3019 | pub sin6_family: crate::ctypes::c_ushort, | |
3020 | pub sin6_port: __be16, | |
3021 | pub sin6_flowinfo: __be32, | |
3022 | pub sin6_addr: in6_addr, | |
3023 | pub sin6_scope_id: __u32, | |
3024 | } | |
3025 | #[repr(C)] | |
3026 | #[derive(Copy, Clone)] | |
3027 | pub struct ipv6_mreq { | |
3028 | pub ipv6mr_multiaddr: in6_addr, | |
3029 | pub ipv6mr_ifindex: crate::ctypes::c_int, | |
3030 | } | |
3031 | #[repr(C)] | |
3032 | #[derive(Copy, Clone)] | |
3033 | pub struct in6_flowlabel_req { | |
3034 | pub flr_dst: in6_addr, | |
3035 | pub flr_label: __be32, | |
3036 | pub flr_action: __u8, | |
3037 | pub flr_share: __u8, | |
3038 | pub flr_flags: __u16, | |
3039 | pub flr_expires: __u16, | |
3040 | pub flr_linger: __u16, | |
3041 | pub __flr_pad: __u32, | |
3042 | } | |
3043 | #[repr(C)] | |
3044 | #[derive(Copy, Clone)] | |
3045 | pub struct in6_pktinfo { | |
3046 | pub ipi6_addr: in6_addr, | |
3047 | pub ipi6_ifindex: crate::ctypes::c_int, | |
3048 | } | |
3049 | #[repr(C)] | |
3050 | #[derive(Copy, Clone)] | |
3051 | pub struct ip6_mtuinfo { | |
3052 | pub ip6m_addr: sockaddr_in6, | |
3053 | pub ip6m_mtu: __u32, | |
3054 | } | |
3055 | #[repr(C)] | |
3056 | #[derive(Copy, Clone)] | |
3057 | pub struct in6_ifreq { | |
3058 | pub ifr6_addr: in6_addr, | |
3059 | pub ifr6_prefixlen: __u32, | |
3060 | pub ifr6_ifindex: crate::ctypes::c_int, | |
3061 | } | |
3062 | #[repr(C)] | |
3063 | #[derive(Debug, Copy, Clone)] | |
3064 | pub struct ipv6_rt_hdr { | |
3065 | pub nexthdr: __u8, | |
3066 | pub hdrlen: __u8, | |
3067 | pub type_: __u8, | |
3068 | pub segments_left: __u8, | |
3069 | } | |
3070 | #[repr(C, packed)] | |
3071 | #[derive(Debug, Copy, Clone)] | |
3072 | pub struct ipv6_opt_hdr { | |
3073 | pub nexthdr: __u8, | |
3074 | pub hdrlen: __u8, | |
3075 | } | |
3076 | #[repr(C)] | |
3077 | pub struct rt0_hdr { | |
3078 | pub rt_hdr: ipv6_rt_hdr, | |
3079 | pub reserved: __u32, | |
3080 | pub addr: __IncompleteArrayField<in6_addr>, | |
3081 | } | |
3082 | #[repr(C)] | |
3083 | #[derive(Copy, Clone)] | |
3084 | pub struct rt2_hdr { | |
3085 | pub rt_hdr: ipv6_rt_hdr, | |
3086 | pub reserved: __u32, | |
3087 | pub addr: in6_addr, | |
3088 | } | |
3089 | #[repr(C, packed)] | |
3090 | #[derive(Copy, Clone)] | |
3091 | pub struct ipv6_destopt_hao { | |
3092 | pub type_: __u8, | |
3093 | pub length: __u8, | |
3094 | pub addr: in6_addr, | |
3095 | } | |
3096 | #[repr(C)] | |
3097 | #[derive(Copy, Clone)] | |
3098 | pub struct ipv6hdr { | |
3099 | pub _bitfield_align_1: [u8; 0], | |
3100 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, | |
3101 | pub flow_lbl: [__u8; 3usize], | |
3102 | pub payload_len: __be16, | |
3103 | pub nexthdr: __u8, | |
3104 | pub hop_limit: __u8, | |
3105 | pub saddr: in6_addr, | |
3106 | pub daddr: in6_addr, | |
3107 | } | |
3108 | impl ipv6hdr { | |
3109 | #[inline] | |
3110 | pub fn priority(&self) -> __u8 { | |
3111 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } | |
3112 | } | |
3113 | #[inline] | |
3114 | pub fn set_priority(&mut self, val: __u8) { | |
3115 | unsafe { | |
3116 | let val: u8 = ::core::mem::transmute(val); | |
3117 | self._bitfield_1.set(0usize, 4u8, val as u64) | |
3118 | } | |
3119 | } | |
3120 | #[inline] | |
3121 | pub fn version(&self) -> __u8 { | |
3122 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } | |
3123 | } | |
3124 | #[inline] | |
3125 | pub fn set_version(&mut self, val: __u8) { | |
3126 | unsafe { | |
3127 | let val: u8 = ::core::mem::transmute(val); | |
3128 | self._bitfield_1.set(4usize, 4u8, val as u64) | |
3129 | } | |
3130 | } | |
3131 | #[inline] | |
3132 | pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { | |
3133 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); | |
3134 | __bindgen_bitfield_unit.set(0usize, 4u8, { | |
3135 | let priority: u8 = unsafe { ::core::mem::transmute(priority) }; | |
3136 | priority as u64 | |
3137 | }); | |
3138 | __bindgen_bitfield_unit.set(4usize, 4u8, { | |
3139 | let version: u8 = unsafe { ::core::mem::transmute(version) }; | |
3140 | version as u64 | |
3141 | }); | |
3142 | __bindgen_bitfield_unit | |
3143 | } | |
3144 | } | |
3145 | pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; | |
3146 | pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; | |
3147 | pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; | |
3148 | pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; | |
3149 | pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; | |
3150 | pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; | |
3151 | pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; | |
3152 | pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; | |
3153 | pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; | |
3154 | pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; | |
3155 | pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; | |
3156 | pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; | |
3157 | pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; | |
3158 | pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; | |
3159 | pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; | |
3160 | pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; | |
3161 | pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; | |
3162 | pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; | |
3163 | pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; | |
3164 | pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; | |
3165 | pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; | |
3166 | pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; | |
3167 | pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; | |
3168 | pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; | |
3169 | pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; | |
3170 | pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; | |
3171 | pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; | |
3172 | pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; | |
3173 | pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; | |
3174 | pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; | |
3175 | pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; | |
3176 | pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; | |
3177 | pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; | |
3178 | pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; | |
3179 | pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; | |
3180 | pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; | |
3181 | pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; | |
3182 | pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; | |
3183 | pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; | |
3184 | pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; | |
3185 | pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; | |
3186 | pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; | |
3187 | pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; | |
3188 | pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; | |
3189 | pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; | |
3190 | pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; | |
3191 | pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; | |
3192 | pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; | |
3193 | pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; | |
3194 | pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; | |
3195 | pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; | |
3196 | pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; | |
3197 | pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; | |
3198 | pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; | |
3199 | pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; | |
3200 | pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; | |
3201 | pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; | |
3202 | pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; | |
3203 | #[repr(u32)] | |
3204 | #[non_exhaustive] | |
3205 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
3206 | pub enum _bindgen_ty_3 { | |
3207 | DEVCONF_FORWARDING = 0, | |
3208 | DEVCONF_HOPLIMIT = 1, | |
3209 | DEVCONF_MTU6 = 2, | |
3210 | DEVCONF_ACCEPT_RA = 3, | |
3211 | DEVCONF_ACCEPT_REDIRECTS = 4, | |
3212 | DEVCONF_AUTOCONF = 5, | |
3213 | DEVCONF_DAD_TRANSMITS = 6, | |
3214 | DEVCONF_RTR_SOLICITS = 7, | |
3215 | DEVCONF_RTR_SOLICIT_INTERVAL = 8, | |
3216 | DEVCONF_RTR_SOLICIT_DELAY = 9, | |
3217 | DEVCONF_USE_TEMPADDR = 10, | |
3218 | DEVCONF_TEMP_VALID_LFT = 11, | |
3219 | DEVCONF_TEMP_PREFERED_LFT = 12, | |
3220 | DEVCONF_REGEN_MAX_RETRY = 13, | |
3221 | DEVCONF_MAX_DESYNC_FACTOR = 14, | |
3222 | DEVCONF_MAX_ADDRESSES = 15, | |
3223 | DEVCONF_FORCE_MLD_VERSION = 16, | |
3224 | DEVCONF_ACCEPT_RA_DEFRTR = 17, | |
3225 | DEVCONF_ACCEPT_RA_PINFO = 18, | |
3226 | DEVCONF_ACCEPT_RA_RTR_PREF = 19, | |
3227 | DEVCONF_RTR_PROBE_INTERVAL = 20, | |
3228 | DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, | |
3229 | DEVCONF_PROXY_NDP = 22, | |
3230 | DEVCONF_OPTIMISTIC_DAD = 23, | |
3231 | DEVCONF_ACCEPT_SOURCE_ROUTE = 24, | |
3232 | DEVCONF_MC_FORWARDING = 25, | |
3233 | DEVCONF_DISABLE_IPV6 = 26, | |
3234 | DEVCONF_ACCEPT_DAD = 27, | |
3235 | DEVCONF_FORCE_TLLAO = 28, | |
3236 | DEVCONF_NDISC_NOTIFY = 29, | |
3237 | DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, | |
3238 | DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, | |
3239 | DEVCONF_SUPPRESS_FRAG_NDISC = 32, | |
3240 | DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, | |
3241 | DEVCONF_USE_OPTIMISTIC = 34, | |
3242 | DEVCONF_ACCEPT_RA_MTU = 35, | |
3243 | DEVCONF_STABLE_SECRET = 36, | |
3244 | DEVCONF_USE_OIF_ADDRS_ONLY = 37, | |
3245 | DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, | |
3246 | DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, | |
3247 | DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, | |
3248 | DEVCONF_DROP_UNSOLICITED_NA = 41, | |
3249 | DEVCONF_KEEP_ADDR_ON_DOWN = 42, | |
3250 | DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, | |
3251 | DEVCONF_SEG6_ENABLED = 44, | |
3252 | DEVCONF_SEG6_REQUIRE_HMAC = 45, | |
3253 | DEVCONF_ENHANCED_DAD = 46, | |
3254 | DEVCONF_ADDR_GEN_MODE = 47, | |
3255 | DEVCONF_DISABLE_POLICY = 48, | |
3256 | DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, | |
3257 | DEVCONF_NDISC_TCLASS = 50, | |
3258 | DEVCONF_RPL_SEG_ENABLED = 51, | |
3259 | DEVCONF_RA_DEFRTR_METRIC = 52, | |
3260 | DEVCONF_IOAM6_ENABLED = 53, | |
3261 | DEVCONF_IOAM6_ID = 54, | |
3262 | DEVCONF_IOAM6_ID_WIDE = 55, | |
3263 | DEVCONF_NDISC_EVICT_NOCARRIER = 56, | |
3264 | DEVCONF_MAX = 57, | |
3265 | } | |
3266 | #[repr(u32)] | |
3267 | #[non_exhaustive] | |
3268 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
3269 | pub enum socket_state { | |
3270 | SS_FREE = 0, | |
3271 | SS_UNCONNECTED = 1, | |
3272 | SS_CONNECTING = 2, | |
3273 | SS_CONNECTED = 3, | |
3274 | SS_DISCONNECTING = 4, | |
3275 | } | |
3276 | #[repr(C)] | |
3277 | #[derive(Debug, Copy, Clone)] | |
3278 | pub struct pollfd { | |
3279 | pub fd: crate::ctypes::c_int, | |
3280 | pub events: crate::ctypes::c_short, | |
3281 | pub revents: crate::ctypes::c_short, | |
3282 | } | |
3283 | #[repr(C)] | |
3284 | #[derive(Debug, Copy, Clone)] | |
3285 | pub struct prctl_mm_map { | |
3286 | pub start_code: __u64, | |
3287 | pub end_code: __u64, | |
3288 | pub start_data: __u64, | |
3289 | pub end_data: __u64, | |
3290 | pub start_brk: __u64, | |
3291 | pub brk: __u64, | |
3292 | pub start_stack: __u64, | |
3293 | pub arg_start: __u64, | |
3294 | pub arg_end: __u64, | |
3295 | pub env_start: __u64, | |
3296 | pub env_end: __u64, | |
3297 | pub auxv: *mut __u64, | |
3298 | pub auxv_size: __u32, | |
3299 | pub exe_fd: __u32, | |
3300 | } | |
3301 | #[repr(C)] | |
3302 | #[derive(Debug)] | |
3303 | pub struct rand_pool_info { | |
3304 | pub entropy_count: crate::ctypes::c_int, | |
3305 | pub buf_size: crate::ctypes::c_int, | |
3306 | pub buf: __IncompleteArrayField<__u32>, | |
3307 | } | |
3308 | #[repr(C)] | |
3309 | #[derive(Debug, Copy, Clone)] | |
3310 | pub struct __kernel_timespec { | |
3311 | pub tv_sec: __kernel_time64_t, | |
3312 | pub tv_nsec: crate::ctypes::c_longlong, | |
3313 | } | |
3314 | #[repr(C)] | |
3315 | #[derive(Debug, Copy, Clone)] | |
3316 | pub struct __kernel_itimerspec { | |
3317 | pub it_interval: __kernel_timespec, | |
3318 | pub it_value: __kernel_timespec, | |
3319 | } | |
3320 | #[repr(C)] | |
3321 | #[derive(Debug, Copy, Clone)] | |
3322 | pub struct __kernel_old_timeval { | |
3323 | pub tv_sec: __kernel_long_t, | |
3324 | pub tv_usec: __kernel_long_t, | |
3325 | } | |
3326 | #[repr(C)] | |
3327 | #[derive(Debug, Copy, Clone)] | |
3328 | pub struct __kernel_old_timespec { | |
3329 | pub tv_sec: __kernel_old_time_t, | |
3330 | pub tv_nsec: crate::ctypes::c_long, | |
3331 | } | |
3332 | #[repr(C)] | |
3333 | #[derive(Debug, Copy, Clone)] | |
3334 | pub struct __kernel_old_itimerval { | |
3335 | pub it_interval: __kernel_old_timeval, | |
3336 | pub it_value: __kernel_old_timeval, | |
3337 | } | |
3338 | #[repr(C)] | |
3339 | #[derive(Debug, Copy, Clone)] | |
3340 | pub struct __kernel_sock_timeval { | |
3341 | pub tv_sec: __s64, | |
3342 | pub tv_usec: __s64, | |
3343 | } | |
3344 | #[repr(C)] | |
3345 | #[derive(Debug, Copy, Clone)] | |
3346 | pub struct timespec { | |
3347 | pub tv_sec: __kernel_old_time_t, | |
3348 | pub tv_nsec: crate::ctypes::c_long, | |
3349 | } | |
3350 | #[repr(C)] | |
3351 | #[derive(Debug, Copy, Clone)] | |
3352 | pub struct timeval { | |
3353 | pub tv_sec: __kernel_old_time_t, | |
3354 | pub tv_usec: __kernel_suseconds_t, | |
3355 | } | |
3356 | #[repr(C)] | |
3357 | #[derive(Debug, Copy, Clone)] | |
3358 | pub struct itimerspec { | |
3359 | pub it_interval: timespec, | |
3360 | pub it_value: timespec, | |
3361 | } | |
3362 | #[repr(C)] | |
3363 | #[derive(Debug, Copy, Clone)] | |
3364 | pub struct itimerval { | |
3365 | pub it_interval: timeval, | |
3366 | pub it_value: timeval, | |
3367 | } | |
3368 | #[repr(C)] | |
3369 | #[derive(Debug, Copy, Clone)] | |
3370 | pub struct timezone { | |
3371 | pub tz_minuteswest: crate::ctypes::c_int, | |
3372 | pub tz_dsttime: crate::ctypes::c_int, | |
3373 | } | |
3374 | #[repr(C)] | |
3375 | #[derive(Debug, Copy, Clone)] | |
3376 | pub struct rusage { | |
3377 | pub ru_utime: __kernel_old_timeval, | |
3378 | pub ru_stime: __kernel_old_timeval, | |
3379 | pub ru_maxrss: __kernel_long_t, | |
3380 | pub ru_ixrss: __kernel_long_t, | |
3381 | pub ru_idrss: __kernel_long_t, | |
3382 | pub ru_isrss: __kernel_long_t, | |
3383 | pub ru_minflt: __kernel_long_t, | |
3384 | pub ru_majflt: __kernel_long_t, | |
3385 | pub ru_nswap: __kernel_long_t, | |
3386 | pub ru_inblock: __kernel_long_t, | |
3387 | pub ru_oublock: __kernel_long_t, | |
3388 | pub ru_msgsnd: __kernel_long_t, | |
3389 | pub ru_msgrcv: __kernel_long_t, | |
3390 | pub ru_nsignals: __kernel_long_t, | |
3391 | pub ru_nvcsw: __kernel_long_t, | |
3392 | pub ru_nivcsw: __kernel_long_t, | |
3393 | } | |
3394 | #[repr(C)] | |
3395 | #[derive(Debug, Copy, Clone)] | |
3396 | pub struct rlimit { | |
3397 | pub rlim_cur: __kernel_ulong_t, | |
3398 | pub rlim_max: __kernel_ulong_t, | |
3399 | } | |
3400 | #[repr(C)] | |
3401 | #[derive(Debug, Copy, Clone)] | |
3402 | pub struct rlimit64 { | |
3403 | pub rlim_cur: __u64, | |
3404 | pub rlim_max: __u64, | |
3405 | } | |
3406 | #[repr(C)] | |
3407 | #[derive(Debug, Copy, Clone)] | |
3408 | pub struct clone_args { | |
3409 | pub flags: __u64, | |
3410 | pub pidfd: __u64, | |
3411 | pub child_tid: __u64, | |
3412 | pub parent_tid: __u64, | |
3413 | pub exit_signal: __u64, | |
3414 | pub stack: __u64, | |
3415 | pub stack_size: __u64, | |
3416 | pub tls: __u64, | |
3417 | pub set_tid: __u64, | |
3418 | pub set_tid_size: __u64, | |
3419 | pub cgroup: __u64, | |
3420 | } | |
3421 | #[repr(C)] | |
3422 | #[derive(Debug, Copy, Clone)] | |
3423 | pub struct sigset_t { | |
3424 | pub sig: [crate::ctypes::c_ulong; 2usize], | |
3425 | } | |
3426 | pub type old_sigset_t = crate::ctypes::c_ulong; | |
3427 | pub type __signalfn_t = ::core::option::Option<unsafe extern "C" fn(arg1: crate::ctypes::c_int)>; | |
3428 | pub type __sighandler_t = __signalfn_t; | |
3429 | pub type __restorefn_t = ::core::option::Option<unsafe extern "C" fn()>; | |
3430 | pub type __sigrestore_t = __restorefn_t; | |
3431 | #[repr(C)] | |
3432 | #[derive(Debug, Copy, Clone)] | |
3433 | pub struct sigaction { | |
3434 | pub sa_handler: __sighandler_t, | |
3435 | pub sa_flags: crate::ctypes::c_ulong, | |
3436 | pub sa_mask: sigset_t, | |
3437 | } | |
3438 | #[repr(C)] | |
3439 | #[derive(Debug, Copy, Clone)] | |
3440 | pub struct sigaltstack { | |
3441 | pub ss_sp: *mut crate::ctypes::c_void, | |
3442 | pub ss_flags: crate::ctypes::c_int, | |
3443 | pub ss_size: size_t, | |
3444 | } | |
3445 | pub type stack_t = sigaltstack; | |
3446 | #[repr(C)] | |
3447 | #[derive(Copy, Clone)] | |
3448 | pub union sigval { | |
3449 | pub sival_int: crate::ctypes::c_int, | |
3450 | pub sival_ptr: *mut crate::ctypes::c_void, | |
3451 | } | |
3452 | pub type sigval_t = sigval; | |
3453 | #[repr(C)] | |
3454 | #[derive(Copy, Clone)] | |
3455 | pub union __sifields { | |
3456 | pub _kill: __sifields__bindgen_ty_1, | |
3457 | pub _timer: __sifields__bindgen_ty_2, | |
3458 | pub _rt: __sifields__bindgen_ty_3, | |
3459 | pub _sigchld: __sifields__bindgen_ty_4, | |
3460 | pub _sigfault: __sifields__bindgen_ty_5, | |
3461 | pub _sigpoll: __sifields__bindgen_ty_6, | |
3462 | pub _sigsys: __sifields__bindgen_ty_7, | |
3463 | } | |
3464 | #[repr(C)] | |
3465 | #[derive(Debug, Copy, Clone)] | |
3466 | pub struct __sifields__bindgen_ty_1 { | |
3467 | pub _pid: __kernel_pid_t, | |
3468 | pub _uid: __kernel_uid32_t, | |
3469 | } | |
3470 | #[repr(C)] | |
3471 | #[derive(Copy, Clone)] | |
3472 | pub struct __sifields__bindgen_ty_2 { | |
3473 | pub _tid: __kernel_timer_t, | |
3474 | pub _overrun: crate::ctypes::c_int, | |
3475 | pub _sigval: sigval_t, | |
3476 | pub _sys_private: crate::ctypes::c_int, | |
3477 | } | |
3478 | #[repr(C)] | |
3479 | #[derive(Copy, Clone)] | |
3480 | pub struct __sifields__bindgen_ty_3 { | |
3481 | pub _pid: __kernel_pid_t, | |
3482 | pub _uid: __kernel_uid32_t, | |
3483 | pub _sigval: sigval_t, | |
3484 | } | |
3485 | #[repr(C)] | |
3486 | #[derive(Debug, Copy, Clone)] | |
3487 | pub struct __sifields__bindgen_ty_4 { | |
3488 | pub _pid: __kernel_pid_t, | |
3489 | pub _uid: __kernel_uid32_t, | |
3490 | pub _status: crate::ctypes::c_int, | |
3491 | pub _utime: __kernel_clock_t, | |
3492 | pub _stime: __kernel_clock_t, | |
3493 | } | |
3494 | #[repr(C)] | |
3495 | #[derive(Copy, Clone)] | |
3496 | pub struct __sifields__bindgen_ty_5 { | |
3497 | pub _addr: *mut crate::ctypes::c_void, | |
3498 | pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, | |
3499 | } | |
3500 | #[repr(C)] | |
3501 | #[derive(Copy, Clone)] | |
3502 | pub union __sifields__bindgen_ty_5__bindgen_ty_1 { | |
3503 | pub _trapno: crate::ctypes::c_int, | |
3504 | pub _addr_lsb: crate::ctypes::c_short, | |
3505 | pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, | |
3506 | pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, | |
3507 | pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, | |
3508 | } | |
3509 | #[repr(C)] | |
3510 | #[derive(Debug, Copy, Clone)] | |
3511 | pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { | |
3512 | pub _dummy_bnd: [crate::ctypes::c_char; 4usize], | |
3513 | pub _lower: *mut crate::ctypes::c_void, | |
3514 | pub _upper: *mut crate::ctypes::c_void, | |
3515 | } | |
3516 | #[repr(C)] | |
3517 | #[derive(Debug, Copy, Clone)] | |
3518 | pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { | |
3519 | pub _dummy_pkey: [crate::ctypes::c_char; 4usize], | |
3520 | pub _pkey: __u32, | |
3521 | } | |
3522 | #[repr(C)] | |
3523 | #[derive(Debug, Copy, Clone)] | |
3524 | pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { | |
3525 | pub _data: crate::ctypes::c_ulong, | |
3526 | pub _type: __u32, | |
3527 | } | |
3528 | #[repr(C)] | |
3529 | #[derive(Debug, Copy, Clone)] | |
3530 | pub struct __sifields__bindgen_ty_6 { | |
3531 | pub _band: crate::ctypes::c_long, | |
3532 | pub _fd: crate::ctypes::c_int, | |
3533 | } | |
3534 | #[repr(C)] | |
3535 | #[derive(Debug, Copy, Clone)] | |
3536 | pub struct __sifields__bindgen_ty_7 { | |
3537 | pub _call_addr: *mut crate::ctypes::c_void, | |
3538 | pub _syscall: crate::ctypes::c_int, | |
3539 | pub _arch: crate::ctypes::c_uint, | |
3540 | } | |
3541 | #[repr(C)] | |
3542 | #[derive(Copy, Clone)] | |
3543 | pub struct siginfo { | |
3544 | pub __bindgen_anon_1: siginfo__bindgen_ty_1, | |
3545 | } | |
3546 | #[repr(C)] | |
3547 | #[derive(Copy, Clone)] | |
3548 | pub union siginfo__bindgen_ty_1 { | |
3549 | pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, | |
3550 | pub _si_pad: [crate::ctypes::c_int; 32usize], | |
3551 | } | |
3552 | #[repr(C)] | |
3553 | #[derive(Copy, Clone)] | |
3554 | pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { | |
3555 | pub si_signo: crate::ctypes::c_int, | |
3556 | pub si_errno: crate::ctypes::c_int, | |
3557 | pub si_code: crate::ctypes::c_int, | |
3558 | pub _sifields: __sifields, | |
3559 | } | |
3560 | pub type siginfo_t = siginfo; | |
3561 | #[repr(C)] | |
3562 | #[derive(Copy, Clone)] | |
3563 | pub struct sigevent { | |
3564 | pub sigev_value: sigval_t, | |
3565 | pub sigev_signo: crate::ctypes::c_int, | |
3566 | pub sigev_notify: crate::ctypes::c_int, | |
3567 | pub _sigev_un: sigevent__bindgen_ty_1, | |
3568 | } | |
3569 | #[repr(C)] | |
3570 | #[derive(Copy, Clone)] | |
3571 | pub union sigevent__bindgen_ty_1 { | |
3572 | pub _pad: [crate::ctypes::c_int; 13usize], | |
3573 | pub _tid: crate::ctypes::c_int, | |
3574 | pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, | |
3575 | } | |
3576 | #[repr(C)] | |
3577 | #[derive(Debug, Copy, Clone)] | |
3578 | pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { | |
3579 | pub _function: ::core::option::Option<unsafe extern "C" fn(arg1: sigval_t)>, | |
3580 | pub _attribute: *mut crate::ctypes::c_void, | |
3581 | } | |
3582 | pub type sigevent_t = sigevent; | |
3583 | #[repr(C)] | |
3584 | #[derive(Debug, Copy, Clone)] | |
3585 | pub struct statx_timestamp { | |
3586 | pub tv_sec: __s64, | |
3587 | pub tv_nsec: __u32, | |
3588 | pub __reserved: __s32, | |
3589 | } | |
3590 | #[repr(C)] | |
3591 | #[derive(Debug, Copy, Clone)] | |
3592 | pub struct statx { | |
3593 | pub stx_mask: __u32, | |
3594 | pub stx_blksize: __u32, | |
3595 | pub stx_attributes: __u64, | |
3596 | pub stx_nlink: __u32, | |
3597 | pub stx_uid: __u32, | |
3598 | pub stx_gid: __u32, | |
3599 | pub stx_mode: __u16, | |
3600 | pub __spare0: [__u16; 1usize], | |
3601 | pub stx_ino: __u64, | |
3602 | pub stx_size: __u64, | |
3603 | pub stx_blocks: __u64, | |
3604 | pub stx_attributes_mask: __u64, | |
3605 | pub stx_atime: statx_timestamp, | |
3606 | pub stx_btime: statx_timestamp, | |
3607 | pub stx_ctime: statx_timestamp, | |
3608 | pub stx_mtime: statx_timestamp, | |
3609 | pub stx_rdev_major: __u32, | |
3610 | pub stx_rdev_minor: __u32, | |
3611 | pub stx_dev_major: __u32, | |
3612 | pub stx_dev_minor: __u32, | |
3613 | pub stx_mnt_id: __u64, | |
3614 | pub __spare2: __u64, | |
3615 | pub __spare3: [__u64; 12usize], | |
3616 | } | |
3617 | #[repr(C)] | |
3618 | #[derive(Debug, Copy, Clone)] | |
6522a427 EL |
3619 | pub struct sysinfo { |
3620 | pub uptime: __kernel_long_t, | |
3621 | pub loads: [__kernel_ulong_t; 3usize], | |
3622 | pub totalram: __kernel_ulong_t, | |
3623 | pub freeram: __kernel_ulong_t, | |
3624 | pub sharedram: __kernel_ulong_t, | |
3625 | pub bufferram: __kernel_ulong_t, | |
3626 | pub totalswap: __kernel_ulong_t, | |
3627 | pub freeswap: __kernel_ulong_t, | |
3628 | pub procs: __u16, | |
3629 | pub pad: __u16, | |
3630 | pub totalhigh: __kernel_ulong_t, | |
3631 | pub freehigh: __kernel_ulong_t, | |
3632 | pub mem_unit: __u32, | |
3633 | pub _f: [crate::ctypes::c_char; 8usize], | |
3634 | } | |
3635 | #[repr(C)] | |
3636 | #[derive(Debug, Copy, Clone)] | |
064997fb FG |
3637 | pub struct tcphdr { |
3638 | pub source: __be16, | |
3639 | pub dest: __be16, | |
3640 | pub seq: __be32, | |
3641 | pub ack_seq: __be32, | |
3642 | pub _bitfield_align_1: [u8; 0], | |
3643 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, | |
3644 | pub window: __be16, | |
3645 | pub check: __sum16, | |
3646 | pub urg_ptr: __be16, | |
3647 | } | |
3648 | impl tcphdr { | |
3649 | #[inline] | |
3650 | pub fn res1(&self) -> __u16 { | |
3651 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } | |
3652 | } | |
3653 | #[inline] | |
3654 | pub fn set_res1(&mut self, val: __u16) { | |
3655 | unsafe { | |
3656 | let val: u16 = ::core::mem::transmute(val); | |
3657 | self._bitfield_1.set(0usize, 4u8, val as u64) | |
3658 | } | |
3659 | } | |
3660 | #[inline] | |
3661 | pub fn doff(&self) -> __u16 { | |
3662 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } | |
3663 | } | |
3664 | #[inline] | |
3665 | pub fn set_doff(&mut self, val: __u16) { | |
3666 | unsafe { | |
3667 | let val: u16 = ::core::mem::transmute(val); | |
3668 | self._bitfield_1.set(4usize, 4u8, val as u64) | |
3669 | } | |
3670 | } | |
3671 | #[inline] | |
3672 | pub fn fin(&self) -> __u16 { | |
3673 | unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } | |
3674 | } | |
3675 | #[inline] | |
3676 | pub fn set_fin(&mut self, val: __u16) { | |
3677 | unsafe { | |
3678 | let val: u16 = ::core::mem::transmute(val); | |
3679 | self._bitfield_1.set(8usize, 1u8, val as u64) | |
3680 | } | |
3681 | } | |
3682 | #[inline] | |
3683 | pub fn syn(&self) -> __u16 { | |
3684 | unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } | |
3685 | } | |
3686 | #[inline] | |
3687 | pub fn set_syn(&mut self, val: __u16) { | |
3688 | unsafe { | |
3689 | let val: u16 = ::core::mem::transmute(val); | |
3690 | self._bitfield_1.set(9usize, 1u8, val as u64) | |
3691 | } | |
3692 | } | |
3693 | #[inline] | |
3694 | pub fn rst(&self) -> __u16 { | |
3695 | unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } | |
3696 | } | |
3697 | #[inline] | |
3698 | pub fn set_rst(&mut self, val: __u16) { | |
3699 | unsafe { | |
3700 | let val: u16 = ::core::mem::transmute(val); | |
3701 | self._bitfield_1.set(10usize, 1u8, val as u64) | |
3702 | } | |
3703 | } | |
3704 | #[inline] | |
3705 | pub fn psh(&self) -> __u16 { | |
3706 | unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } | |
3707 | } | |
3708 | #[inline] | |
3709 | pub fn set_psh(&mut self, val: __u16) { | |
3710 | unsafe { | |
3711 | let val: u16 = ::core::mem::transmute(val); | |
3712 | self._bitfield_1.set(11usize, 1u8, val as u64) | |
3713 | } | |
3714 | } | |
3715 | #[inline] | |
3716 | pub fn ack(&self) -> __u16 { | |
3717 | unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } | |
3718 | } | |
3719 | #[inline] | |
3720 | pub fn set_ack(&mut self, val: __u16) { | |
3721 | unsafe { | |
3722 | let val: u16 = ::core::mem::transmute(val); | |
3723 | self._bitfield_1.set(12usize, 1u8, val as u64) | |
3724 | } | |
3725 | } | |
3726 | #[inline] | |
3727 | pub fn urg(&self) -> __u16 { | |
3728 | unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } | |
3729 | } | |
3730 | #[inline] | |
3731 | pub fn set_urg(&mut self, val: __u16) { | |
3732 | unsafe { | |
3733 | let val: u16 = ::core::mem::transmute(val); | |
3734 | self._bitfield_1.set(13usize, 1u8, val as u64) | |
3735 | } | |
3736 | } | |
3737 | #[inline] | |
3738 | pub fn ece(&self) -> __u16 { | |
3739 | unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } | |
3740 | } | |
3741 | #[inline] | |
3742 | pub fn set_ece(&mut self, val: __u16) { | |
3743 | unsafe { | |
3744 | let val: u16 = ::core::mem::transmute(val); | |
3745 | self._bitfield_1.set(14usize, 1u8, val as u64) | |
3746 | } | |
3747 | } | |
3748 | #[inline] | |
3749 | pub fn cwr(&self) -> __u16 { | |
3750 | unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } | |
3751 | } | |
3752 | #[inline] | |
3753 | pub fn set_cwr(&mut self, val: __u16) { | |
3754 | unsafe { | |
3755 | let val: u16 = ::core::mem::transmute(val); | |
3756 | self._bitfield_1.set(15usize, 1u8, val as u64) | |
3757 | } | |
3758 | } | |
3759 | #[inline] | |
3760 | pub fn new_bitfield_1(res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { | |
3761 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); | |
3762 | __bindgen_bitfield_unit.set(0usize, 4u8, { | |
3763 | let res1: u16 = unsafe { ::core::mem::transmute(res1) }; | |
3764 | res1 as u64 | |
3765 | }); | |
3766 | __bindgen_bitfield_unit.set(4usize, 4u8, { | |
3767 | let doff: u16 = unsafe { ::core::mem::transmute(doff) }; | |
3768 | doff as u64 | |
3769 | }); | |
3770 | __bindgen_bitfield_unit.set(8usize, 1u8, { | |
3771 | let fin: u16 = unsafe { ::core::mem::transmute(fin) }; | |
3772 | fin as u64 | |
3773 | }); | |
3774 | __bindgen_bitfield_unit.set(9usize, 1u8, { | |
3775 | let syn: u16 = unsafe { ::core::mem::transmute(syn) }; | |
3776 | syn as u64 | |
3777 | }); | |
3778 | __bindgen_bitfield_unit.set(10usize, 1u8, { | |
3779 | let rst: u16 = unsafe { ::core::mem::transmute(rst) }; | |
3780 | rst as u64 | |
3781 | }); | |
3782 | __bindgen_bitfield_unit.set(11usize, 1u8, { | |
3783 | let psh: u16 = unsafe { ::core::mem::transmute(psh) }; | |
3784 | psh as u64 | |
3785 | }); | |
3786 | __bindgen_bitfield_unit.set(12usize, 1u8, { | |
3787 | let ack: u16 = unsafe { ::core::mem::transmute(ack) }; | |
3788 | ack as u64 | |
3789 | }); | |
3790 | __bindgen_bitfield_unit.set(13usize, 1u8, { | |
3791 | let urg: u16 = unsafe { ::core::mem::transmute(urg) }; | |
3792 | urg as u64 | |
3793 | }); | |
3794 | __bindgen_bitfield_unit.set(14usize, 1u8, { | |
3795 | let ece: u16 = unsafe { ::core::mem::transmute(ece) }; | |
3796 | ece as u64 | |
3797 | }); | |
3798 | __bindgen_bitfield_unit.set(15usize, 1u8, { | |
3799 | let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; | |
3800 | cwr as u64 | |
3801 | }); | |
3802 | __bindgen_bitfield_unit | |
3803 | } | |
3804 | } | |
3805 | #[repr(C)] | |
3806 | #[derive(Copy, Clone)] | |
3807 | pub union tcp_word_hdr { | |
3808 | pub hdr: tcphdr, | |
3809 | pub words: [__be32; 5usize], | |
3810 | } | |
3811 | pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; | |
3812 | pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; | |
3813 | pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; | |
3814 | pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; | |
3815 | pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; | |
3816 | pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; | |
3817 | pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; | |
3818 | pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; | |
3819 | pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; | |
3820 | pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; | |
3821 | #[repr(u32)] | |
3822 | #[non_exhaustive] | |
3823 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
3824 | pub enum _bindgen_ty_4 { | |
3825 | TCP_FLAG_CWR = 32768, | |
3826 | TCP_FLAG_ECE = 16384, | |
3827 | TCP_FLAG_URG = 8192, | |
3828 | TCP_FLAG_ACK = 4096, | |
3829 | TCP_FLAG_PSH = 2048, | |
3830 | TCP_FLAG_RST = 1024, | |
3831 | TCP_FLAG_SYN = 512, | |
3832 | TCP_FLAG_FIN = 256, | |
3833 | TCP_RESERVED_BITS = 15, | |
3834 | TCP_DATA_OFFSET = 240, | |
3835 | } | |
3836 | #[repr(C)] | |
3837 | #[derive(Debug, Copy, Clone)] | |
3838 | pub struct tcp_repair_opt { | |
3839 | pub opt_code: __u32, | |
3840 | pub opt_val: __u32, | |
3841 | } | |
3842 | #[repr(C)] | |
3843 | #[derive(Debug, Copy, Clone)] | |
3844 | pub struct tcp_repair_window { | |
3845 | pub snd_wl1: __u32, | |
3846 | pub snd_wnd: __u32, | |
3847 | pub max_window: __u32, | |
3848 | pub rcv_wnd: __u32, | |
3849 | pub rcv_wup: __u32, | |
3850 | } | |
3851 | pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; | |
3852 | pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; | |
3853 | pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; | |
3854 | pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; | |
3855 | #[repr(u32)] | |
3856 | #[non_exhaustive] | |
3857 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
3858 | pub enum _bindgen_ty_5 { | |
3859 | TCP_NO_QUEUE = 0, | |
3860 | TCP_RECV_QUEUE = 1, | |
3861 | TCP_SEND_QUEUE = 2, | |
3862 | TCP_QUEUES_NR = 3, | |
3863 | } | |
3864 | #[repr(u32)] | |
3865 | #[non_exhaustive] | |
3866 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
3867 | pub enum tcp_fastopen_client_fail { | |
3868 | TFO_STATUS_UNSPEC = 0, | |
3869 | TFO_COOKIE_UNAVAILABLE = 1, | |
3870 | TFO_DATA_NOT_ACKED = 2, | |
3871 | TFO_SYN_RETRANSMITTED = 3, | |
3872 | } | |
3873 | #[repr(u32)] | |
3874 | #[non_exhaustive] | |
3875 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
3876 | pub enum tcp_ca_state { | |
3877 | TCP_CA_Open = 0, | |
3878 | TCP_CA_Disorder = 1, | |
3879 | TCP_CA_CWR = 2, | |
3880 | TCP_CA_Recovery = 3, | |
3881 | TCP_CA_Loss = 4, | |
3882 | } | |
3883 | #[repr(C)] | |
3884 | #[derive(Debug, Copy, Clone)] | |
3885 | pub struct tcp_info { | |
3886 | pub tcpi_state: __u8, | |
3887 | pub tcpi_ca_state: __u8, | |
3888 | pub tcpi_retransmits: __u8, | |
3889 | pub tcpi_probes: __u8, | |
3890 | pub tcpi_backoff: __u8, | |
3891 | pub tcpi_options: __u8, | |
3892 | pub _bitfield_align_1: [u8; 0], | |
3893 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, | |
3894 | pub tcpi_rto: __u32, | |
3895 | pub tcpi_ato: __u32, | |
3896 | pub tcpi_snd_mss: __u32, | |
3897 | pub tcpi_rcv_mss: __u32, | |
3898 | pub tcpi_unacked: __u32, | |
3899 | pub tcpi_sacked: __u32, | |
3900 | pub tcpi_lost: __u32, | |
3901 | pub tcpi_retrans: __u32, | |
3902 | pub tcpi_fackets: __u32, | |
3903 | pub tcpi_last_data_sent: __u32, | |
3904 | pub tcpi_last_ack_sent: __u32, | |
3905 | pub tcpi_last_data_recv: __u32, | |
3906 | pub tcpi_last_ack_recv: __u32, | |
3907 | pub tcpi_pmtu: __u32, | |
3908 | pub tcpi_rcv_ssthresh: __u32, | |
3909 | pub tcpi_rtt: __u32, | |
3910 | pub tcpi_rttvar: __u32, | |
3911 | pub tcpi_snd_ssthresh: __u32, | |
3912 | pub tcpi_snd_cwnd: __u32, | |
3913 | pub tcpi_advmss: __u32, | |
3914 | pub tcpi_reordering: __u32, | |
3915 | pub tcpi_rcv_rtt: __u32, | |
3916 | pub tcpi_rcv_space: __u32, | |
3917 | pub tcpi_total_retrans: __u32, | |
3918 | pub tcpi_pacing_rate: __u64, | |
3919 | pub tcpi_max_pacing_rate: __u64, | |
3920 | pub tcpi_bytes_acked: __u64, | |
3921 | pub tcpi_bytes_received: __u64, | |
3922 | pub tcpi_segs_out: __u32, | |
3923 | pub tcpi_segs_in: __u32, | |
3924 | pub tcpi_notsent_bytes: __u32, | |
3925 | pub tcpi_min_rtt: __u32, | |
3926 | pub tcpi_data_segs_in: __u32, | |
3927 | pub tcpi_data_segs_out: __u32, | |
3928 | pub tcpi_delivery_rate: __u64, | |
3929 | pub tcpi_busy_time: __u64, | |
3930 | pub tcpi_rwnd_limited: __u64, | |
3931 | pub tcpi_sndbuf_limited: __u64, | |
3932 | pub tcpi_delivered: __u32, | |
3933 | pub tcpi_delivered_ce: __u32, | |
3934 | pub tcpi_bytes_sent: __u64, | |
3935 | pub tcpi_bytes_retrans: __u64, | |
3936 | pub tcpi_dsack_dups: __u32, | |
3937 | pub tcpi_reord_seen: __u32, | |
3938 | pub tcpi_rcv_ooopack: __u32, | |
3939 | pub tcpi_snd_wnd: __u32, | |
3940 | } | |
3941 | impl tcp_info { | |
3942 | #[inline] | |
3943 | pub fn tcpi_snd_wscale(&self) -> __u8 { | |
3944 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } | |
3945 | } | |
3946 | #[inline] | |
3947 | pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { | |
3948 | unsafe { | |
3949 | let val: u8 = ::core::mem::transmute(val); | |
3950 | self._bitfield_1.set(0usize, 4u8, val as u64) | |
3951 | } | |
3952 | } | |
3953 | #[inline] | |
3954 | pub fn tcpi_rcv_wscale(&self) -> __u8 { | |
3955 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } | |
3956 | } | |
3957 | #[inline] | |
3958 | pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { | |
3959 | unsafe { | |
3960 | let val: u8 = ::core::mem::transmute(val); | |
3961 | self._bitfield_1.set(4usize, 4u8, val as u64) | |
3962 | } | |
3963 | } | |
3964 | #[inline] | |
3965 | pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { | |
3966 | unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } | |
3967 | } | |
3968 | #[inline] | |
3969 | pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { | |
3970 | unsafe { | |
3971 | let val: u8 = ::core::mem::transmute(val); | |
3972 | self._bitfield_1.set(8usize, 1u8, val as u64) | |
3973 | } | |
3974 | } | |
3975 | #[inline] | |
3976 | pub fn tcpi_fastopen_client_fail(&self) -> __u8 { | |
3977 | unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } | |
3978 | } | |
3979 | #[inline] | |
3980 | pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { | |
3981 | unsafe { | |
3982 | let val: u8 = ::core::mem::transmute(val); | |
3983 | self._bitfield_1.set(9usize, 2u8, val as u64) | |
3984 | } | |
3985 | } | |
3986 | #[inline] | |
3987 | pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { | |
3988 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); | |
3989 | __bindgen_bitfield_unit.set(0usize, 4u8, { | |
3990 | let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; | |
3991 | tcpi_snd_wscale as u64 | |
3992 | }); | |
3993 | __bindgen_bitfield_unit.set(4usize, 4u8, { | |
3994 | let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; | |
3995 | tcpi_rcv_wscale as u64 | |
3996 | }); | |
3997 | __bindgen_bitfield_unit.set(8usize, 1u8, { | |
3998 | let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; | |
3999 | tcpi_delivery_rate_app_limited as u64 | |
4000 | }); | |
4001 | __bindgen_bitfield_unit.set(9usize, 2u8, { | |
4002 | let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; | |
4003 | tcpi_fastopen_client_fail as u64 | |
4004 | }); | |
4005 | __bindgen_bitfield_unit | |
4006 | } | |
4007 | } | |
4008 | pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; | |
4009 | pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; | |
4010 | pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; | |
4011 | pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; | |
4012 | pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; | |
4013 | pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; | |
4014 | pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; | |
4015 | pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; | |
4016 | pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; | |
4017 | pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; | |
4018 | pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; | |
4019 | pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; | |
4020 | pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; | |
4021 | pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; | |
4022 | pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; | |
4023 | pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; | |
4024 | pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; | |
4025 | pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; | |
4026 | pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; | |
4027 | pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; | |
4028 | pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; | |
4029 | pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; | |
4030 | pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; | |
4031 | pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; | |
4032 | pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; | |
4033 | pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; | |
4034 | pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; | |
4035 | #[repr(u32)] | |
4036 | #[non_exhaustive] | |
4037 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4038 | pub enum _bindgen_ty_6 { | |
4039 | TCP_NLA_PAD = 0, | |
4040 | TCP_NLA_BUSY = 1, | |
4041 | TCP_NLA_RWND_LIMITED = 2, | |
4042 | TCP_NLA_SNDBUF_LIMITED = 3, | |
4043 | TCP_NLA_DATA_SEGS_OUT = 4, | |
4044 | TCP_NLA_TOTAL_RETRANS = 5, | |
4045 | TCP_NLA_PACING_RATE = 6, | |
4046 | TCP_NLA_DELIVERY_RATE = 7, | |
4047 | TCP_NLA_SND_CWND = 8, | |
4048 | TCP_NLA_REORDERING = 9, | |
4049 | TCP_NLA_MIN_RTT = 10, | |
4050 | TCP_NLA_RECUR_RETRANS = 11, | |
4051 | TCP_NLA_DELIVERY_RATE_APP_LMT = 12, | |
4052 | TCP_NLA_SNDQ_SIZE = 13, | |
4053 | TCP_NLA_CA_STATE = 14, | |
4054 | TCP_NLA_SND_SSTHRESH = 15, | |
4055 | TCP_NLA_DELIVERED = 16, | |
4056 | TCP_NLA_DELIVERED_CE = 17, | |
4057 | TCP_NLA_BYTES_SENT = 18, | |
4058 | TCP_NLA_BYTES_RETRANS = 19, | |
4059 | TCP_NLA_DSACK_DUPS = 20, | |
4060 | TCP_NLA_REORD_SEEN = 21, | |
4061 | TCP_NLA_SRTT = 22, | |
4062 | TCP_NLA_TIMEOUT_REHASH = 23, | |
4063 | TCP_NLA_BYTES_NOTSENT = 24, | |
4064 | TCP_NLA_EDT = 25, | |
4065 | TCP_NLA_TTL = 26, | |
4066 | } | |
4067 | #[repr(C)] | |
4068 | #[derive(Copy, Clone)] | |
4069 | pub struct tcp_md5sig { | |
4070 | pub tcpm_addr: __kernel_sockaddr_storage, | |
4071 | pub tcpm_flags: __u8, | |
4072 | pub tcpm_prefixlen: __u8, | |
4073 | pub tcpm_keylen: __u16, | |
4074 | pub tcpm_ifindex: crate::ctypes::c_int, | |
4075 | pub tcpm_key: [__u8; 80usize], | |
4076 | } | |
4077 | #[repr(C)] | |
4078 | #[derive(Debug, Copy, Clone)] | |
4079 | pub struct tcp_diag_md5sig { | |
4080 | pub tcpm_family: __u8, | |
4081 | pub tcpm_prefixlen: __u8, | |
4082 | pub tcpm_keylen: __u16, | |
4083 | pub tcpm_addr: [__be32; 4usize], | |
4084 | pub tcpm_key: [__u8; 80usize], | |
4085 | } | |
4086 | #[repr(C)] | |
4087 | #[derive(Debug, Copy, Clone)] | |
4088 | pub struct tcp_zerocopy_receive { | |
4089 | pub address: __u64, | |
4090 | pub length: __u32, | |
4091 | pub recv_skip_hint: __u32, | |
4092 | pub inq: __u32, | |
4093 | pub err: __s32, | |
4094 | pub copybuf_address: __u64, | |
4095 | pub copybuf_len: __s32, | |
4096 | pub flags: __u32, | |
4097 | pub msg_control: __u64, | |
4098 | pub msg_controllen: __u64, | |
4099 | pub msg_flags: __u32, | |
4100 | pub reserved: __u32, | |
4101 | } | |
4102 | pub type cc_t = crate::ctypes::c_uchar; | |
4103 | pub type speed_t = crate::ctypes::c_uint; | |
4104 | pub type tcflag_t = crate::ctypes::c_uint; | |
4105 | #[repr(C)] | |
4106 | #[derive(Debug, Copy, Clone)] | |
4107 | pub struct termios { | |
4108 | pub c_iflag: tcflag_t, | |
4109 | pub c_oflag: tcflag_t, | |
4110 | pub c_cflag: tcflag_t, | |
4111 | pub c_lflag: tcflag_t, | |
4112 | pub c_line: cc_t, | |
4113 | pub c_cc: [cc_t; 19usize], | |
4114 | } | |
4115 | #[repr(C)] | |
4116 | #[derive(Debug, Copy, Clone)] | |
4117 | pub struct termios2 { | |
4118 | pub c_iflag: tcflag_t, | |
4119 | pub c_oflag: tcflag_t, | |
4120 | pub c_cflag: tcflag_t, | |
4121 | pub c_lflag: tcflag_t, | |
4122 | pub c_line: cc_t, | |
4123 | pub c_cc: [cc_t; 19usize], | |
4124 | pub c_ispeed: speed_t, | |
4125 | pub c_ospeed: speed_t, | |
4126 | } | |
4127 | #[repr(C)] | |
4128 | #[derive(Debug, Copy, Clone)] | |
4129 | pub struct ktermios { | |
4130 | pub c_iflag: tcflag_t, | |
4131 | pub c_oflag: tcflag_t, | |
4132 | pub c_cflag: tcflag_t, | |
4133 | pub c_lflag: tcflag_t, | |
4134 | pub c_line: cc_t, | |
4135 | pub c_cc: [cc_t; 19usize], | |
4136 | pub c_ispeed: speed_t, | |
4137 | pub c_ospeed: speed_t, | |
4138 | } | |
4139 | #[repr(C)] | |
4140 | #[derive(Debug, Copy, Clone)] | |
4141 | pub struct winsize { | |
4142 | pub ws_row: crate::ctypes::c_ushort, | |
4143 | pub ws_col: crate::ctypes::c_ushort, | |
4144 | pub ws_xpixel: crate::ctypes::c_ushort, | |
4145 | pub ws_ypixel: crate::ctypes::c_ushort, | |
4146 | } | |
4147 | #[repr(C)] | |
4148 | #[derive(Debug, Copy, Clone)] | |
4149 | pub struct termio { | |
4150 | pub c_iflag: crate::ctypes::c_ushort, | |
4151 | pub c_oflag: crate::ctypes::c_ushort, | |
4152 | pub c_cflag: crate::ctypes::c_ushort, | |
4153 | pub c_lflag: crate::ctypes::c_ushort, | |
4154 | pub c_line: crate::ctypes::c_uchar, | |
4155 | pub c_cc: [crate::ctypes::c_uchar; 8usize], | |
4156 | } | |
4157 | #[repr(C)] | |
4158 | #[derive(Debug, Copy, Clone)] | |
4159 | pub struct iovec { | |
4160 | pub iov_base: *mut crate::ctypes::c_void, | |
4161 | pub iov_len: __kernel_size_t, | |
4162 | } | |
4163 | #[repr(C)] | |
4164 | #[derive(Debug, Copy, Clone)] | |
4165 | pub struct sockaddr_un { | |
4166 | pub sun_family: __kernel_sa_family_t, | |
4167 | pub sun_path: [crate::ctypes::c_char; 108usize], | |
4168 | } | |
4169 | #[repr(C)] | |
4170 | #[derive(Debug, Copy, Clone)] | |
4171 | pub struct oldold_utsname { | |
4172 | pub sysname: [crate::ctypes::c_char; 9usize], | |
4173 | pub nodename: [crate::ctypes::c_char; 9usize], | |
4174 | pub release: [crate::ctypes::c_char; 9usize], | |
4175 | pub version: [crate::ctypes::c_char; 9usize], | |
4176 | pub machine: [crate::ctypes::c_char; 9usize], | |
4177 | } | |
4178 | #[repr(C)] | |
4179 | #[derive(Debug, Copy, Clone)] | |
4180 | pub struct old_utsname { | |
4181 | pub sysname: [crate::ctypes::c_char; 65usize], | |
4182 | pub nodename: [crate::ctypes::c_char; 65usize], | |
4183 | pub release: [crate::ctypes::c_char; 65usize], | |
4184 | pub version: [crate::ctypes::c_char; 65usize], | |
4185 | pub machine: [crate::ctypes::c_char; 65usize], | |
4186 | } | |
4187 | #[repr(C)] | |
4188 | #[derive(Debug, Copy, Clone)] | |
4189 | pub struct new_utsname { | |
4190 | pub sysname: [crate::ctypes::c_char; 65usize], | |
4191 | pub nodename: [crate::ctypes::c_char; 65usize], | |
4192 | pub release: [crate::ctypes::c_char; 65usize], | |
4193 | pub version: [crate::ctypes::c_char; 65usize], | |
4194 | pub machine: [crate::ctypes::c_char; 65usize], | |
4195 | pub domainname: [crate::ctypes::c_char; 65usize], | |
4196 | } | |
4197 | impl membarrier_cmd { | |
4198 | pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; | |
4199 | } | |
4200 | #[repr(u32)] | |
4201 | #[non_exhaustive] | |
4202 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4203 | pub enum membarrier_cmd { | |
4204 | MEMBARRIER_CMD_QUERY = 0, | |
4205 | MEMBARRIER_CMD_GLOBAL = 1, | |
4206 | MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, | |
4207 | MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, | |
4208 | MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, | |
4209 | MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, | |
4210 | MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, | |
4211 | MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, | |
4212 | MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, | |
4213 | MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, | |
4214 | } | |
4215 | #[repr(u32)] | |
4216 | #[non_exhaustive] | |
4217 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4218 | pub enum membarrier_cmd_flag { | |
4219 | MEMBARRIER_CMD_FLAG_CPU = 1, | |
4220 | } | |
4221 | #[repr(C, packed)] | |
4222 | #[derive(Copy, Clone)] | |
4223 | pub struct uffd_msg { | |
4224 | pub event: __u8, | |
4225 | pub reserved1: __u8, | |
4226 | pub reserved2: __u16, | |
4227 | pub reserved3: __u32, | |
4228 | pub arg: uffd_msg__bindgen_ty_1, | |
4229 | } | |
4230 | #[repr(C)] | |
4231 | #[derive(Copy, Clone)] | |
4232 | pub union uffd_msg__bindgen_ty_1 { | |
4233 | pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, | |
4234 | pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, | |
4235 | pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, | |
4236 | pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, | |
4237 | pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, | |
4238 | } | |
4239 | #[repr(C)] | |
4240 | #[derive(Copy, Clone)] | |
4241 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { | |
4242 | pub flags: __u64, | |
4243 | pub address: __u64, | |
4244 | pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, | |
4245 | } | |
4246 | #[repr(C)] | |
4247 | #[derive(Copy, Clone)] | |
4248 | pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { | |
4249 | pub ptid: __u32, | |
4250 | } | |
4251 | #[repr(C)] | |
4252 | #[derive(Debug, Copy, Clone)] | |
4253 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { | |
4254 | pub ufd: __u32, | |
4255 | } | |
4256 | #[repr(C)] | |
4257 | #[derive(Debug, Copy, Clone)] | |
4258 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { | |
4259 | pub from: __u64, | |
4260 | pub to: __u64, | |
4261 | pub len: __u64, | |
4262 | } | |
4263 | #[repr(C)] | |
4264 | #[derive(Debug, Copy, Clone)] | |
4265 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { | |
4266 | pub start: __u64, | |
4267 | pub end: __u64, | |
4268 | } | |
4269 | #[repr(C)] | |
4270 | #[derive(Debug, Copy, Clone)] | |
4271 | pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { | |
4272 | pub reserved1: __u64, | |
4273 | pub reserved2: __u64, | |
4274 | pub reserved3: __u64, | |
4275 | } | |
4276 | #[repr(C)] | |
4277 | #[derive(Debug, Copy, Clone)] | |
4278 | pub struct uffdio_api { | |
4279 | pub api: __u64, | |
4280 | pub features: __u64, | |
4281 | pub ioctls: __u64, | |
4282 | } | |
4283 | #[repr(C)] | |
4284 | #[derive(Debug, Copy, Clone)] | |
4285 | pub struct uffdio_range { | |
4286 | pub start: __u64, | |
4287 | pub len: __u64, | |
4288 | } | |
4289 | #[repr(C)] | |
4290 | #[derive(Debug, Copy, Clone)] | |
4291 | pub struct uffdio_register { | |
4292 | pub range: uffdio_range, | |
4293 | pub mode: __u64, | |
4294 | pub ioctls: __u64, | |
4295 | } | |
4296 | #[repr(C)] | |
4297 | #[derive(Debug, Copy, Clone)] | |
4298 | pub struct uffdio_copy { | |
4299 | pub dst: __u64, | |
4300 | pub src: __u64, | |
4301 | pub len: __u64, | |
4302 | pub mode: __u64, | |
4303 | pub copy: __s64, | |
4304 | } | |
4305 | #[repr(C)] | |
4306 | #[derive(Debug, Copy, Clone)] | |
4307 | pub struct uffdio_zeropage { | |
4308 | pub range: uffdio_range, | |
4309 | pub mode: __u64, | |
4310 | pub zeropage: __s64, | |
4311 | } | |
4312 | #[repr(C)] | |
4313 | #[derive(Debug, Copy, Clone)] | |
4314 | pub struct uffdio_writeprotect { | |
4315 | pub range: uffdio_range, | |
4316 | pub mode: __u64, | |
4317 | } | |
4318 | #[repr(C)] | |
4319 | #[derive(Debug, Copy, Clone)] | |
4320 | pub struct uffdio_continue { | |
4321 | pub range: uffdio_range, | |
4322 | pub mode: __u64, | |
4323 | pub mapped: __s64, | |
4324 | } | |
4325 | #[repr(C)] | |
4326 | #[derive(Copy, Clone)] | |
4327 | pub struct io_uring_sqe { | |
4328 | pub opcode: __u8, | |
4329 | pub flags: __u8, | |
4330 | pub ioprio: __u16, | |
4331 | pub fd: __s32, | |
4332 | pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, | |
4333 | pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, | |
4334 | pub len: __u32, | |
4335 | pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, | |
4336 | pub user_data: __u64, | |
4337 | pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, | |
4338 | pub personality: __u16, | |
4339 | pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, | |
4340 | pub __pad2: [__u64; 2usize], | |
4341 | } | |
4342 | #[repr(C)] | |
4343 | #[derive(Copy, Clone)] | |
4344 | pub union io_uring_sqe__bindgen_ty_1 { | |
4345 | pub off: __u64, | |
4346 | pub addr2: __u64, | |
4347 | } | |
4348 | #[repr(C)] | |
4349 | #[derive(Copy, Clone)] | |
4350 | pub union io_uring_sqe__bindgen_ty_2 { | |
4351 | pub addr: __u64, | |
4352 | pub splice_off_in: __u64, | |
4353 | } | |
4354 | #[repr(C)] | |
4355 | #[derive(Copy, Clone)] | |
4356 | pub union io_uring_sqe__bindgen_ty_3 { | |
4357 | pub rw_flags: __kernel_rwf_t, | |
4358 | pub fsync_flags: __u32, | |
4359 | pub poll_events: __u16, | |
4360 | pub poll32_events: __u32, | |
4361 | pub sync_range_flags: __u32, | |
4362 | pub msg_flags: __u32, | |
4363 | pub timeout_flags: __u32, | |
4364 | pub accept_flags: __u32, | |
4365 | pub cancel_flags: __u32, | |
4366 | pub open_flags: __u32, | |
4367 | pub statx_flags: __u32, | |
4368 | pub fadvise_advice: __u32, | |
4369 | pub splice_flags: __u32, | |
4370 | pub rename_flags: __u32, | |
4371 | pub unlink_flags: __u32, | |
4372 | pub hardlink_flags: __u32, | |
4373 | } | |
4374 | #[repr(C, packed)] | |
4375 | #[derive(Copy, Clone)] | |
4376 | pub union io_uring_sqe__bindgen_ty_4 { | |
4377 | pub buf_index: __u16, | |
4378 | pub buf_group: __u16, | |
4379 | } | |
4380 | #[repr(C)] | |
4381 | #[derive(Copy, Clone)] | |
4382 | pub union io_uring_sqe__bindgen_ty_5 { | |
4383 | pub splice_fd_in: __s32, | |
4384 | pub file_index: __u32, | |
4385 | } | |
4386 | pub const IOSQE_FIXED_FILE_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_FIXED_FILE_BIT; | |
4387 | pub const IOSQE_IO_DRAIN_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_IO_DRAIN_BIT; | |
4388 | pub const IOSQE_IO_LINK_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_IO_LINK_BIT; | |
4389 | pub const IOSQE_IO_HARDLINK_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_IO_HARDLINK_BIT; | |
4390 | pub const IOSQE_ASYNC_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_ASYNC_BIT; | |
4391 | pub const IOSQE_BUFFER_SELECT_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_BUFFER_SELECT_BIT; | |
4392 | pub const IOSQE_CQE_SKIP_SUCCESS_BIT: _bindgen_ty_7 = _bindgen_ty_7::IOSQE_CQE_SKIP_SUCCESS_BIT; | |
4393 | #[repr(u32)] | |
4394 | #[non_exhaustive] | |
4395 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4396 | pub enum _bindgen_ty_7 { | |
4397 | IOSQE_FIXED_FILE_BIT = 0, | |
4398 | IOSQE_IO_DRAIN_BIT = 1, | |
4399 | IOSQE_IO_LINK_BIT = 2, | |
4400 | IOSQE_IO_HARDLINK_BIT = 3, | |
4401 | IOSQE_ASYNC_BIT = 4, | |
4402 | IOSQE_BUFFER_SELECT_BIT = 5, | |
4403 | IOSQE_CQE_SKIP_SUCCESS_BIT = 6, | |
4404 | } | |
4405 | pub const IORING_OP_NOP: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_NOP; | |
4406 | pub const IORING_OP_READV: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_READV; | |
4407 | pub const IORING_OP_WRITEV: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_WRITEV; | |
4408 | pub const IORING_OP_FSYNC: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_FSYNC; | |
4409 | pub const IORING_OP_READ_FIXED: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_READ_FIXED; | |
4410 | pub const IORING_OP_WRITE_FIXED: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_WRITE_FIXED; | |
4411 | pub const IORING_OP_POLL_ADD: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_POLL_ADD; | |
4412 | pub const IORING_OP_POLL_REMOVE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_POLL_REMOVE; | |
4413 | pub const IORING_OP_SYNC_FILE_RANGE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_SYNC_FILE_RANGE; | |
4414 | pub const IORING_OP_SENDMSG: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_SENDMSG; | |
4415 | pub const IORING_OP_RECVMSG: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_RECVMSG; | |
4416 | pub const IORING_OP_TIMEOUT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_TIMEOUT; | |
4417 | pub const IORING_OP_TIMEOUT_REMOVE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_TIMEOUT_REMOVE; | |
4418 | pub const IORING_OP_ACCEPT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_ACCEPT; | |
4419 | pub const IORING_OP_ASYNC_CANCEL: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_ASYNC_CANCEL; | |
4420 | pub const IORING_OP_LINK_TIMEOUT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_LINK_TIMEOUT; | |
4421 | pub const IORING_OP_CONNECT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_CONNECT; | |
4422 | pub const IORING_OP_FALLOCATE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_FALLOCATE; | |
4423 | pub const IORING_OP_OPENAT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_OPENAT; | |
4424 | pub const IORING_OP_CLOSE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_CLOSE; | |
4425 | pub const IORING_OP_FILES_UPDATE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_FILES_UPDATE; | |
4426 | pub const IORING_OP_STATX: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_STATX; | |
4427 | pub const IORING_OP_READ: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_READ; | |
4428 | pub const IORING_OP_WRITE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_WRITE; | |
4429 | pub const IORING_OP_FADVISE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_FADVISE; | |
4430 | pub const IORING_OP_MADVISE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_MADVISE; | |
4431 | pub const IORING_OP_SEND: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_SEND; | |
4432 | pub const IORING_OP_RECV: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_RECV; | |
4433 | pub const IORING_OP_OPENAT2: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_OPENAT2; | |
4434 | pub const IORING_OP_EPOLL_CTL: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_EPOLL_CTL; | |
4435 | pub const IORING_OP_SPLICE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_SPLICE; | |
4436 | pub const IORING_OP_PROVIDE_BUFFERS: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_PROVIDE_BUFFERS; | |
4437 | pub const IORING_OP_REMOVE_BUFFERS: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_REMOVE_BUFFERS; | |
4438 | pub const IORING_OP_TEE: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_TEE; | |
4439 | pub const IORING_OP_SHUTDOWN: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_SHUTDOWN; | |
4440 | pub const IORING_OP_RENAMEAT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_RENAMEAT; | |
4441 | pub const IORING_OP_UNLINKAT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_UNLINKAT; | |
4442 | pub const IORING_OP_MKDIRAT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_MKDIRAT; | |
4443 | pub const IORING_OP_SYMLINKAT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_SYMLINKAT; | |
4444 | pub const IORING_OP_LINKAT: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_LINKAT; | |
4445 | pub const IORING_OP_LAST: _bindgen_ty_8 = _bindgen_ty_8::IORING_OP_LAST; | |
4446 | #[repr(u32)] | |
4447 | #[non_exhaustive] | |
4448 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4449 | pub enum _bindgen_ty_8 { | |
4450 | IORING_OP_NOP = 0, | |
4451 | IORING_OP_READV = 1, | |
4452 | IORING_OP_WRITEV = 2, | |
4453 | IORING_OP_FSYNC = 3, | |
4454 | IORING_OP_READ_FIXED = 4, | |
4455 | IORING_OP_WRITE_FIXED = 5, | |
4456 | IORING_OP_POLL_ADD = 6, | |
4457 | IORING_OP_POLL_REMOVE = 7, | |
4458 | IORING_OP_SYNC_FILE_RANGE = 8, | |
4459 | IORING_OP_SENDMSG = 9, | |
4460 | IORING_OP_RECVMSG = 10, | |
4461 | IORING_OP_TIMEOUT = 11, | |
4462 | IORING_OP_TIMEOUT_REMOVE = 12, | |
4463 | IORING_OP_ACCEPT = 13, | |
4464 | IORING_OP_ASYNC_CANCEL = 14, | |
4465 | IORING_OP_LINK_TIMEOUT = 15, | |
4466 | IORING_OP_CONNECT = 16, | |
4467 | IORING_OP_FALLOCATE = 17, | |
4468 | IORING_OP_OPENAT = 18, | |
4469 | IORING_OP_CLOSE = 19, | |
4470 | IORING_OP_FILES_UPDATE = 20, | |
4471 | IORING_OP_STATX = 21, | |
4472 | IORING_OP_READ = 22, | |
4473 | IORING_OP_WRITE = 23, | |
4474 | IORING_OP_FADVISE = 24, | |
4475 | IORING_OP_MADVISE = 25, | |
4476 | IORING_OP_SEND = 26, | |
4477 | IORING_OP_RECV = 27, | |
4478 | IORING_OP_OPENAT2 = 28, | |
4479 | IORING_OP_EPOLL_CTL = 29, | |
4480 | IORING_OP_SPLICE = 30, | |
4481 | IORING_OP_PROVIDE_BUFFERS = 31, | |
4482 | IORING_OP_REMOVE_BUFFERS = 32, | |
4483 | IORING_OP_TEE = 33, | |
4484 | IORING_OP_SHUTDOWN = 34, | |
4485 | IORING_OP_RENAMEAT = 35, | |
4486 | IORING_OP_UNLINKAT = 36, | |
4487 | IORING_OP_MKDIRAT = 37, | |
4488 | IORING_OP_SYMLINKAT = 38, | |
4489 | IORING_OP_LINKAT = 39, | |
4490 | IORING_OP_LAST = 40, | |
4491 | } | |
4492 | #[repr(C)] | |
4493 | #[derive(Debug, Copy, Clone)] | |
4494 | pub struct io_uring_cqe { | |
4495 | pub user_data: __u64, | |
4496 | pub res: __s32, | |
4497 | pub flags: __u32, | |
4498 | } | |
4499 | pub const IORING_CQE_BUFFER_SHIFT: _bindgen_ty_9 = _bindgen_ty_9::IORING_CQE_BUFFER_SHIFT; | |
4500 | #[repr(u32)] | |
4501 | #[non_exhaustive] | |
4502 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4503 | pub enum _bindgen_ty_9 { | |
4504 | IORING_CQE_BUFFER_SHIFT = 16, | |
4505 | } | |
4506 | #[repr(C)] | |
4507 | #[derive(Debug, Copy, Clone)] | |
4508 | pub struct io_sqring_offsets { | |
4509 | pub head: __u32, | |
4510 | pub tail: __u32, | |
4511 | pub ring_mask: __u32, | |
4512 | pub ring_entries: __u32, | |
4513 | pub flags: __u32, | |
4514 | pub dropped: __u32, | |
4515 | pub array: __u32, | |
4516 | pub resv1: __u32, | |
4517 | pub resv2: __u64, | |
4518 | } | |
4519 | #[repr(C)] | |
4520 | #[derive(Debug, Copy, Clone)] | |
4521 | pub struct io_cqring_offsets { | |
4522 | pub head: __u32, | |
4523 | pub tail: __u32, | |
4524 | pub ring_mask: __u32, | |
4525 | pub ring_entries: __u32, | |
4526 | pub overflow: __u32, | |
4527 | pub cqes: __u32, | |
4528 | pub flags: __u32, | |
4529 | pub resv1: __u32, | |
4530 | pub resv2: __u64, | |
4531 | } | |
4532 | #[repr(C)] | |
4533 | #[derive(Debug, Copy, Clone)] | |
4534 | pub struct io_uring_params { | |
4535 | pub sq_entries: __u32, | |
4536 | pub cq_entries: __u32, | |
4537 | pub flags: __u32, | |
4538 | pub sq_thread_cpu: __u32, | |
4539 | pub sq_thread_idle: __u32, | |
4540 | pub features: __u32, | |
4541 | pub wq_fd: __u32, | |
4542 | pub resv: [__u32; 3usize], | |
4543 | pub sq_off: io_sqring_offsets, | |
4544 | pub cq_off: io_cqring_offsets, | |
4545 | } | |
4546 | pub const IORING_REGISTER_BUFFERS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_BUFFERS; | |
4547 | pub const IORING_UNREGISTER_BUFFERS: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_BUFFERS; | |
4548 | pub const IORING_REGISTER_FILES: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILES; | |
4549 | pub const IORING_UNREGISTER_FILES: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_FILES; | |
4550 | pub const IORING_REGISTER_EVENTFD: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_EVENTFD; | |
4551 | pub const IORING_UNREGISTER_EVENTFD: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_EVENTFD; | |
4552 | pub const IORING_REGISTER_FILES_UPDATE: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILES_UPDATE; | |
4553 | pub const IORING_REGISTER_EVENTFD_ASYNC: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_EVENTFD_ASYNC; | |
4554 | pub const IORING_REGISTER_PROBE: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_PROBE; | |
4555 | pub const IORING_REGISTER_PERSONALITY: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_PERSONALITY; | |
4556 | pub const IORING_UNREGISTER_PERSONALITY: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_PERSONALITY; | |
4557 | pub const IORING_REGISTER_RESTRICTIONS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_RESTRICTIONS; | |
4558 | pub const IORING_REGISTER_ENABLE_RINGS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_ENABLE_RINGS; | |
4559 | pub const IORING_REGISTER_FILES2: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILES2; | |
4560 | pub const IORING_REGISTER_FILES_UPDATE2: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_FILES_UPDATE2; | |
4561 | pub const IORING_REGISTER_BUFFERS2: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_BUFFERS2; | |
4562 | pub const IORING_REGISTER_BUFFERS_UPDATE: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_BUFFERS_UPDATE; | |
4563 | pub const IORING_REGISTER_IOWQ_AFF: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_IOWQ_AFF; | |
4564 | pub const IORING_UNREGISTER_IOWQ_AFF: _bindgen_ty_10 = _bindgen_ty_10::IORING_UNREGISTER_IOWQ_AFF; | |
4565 | pub const IORING_REGISTER_IOWQ_MAX_WORKERS: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_IOWQ_MAX_WORKERS; | |
4566 | pub const IORING_REGISTER_LAST: _bindgen_ty_10 = _bindgen_ty_10::IORING_REGISTER_LAST; | |
4567 | #[repr(u32)] | |
4568 | #[non_exhaustive] | |
4569 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4570 | pub enum _bindgen_ty_10 { | |
4571 | IORING_REGISTER_BUFFERS = 0, | |
4572 | IORING_UNREGISTER_BUFFERS = 1, | |
4573 | IORING_REGISTER_FILES = 2, | |
4574 | IORING_UNREGISTER_FILES = 3, | |
4575 | IORING_REGISTER_EVENTFD = 4, | |
4576 | IORING_UNREGISTER_EVENTFD = 5, | |
4577 | IORING_REGISTER_FILES_UPDATE = 6, | |
4578 | IORING_REGISTER_EVENTFD_ASYNC = 7, | |
4579 | IORING_REGISTER_PROBE = 8, | |
4580 | IORING_REGISTER_PERSONALITY = 9, | |
4581 | IORING_UNREGISTER_PERSONALITY = 10, | |
4582 | IORING_REGISTER_RESTRICTIONS = 11, | |
4583 | IORING_REGISTER_ENABLE_RINGS = 12, | |
4584 | IORING_REGISTER_FILES2 = 13, | |
4585 | IORING_REGISTER_FILES_UPDATE2 = 14, | |
4586 | IORING_REGISTER_BUFFERS2 = 15, | |
4587 | IORING_REGISTER_BUFFERS_UPDATE = 16, | |
4588 | IORING_REGISTER_IOWQ_AFF = 17, | |
4589 | IORING_UNREGISTER_IOWQ_AFF = 18, | |
4590 | IORING_REGISTER_IOWQ_MAX_WORKERS = 19, | |
4591 | IORING_REGISTER_LAST = 20, | |
4592 | } | |
4593 | pub const IO_WQ_BOUND: _bindgen_ty_11 = _bindgen_ty_11::IO_WQ_BOUND; | |
4594 | pub const IO_WQ_UNBOUND: _bindgen_ty_11 = _bindgen_ty_11::IO_WQ_UNBOUND; | |
4595 | #[repr(u32)] | |
4596 | #[non_exhaustive] | |
4597 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4598 | pub enum _bindgen_ty_11 { | |
4599 | IO_WQ_BOUND = 0, | |
4600 | IO_WQ_UNBOUND = 1, | |
4601 | } | |
4602 | #[repr(C)] | |
4603 | #[derive(Debug, Copy, Clone)] | |
4604 | pub struct io_uring_files_update { | |
4605 | pub offset: __u32, | |
4606 | pub resv: __u32, | |
4607 | pub fds: __u64, | |
4608 | } | |
4609 | #[repr(C)] | |
4610 | #[derive(Debug, Copy, Clone)] | |
4611 | pub struct io_uring_rsrc_register { | |
4612 | pub nr: __u32, | |
4613 | pub resv: __u32, | |
4614 | pub resv2: __u64, | |
4615 | pub data: __u64, | |
4616 | pub tags: __u64, | |
4617 | } | |
4618 | #[repr(C)] | |
4619 | #[derive(Debug, Copy, Clone)] | |
4620 | pub struct io_uring_rsrc_update { | |
4621 | pub offset: __u32, | |
4622 | pub resv: __u32, | |
4623 | pub data: __u64, | |
4624 | } | |
4625 | #[repr(C)] | |
4626 | #[derive(Debug, Copy, Clone)] | |
4627 | pub struct io_uring_rsrc_update2 { | |
4628 | pub offset: __u32, | |
4629 | pub resv: __u32, | |
4630 | pub data: __u64, | |
4631 | pub tags: __u64, | |
4632 | pub nr: __u32, | |
4633 | pub resv2: __u32, | |
4634 | } | |
4635 | #[repr(C)] | |
4636 | #[derive(Debug, Copy, Clone)] | |
4637 | pub struct io_uring_probe_op { | |
4638 | pub op: __u8, | |
4639 | pub resv: __u8, | |
4640 | pub flags: __u16, | |
4641 | pub resv2: __u32, | |
4642 | } | |
4643 | #[repr(C)] | |
4644 | #[derive(Debug)] | |
4645 | pub struct io_uring_probe { | |
4646 | pub last_op: __u8, | |
4647 | pub ops_len: __u8, | |
4648 | pub resv: __u16, | |
4649 | pub resv2: [__u32; 3usize], | |
4650 | pub ops: __IncompleteArrayField<io_uring_probe_op>, | |
4651 | } | |
4652 | #[repr(C)] | |
4653 | #[derive(Copy, Clone)] | |
4654 | pub struct io_uring_restriction { | |
4655 | pub opcode: __u16, | |
4656 | pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, | |
4657 | pub resv: __u8, | |
4658 | pub resv2: [__u32; 3usize], | |
4659 | } | |
4660 | #[repr(C)] | |
4661 | #[derive(Copy, Clone)] | |
4662 | pub union io_uring_restriction__bindgen_ty_1 { | |
4663 | pub register_op: __u8, | |
4664 | pub sqe_op: __u8, | |
4665 | pub sqe_flags: __u8, | |
4666 | } | |
4667 | pub const IORING_RESTRICTION_REGISTER_OP: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_REGISTER_OP; | |
4668 | pub const IORING_RESTRICTION_SQE_OP: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_SQE_OP; | |
4669 | pub const IORING_RESTRICTION_SQE_FLAGS_ALLOWED: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_SQE_FLAGS_ALLOWED; | |
4670 | pub const IORING_RESTRICTION_SQE_FLAGS_REQUIRED: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_SQE_FLAGS_REQUIRED; | |
4671 | pub const IORING_RESTRICTION_LAST: _bindgen_ty_12 = _bindgen_ty_12::IORING_RESTRICTION_LAST; | |
4672 | #[repr(u32)] | |
4673 | #[non_exhaustive] | |
4674 | #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
4675 | pub enum _bindgen_ty_12 { | |
4676 | IORING_RESTRICTION_REGISTER_OP = 0, | |
4677 | IORING_RESTRICTION_SQE_OP = 1, | |
4678 | IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, | |
4679 | IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, | |
4680 | IORING_RESTRICTION_LAST = 4, | |
4681 | } | |
4682 | #[repr(C)] | |
4683 | #[derive(Debug, Copy, Clone)] | |
4684 | pub struct io_uring_getevents_arg { | |
4685 | pub sigmask: __u64, | |
4686 | pub sigmask_sz: __u32, | |
4687 | pub pad: __u32, | |
4688 | pub ts: __u64, | |
4689 | } | |
4690 | #[repr(C)] | |
4691 | #[derive(Copy, Clone)] | |
4692 | pub struct sockaddr { | |
4693 | pub __storage: __kernel_sockaddr_storage, | |
4694 | } | |
4695 | #[repr(C)] | |
4696 | #[derive(Debug, Copy, Clone)] | |
4697 | pub struct linger { | |
4698 | pub l_onoff: crate::ctypes::c_int, | |
4699 | pub l_linger: crate::ctypes::c_int, | |
4700 | } | |
4701 | #[repr(C)] | |
4702 | #[derive(Debug)] | |
4703 | pub struct linux_dirent64 { | |
4704 | pub d_ino: crate::ctypes::c_ulonglong, | |
4705 | pub d_off: crate::ctypes::c_longlong, | |
4706 | pub d_reclen: __u16, | |
4707 | pub d_type: __u8, | |
4708 | pub d_name: __IncompleteArrayField<crate::ctypes::c_char>, | |
4709 | } | |
4710 | pub type socklen_t = crate::ctypes::c_uint; | |
4711 | #[repr(C)] | |
4712 | #[derive(Debug, Copy, Clone)] | |
4713 | pub struct stat { | |
4714 | pub st_dev: crate::ctypes::c_ulong, | |
4715 | pub st_ino: crate::ctypes::c_ulong, | |
4716 | pub st_mode: crate::ctypes::c_uint, | |
4717 | pub st_nlink: crate::ctypes::c_uint, | |
4718 | pub st_uid: crate::ctypes::c_uint, | |
4719 | pub st_gid: crate::ctypes::c_uint, | |
4720 | pub st_rdev: crate::ctypes::c_ulong, | |
4721 | pub __pad1: crate::ctypes::c_ulong, | |
4722 | pub st_size: crate::ctypes::c_long, | |
4723 | pub st_blksize: crate::ctypes::c_int, | |
4724 | pub __pad2: crate::ctypes::c_int, | |
4725 | pub st_blocks: crate::ctypes::c_long, | |
4726 | pub st_atime: crate::ctypes::c_long, | |
4727 | pub st_atime_nsec: crate::ctypes::c_ulong, | |
4728 | pub st_mtime: crate::ctypes::c_long, | |
4729 | pub st_mtime_nsec: crate::ctypes::c_ulong, | |
4730 | pub st_ctime: crate::ctypes::c_long, | |
4731 | pub st_ctime_nsec: crate::ctypes::c_ulong, | |
4732 | pub __unused4: crate::ctypes::c_uint, | |
4733 | pub __unused5: crate::ctypes::c_uint, | |
4734 | } | |
4735 | #[repr(C)] | |
4736 | #[derive(Debug, Copy, Clone)] | |
4737 | pub struct stat64 { | |
4738 | pub st_dev: crate::ctypes::c_ulonglong, | |
4739 | pub st_ino: crate::ctypes::c_ulonglong, | |
4740 | pub st_mode: crate::ctypes::c_uint, | |
4741 | pub st_nlink: crate::ctypes::c_uint, | |
4742 | pub st_uid: crate::ctypes::c_uint, | |
4743 | pub st_gid: crate::ctypes::c_uint, | |
4744 | pub st_rdev: crate::ctypes::c_ulonglong, | |
4745 | pub __pad1: crate::ctypes::c_ulonglong, | |
4746 | pub st_size: crate::ctypes::c_longlong, | |
4747 | pub st_blksize: crate::ctypes::c_int, | |
4748 | pub __pad2: crate::ctypes::c_int, | |
4749 | pub st_blocks: crate::ctypes::c_longlong, | |
4750 | pub st_atime: crate::ctypes::c_int, | |
4751 | pub st_atime_nsec: crate::ctypes::c_uint, | |
4752 | pub st_mtime: crate::ctypes::c_int, | |
4753 | pub st_mtime_nsec: crate::ctypes::c_uint, | |
4754 | pub st_ctime: crate::ctypes::c_int, | |
4755 | pub st_ctime_nsec: crate::ctypes::c_uint, | |
4756 | pub __unused4: crate::ctypes::c_uint, | |
4757 | pub __unused5: crate::ctypes::c_uint, | |
4758 | } | |
4759 | #[repr(C)] | |
4760 | #[derive(Debug, Copy, Clone)] | |
4761 | pub struct statfs { | |
4762 | pub f_type: __u32, | |
4763 | pub f_bsize: __u32, | |
4764 | pub f_blocks: __u32, | |
4765 | pub f_bfree: __u32, | |
4766 | pub f_bavail: __u32, | |
4767 | pub f_files: __u32, | |
4768 | pub f_ffree: __u32, | |
4769 | pub f_fsid: __kernel_fsid_t, | |
4770 | pub f_namelen: __u32, | |
4771 | pub f_frsize: __u32, | |
4772 | pub f_flags: __u32, | |
4773 | pub f_spare: [__u32; 4usize], | |
4774 | } | |
4775 | #[repr(C)] | |
4776 | #[derive(Debug, Copy, Clone)] | |
4777 | pub struct statfs64 { | |
4778 | pub f_type: __u32, | |
4779 | pub f_bsize: __u32, | |
4780 | pub f_blocks: __u64, | |
4781 | pub f_bfree: __u64, | |
4782 | pub f_bavail: __u64, | |
4783 | pub f_files: __u64, | |
4784 | pub f_ffree: __u64, | |
4785 | pub f_fsid: __kernel_fsid_t, | |
4786 | pub f_namelen: __u32, | |
4787 | pub f_frsize: __u32, | |
4788 | pub f_flags: __u32, | |
4789 | pub f_spare: [__u32; 4usize], | |
4790 | } | |
4791 | #[repr(C)] | |
4792 | #[derive(Debug, Copy, Clone)] | |
4793 | pub struct compat_statfs64 { | |
4794 | pub f_type: __u32, | |
4795 | pub f_bsize: __u32, | |
4796 | pub f_blocks: __u64, | |
4797 | pub f_bfree: __u64, | |
4798 | pub f_bavail: __u64, | |
4799 | pub f_files: __u64, | |
4800 | pub f_ffree: __u64, | |
4801 | pub f_fsid: __kernel_fsid_t, | |
4802 | pub f_namelen: __u32, | |
4803 | pub f_frsize: __u32, | |
4804 | pub f_flags: __u32, | |
4805 | pub f_spare: [__u32; 4usize], | |
4806 | } | |
4807 | pub type __fsword_t = __u32; | |
4808 | #[repr(C)] | |
4809 | #[derive(Debug, Copy, Clone)] | |
4810 | pub struct user_desc { | |
4811 | pub entry_number: crate::ctypes::c_uint, | |
4812 | pub base_addr: crate::ctypes::c_uint, | |
4813 | pub limit: crate::ctypes::c_uint, | |
4814 | pub _bitfield_align_1: [u8; 0], | |
4815 | pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, | |
4816 | pub __bindgen_padding_0: [u8; 3usize], | |
4817 | } | |
4818 | impl user_desc { | |
4819 | #[inline] | |
4820 | pub fn seg_32bit(&self) -> crate::ctypes::c_uint { | |
4821 | unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } | |
4822 | } | |
4823 | #[inline] | |
4824 | pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { | |
4825 | unsafe { | |
4826 | let val: u32 = ::core::mem::transmute(val); | |
4827 | self._bitfield_1.set(0usize, 1u8, val as u64) | |
4828 | } | |
4829 | } | |
4830 | #[inline] | |
4831 | pub fn contents(&self) -> crate::ctypes::c_uint { | |
4832 | unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } | |
4833 | } | |
4834 | #[inline] | |
4835 | pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { | |
4836 | unsafe { | |
4837 | let val: u32 = ::core::mem::transmute(val); | |
4838 | self._bitfield_1.set(1usize, 2u8, val as u64) | |
4839 | } | |
4840 | } | |
4841 | #[inline] | |
4842 | pub fn read_exec_only(&self) -> crate::ctypes::c_uint { | |
4843 | unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } | |
4844 | } | |
4845 | #[inline] | |
4846 | pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { | |
4847 | unsafe { | |
4848 | let val: u32 = ::core::mem::transmute(val); | |
4849 | self._bitfield_1.set(3usize, 1u8, val as u64) | |
4850 | } | |
4851 | } | |
4852 | #[inline] | |
4853 | pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { | |
4854 | unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } | |
4855 | } | |
4856 | #[inline] | |
4857 | pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { | |
4858 | unsafe { | |
4859 | let val: u32 = ::core::mem::transmute(val); | |
4860 | self._bitfield_1.set(4usize, 1u8, val as u64) | |
4861 | } | |
4862 | } | |
4863 | #[inline] | |
4864 | pub fn seg_not_present(&self) -> crate::ctypes::c_uint { | |
4865 | unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } | |
4866 | } | |
4867 | #[inline] | |
4868 | pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { | |
4869 | unsafe { | |
4870 | let val: u32 = ::core::mem::transmute(val); | |
4871 | self._bitfield_1.set(5usize, 1u8, val as u64) | |
4872 | } | |
4873 | } | |
4874 | #[inline] | |
4875 | pub fn useable(&self) -> crate::ctypes::c_uint { | |
4876 | unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } | |
4877 | } | |
4878 | #[inline] | |
4879 | pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { | |
4880 | unsafe { | |
4881 | let val: u32 = ::core::mem::transmute(val); | |
4882 | self._bitfield_1.set(6usize, 1u8, val as u64) | |
4883 | } | |
4884 | } | |
4885 | #[inline] | |
4886 | pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { | |
4887 | let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); | |
4888 | __bindgen_bitfield_unit.set(0usize, 1u8, { | |
4889 | let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; | |
4890 | seg_32bit as u64 | |
4891 | }); | |
4892 | __bindgen_bitfield_unit.set(1usize, 2u8, { | |
4893 | let contents: u32 = unsafe { ::core::mem::transmute(contents) }; | |
4894 | contents as u64 | |
4895 | }); | |
4896 | __bindgen_bitfield_unit.set(3usize, 1u8, { | |
4897 | let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; | |
4898 | read_exec_only as u64 | |
4899 | }); | |
4900 | __bindgen_bitfield_unit.set(4usize, 1u8, { | |
4901 | let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; | |
4902 | limit_in_pages as u64 | |
4903 | }); | |
4904 | __bindgen_bitfield_unit.set(5usize, 1u8, { | |
4905 | let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; | |
4906 | seg_not_present as u64 | |
4907 | }); | |
4908 | __bindgen_bitfield_unit.set(6usize, 1u8, { | |
4909 | let useable: u32 = unsafe { ::core::mem::transmute(useable) }; | |
4910 | useable as u64 | |
4911 | }); | |
4912 | __bindgen_bitfield_unit | |
4913 | } | |
4914 | } | |
4915 | #[repr(C)] | |
4916 | #[derive(Debug, Copy, Clone)] | |
4917 | pub struct msghdr { | |
4918 | pub msg_name: *mut crate::ctypes::c_void, | |
4919 | pub msg_namelen: crate::ctypes::c_int, | |
4920 | pub msg_iov: *mut iovec, | |
4921 | pub msg_iovlen: size_t, | |
4922 | pub msg_control: *mut crate::ctypes::c_void, | |
4923 | pub msg_controllen: size_t, | |
4924 | pub msg_flags: crate::ctypes::c_uint, | |
4925 | } | |
4926 | #[repr(C)] | |
4927 | #[derive(Debug, Copy, Clone)] | |
4928 | pub struct cmsghdr { | |
4929 | pub cmsg_len: size_t, | |
4930 | pub cmsg_level: crate::ctypes::c_int, | |
4931 | pub cmsg_type: crate::ctypes::c_int, | |
4932 | } | |
4933 | #[repr(C)] | |
4934 | #[derive(Debug, Copy, Clone)] | |
4935 | pub struct ucred { | |
4936 | pub pid: __u32, | |
4937 | pub uid: __u32, | |
4938 | pub gid: __u32, | |
4939 | } | |
4940 | #[repr(C)] | |
4941 | #[derive(Debug, Copy, Clone)] | |
4942 | pub struct mmsghdr { | |
4943 | pub msg_hdr: msghdr, | |
4944 | pub msg_len: crate::ctypes::c_uint, | |
4945 | } |