• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 /* automatically generated by rust-bindgen */
6 
7 #[repr(C)]
8 #[derive(Default)]
9 pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
10 impl<T> __IncompleteArrayField<T> {
11     #[inline]
new() -> Self12     pub fn new() -> Self {
13         __IncompleteArrayField(::std::marker::PhantomData, [])
14     }
15     #[inline]
as_ptr(&self) -> *const T16     pub unsafe fn as_ptr(&self) -> *const T {
17         ::std::mem::transmute(self)
18     }
19     #[inline]
as_mut_ptr(&mut self) -> *mut T20     pub unsafe fn as_mut_ptr(&mut self) -> *mut T {
21         ::std::mem::transmute(self)
22     }
23     #[inline]
as_slice(&self, len: usize) -> &[T]24     pub unsafe fn as_slice(&self, len: usize) -> &[T] {
25         ::std::slice::from_raw_parts(self.as_ptr(), len)
26     }
27     #[inline]
as_mut_slice(&mut self, len: usize) -> &mut [T]28     pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
29         ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
30     }
31 }
32 impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result33     fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
34         fmt.write_str("__IncompleteArrayField")
35     }
36 }
37 impl<T> ::std::clone::Clone for __IncompleteArrayField<T> {
38     #[inline]
clone(&self) -> Self39     fn clone(&self) -> Self {
40         Self::new()
41     }
42 }
43 pub const __UAPI_DEF_IF_IFCONF: u32 = 1;
44 pub const __UAPI_DEF_IF_IFMAP: u32 = 1;
45 pub const __UAPI_DEF_IF_IFNAMSIZ: u32 = 1;
46 pub const __UAPI_DEF_IF_IFREQ: u32 = 1;
47 pub const __UAPI_DEF_IF_NET_DEVICE_FLAGS: u32 = 1;
48 pub const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO: u32 = 1;
49 pub const __UAPI_DEF_IN_ADDR: u32 = 1;
50 pub const __UAPI_DEF_IN_IPPROTO: u32 = 1;
51 pub const __UAPI_DEF_IN_PKTINFO: u32 = 1;
52 pub const __UAPI_DEF_IP_MREQ: u32 = 1;
53 pub const __UAPI_DEF_SOCKADDR_IN: u32 = 1;
54 pub const __UAPI_DEF_IN_CLASS: u32 = 1;
55 pub const __UAPI_DEF_IN6_ADDR: u32 = 1;
56 pub const __UAPI_DEF_IN6_ADDR_ALT: u32 = 1;
57 pub const __UAPI_DEF_SOCKADDR_IN6: u32 = 1;
58 pub const __UAPI_DEF_IPV6_MREQ: u32 = 1;
59 pub const __UAPI_DEF_IPPROTO_V6: u32 = 1;
60 pub const __UAPI_DEF_IPV6_OPTIONS: u32 = 1;
61 pub const __UAPI_DEF_IN6_PKTINFO: u32 = 1;
62 pub const __UAPI_DEF_IP6_MTUINFO: u32 = 1;
63 pub const __UAPI_DEF_SOCKADDR_IPX: u32 = 1;
64 pub const __UAPI_DEF_IPX_ROUTE_DEFINITION: u32 = 1;
65 pub const __UAPI_DEF_IPX_INTERFACE_DEFINITION: u32 = 1;
66 pub const __UAPI_DEF_IPX_CONFIG_DATA: u32 = 1;
67 pub const __UAPI_DEF_IPX_ROUTE_DEF: u32 = 1;
68 pub const __UAPI_DEF_XATTR: u32 = 1;
69 pub const __BITS_PER_LONG: u32 = 64;
70 pub const __FD_SETSIZE: u32 = 1024;
71 pub const _K_SS_MAXSIZE: u32 = 128;
72 pub const _SYS_SOCKET_H: u32 = 1;
73 pub const _FEATURES_H: u32 = 1;
74 pub const _DEFAULT_SOURCE: u32 = 1;
75 pub const __USE_ISOC11: u32 = 1;
76 pub const __USE_ISOC99: u32 = 1;
77 pub const __USE_ISOC95: u32 = 1;
78 pub const __USE_POSIX_IMPLICITLY: u32 = 1;
79 pub const _POSIX_SOURCE: u32 = 1;
80 pub const _POSIX_C_SOURCE: u32 = 200809;
81 pub const __USE_POSIX: u32 = 1;
82 pub const __USE_POSIX2: u32 = 1;
83 pub const __USE_POSIX199309: u32 = 1;
84 pub const __USE_POSIX199506: u32 = 1;
85 pub const __USE_XOPEN2K: u32 = 1;
86 pub const __USE_XOPEN2K8: u32 = 1;
87 pub const _ATFILE_SOURCE: u32 = 1;
88 pub const __USE_MISC: u32 = 1;
89 pub const __USE_ATFILE: u32 = 1;
90 pub const __USE_FORTIFY_LEVEL: u32 = 0;
91 pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
92 pub const _STDC_PREDEF_H: u32 = 1;
93 pub const __STDC_IEC_559__: u32 = 1;
94 pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
95 pub const __STDC_ISO_10646__: u32 = 201706;
96 pub const __STDC_NO_THREADS__: u32 = 1;
97 pub const __GNU_LIBRARY__: u32 = 6;
98 pub const __GLIBC__: u32 = 2;
99 pub const __GLIBC_MINOR__: u32 = 27;
100 pub const _SYS_CDEFS_H: u32 = 1;
101 pub const __glibc_c99_flexarr_available: u32 = 1;
102 pub const __WORDSIZE: u32 = 64;
103 pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
104 pub const __SYSCALL_WORDSIZE: u32 = 64;
105 pub const __HAVE_GENERIC_SELECTION: u32 = 1;
106 pub const __iovec_defined: u32 = 1;
107 pub const _SYS_TYPES_H: u32 = 1;
108 pub const _BITS_TYPES_H: u32 = 1;
109 pub const _BITS_TYPESIZES_H: u32 = 1;
110 pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
111 pub const __INO_T_MATCHES_INO64_T: u32 = 1;
112 pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
113 pub const __clock_t_defined: u32 = 1;
114 pub const __clockid_t_defined: u32 = 1;
115 pub const __time_t_defined: u32 = 1;
116 pub const __timer_t_defined: u32 = 1;
117 pub const _BITS_STDINT_INTN_H: u32 = 1;
118 pub const __BIT_TYPES_DEFINED__: u32 = 1;
119 pub const _ENDIAN_H: u32 = 1;
120 pub const __LITTLE_ENDIAN: u32 = 1234;
121 pub const __BIG_ENDIAN: u32 = 4321;
122 pub const __PDP_ENDIAN: u32 = 3412;
123 pub const __BYTE_ORDER: u32 = 1234;
124 pub const __FLOAT_WORD_ORDER: u32 = 1234;
125 pub const LITTLE_ENDIAN: u32 = 1234;
126 pub const BIG_ENDIAN: u32 = 4321;
127 pub const PDP_ENDIAN: u32 = 3412;
128 pub const BYTE_ORDER: u32 = 1234;
129 pub const _BITS_BYTESWAP_H: u32 = 1;
130 pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
131 pub const _SYS_SELECT_H: u32 = 1;
132 pub const __FD_ZERO_STOS: &'static [u8; 6usize] = b"stosq\0";
133 pub const __sigset_t_defined: u32 = 1;
134 pub const __timeval_defined: u32 = 1;
135 pub const _STRUCT_TIMESPEC: u32 = 1;
136 pub const FD_SETSIZE: u32 = 1024;
137 pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
138 pub const _THREAD_SHARED_TYPES_H: u32 = 1;
139 pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
140 pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
141 pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
142 pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
143 pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
144 pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
145 pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
146 pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
147 pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
148 pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
149 pub const __PTHREAD_MUTEX_LOCK_ELISION: u32 = 1;
150 pub const __PTHREAD_MUTEX_NUSERS_AFTER_KIND: u32 = 0;
151 pub const __PTHREAD_MUTEX_USE_UNION: u32 = 0;
152 pub const __PTHREAD_RWLOCK_INT_FLAGS_SHARED: u32 = 1;
153 pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
154 pub const __have_pthread_attr_t: u32 = 1;
155 pub const PF_UNSPEC: u32 = 0;
156 pub const PF_LOCAL: u32 = 1;
157 pub const PF_UNIX: u32 = 1;
158 pub const PF_FILE: u32 = 1;
159 pub const PF_INET: u32 = 2;
160 pub const PF_AX25: u32 = 3;
161 pub const PF_IPX: u32 = 4;
162 pub const PF_APPLETALK: u32 = 5;
163 pub const PF_NETROM: u32 = 6;
164 pub const PF_BRIDGE: u32 = 7;
165 pub const PF_ATMPVC: u32 = 8;
166 pub const PF_X25: u32 = 9;
167 pub const PF_INET6: u32 = 10;
168 pub const PF_ROSE: u32 = 11;
169 pub const PF_DECnet: u32 = 12;
170 pub const PF_NETBEUI: u32 = 13;
171 pub const PF_SECURITY: u32 = 14;
172 pub const PF_KEY: u32 = 15;
173 pub const PF_NETLINK: u32 = 16;
174 pub const PF_ROUTE: u32 = 16;
175 pub const PF_PACKET: u32 = 17;
176 pub const PF_ASH: u32 = 18;
177 pub const PF_ECONET: u32 = 19;
178 pub const PF_ATMSVC: u32 = 20;
179 pub const PF_RDS: u32 = 21;
180 pub const PF_SNA: u32 = 22;
181 pub const PF_IRDA: u32 = 23;
182 pub const PF_PPPOX: u32 = 24;
183 pub const PF_WANPIPE: u32 = 25;
184 pub const PF_LLC: u32 = 26;
185 pub const PF_IB: u32 = 27;
186 pub const PF_MPLS: u32 = 28;
187 pub const PF_CAN: u32 = 29;
188 pub const PF_TIPC: u32 = 30;
189 pub const PF_BLUETOOTH: u32 = 31;
190 pub const PF_IUCV: u32 = 32;
191 pub const PF_RXRPC: u32 = 33;
192 pub const PF_ISDN: u32 = 34;
193 pub const PF_PHONET: u32 = 35;
194 pub const PF_IEEE802154: u32 = 36;
195 pub const PF_CAIF: u32 = 37;
196 pub const PF_ALG: u32 = 38;
197 pub const PF_NFC: u32 = 39;
198 pub const PF_VSOCK: u32 = 40;
199 pub const PF_KCM: u32 = 41;
200 pub const PF_QIPCRTR: u32 = 42;
201 pub const PF_SMC: u32 = 43;
202 pub const PF_MAX: u32 = 44;
203 pub const AF_UNSPEC: u32 = 0;
204 pub const AF_LOCAL: u32 = 1;
205 pub const AF_UNIX: u32 = 1;
206 pub const AF_FILE: u32 = 1;
207 pub const AF_INET: u32 = 2;
208 pub const AF_AX25: u32 = 3;
209 pub const AF_IPX: u32 = 4;
210 pub const AF_APPLETALK: u32 = 5;
211 pub const AF_NETROM: u32 = 6;
212 pub const AF_BRIDGE: u32 = 7;
213 pub const AF_ATMPVC: u32 = 8;
214 pub const AF_X25: u32 = 9;
215 pub const AF_INET6: u32 = 10;
216 pub const AF_ROSE: u32 = 11;
217 pub const AF_DECnet: u32 = 12;
218 pub const AF_NETBEUI: u32 = 13;
219 pub const AF_SECURITY: u32 = 14;
220 pub const AF_KEY: u32 = 15;
221 pub const AF_NETLINK: u32 = 16;
222 pub const AF_ROUTE: u32 = 16;
223 pub const AF_PACKET: u32 = 17;
224 pub const AF_ASH: u32 = 18;
225 pub const AF_ECONET: u32 = 19;
226 pub const AF_ATMSVC: u32 = 20;
227 pub const AF_RDS: u32 = 21;
228 pub const AF_SNA: u32 = 22;
229 pub const AF_IRDA: u32 = 23;
230 pub const AF_PPPOX: u32 = 24;
231 pub const AF_WANPIPE: u32 = 25;
232 pub const AF_LLC: u32 = 26;
233 pub const AF_IB: u32 = 27;
234 pub const AF_MPLS: u32 = 28;
235 pub const AF_CAN: u32 = 29;
236 pub const AF_TIPC: u32 = 30;
237 pub const AF_BLUETOOTH: u32 = 31;
238 pub const AF_IUCV: u32 = 32;
239 pub const AF_RXRPC: u32 = 33;
240 pub const AF_ISDN: u32 = 34;
241 pub const AF_PHONET: u32 = 35;
242 pub const AF_IEEE802154: u32 = 36;
243 pub const AF_CAIF: u32 = 37;
244 pub const AF_ALG: u32 = 38;
245 pub const AF_NFC: u32 = 39;
246 pub const AF_VSOCK: u32 = 40;
247 pub const AF_KCM: u32 = 41;
248 pub const AF_QIPCRTR: u32 = 42;
249 pub const AF_SMC: u32 = 43;
250 pub const AF_MAX: u32 = 44;
251 pub const SOL_RAW: u32 = 255;
252 pub const SOL_DECNET: u32 = 261;
253 pub const SOL_X25: u32 = 262;
254 pub const SOL_PACKET: u32 = 263;
255 pub const SOL_ATM: u32 = 264;
256 pub const SOL_AAL: u32 = 265;
257 pub const SOL_IRDA: u32 = 266;
258 pub const SOL_NETBEUI: u32 = 267;
259 pub const SOL_LLC: u32 = 268;
260 pub const SOL_DCCP: u32 = 269;
261 pub const SOL_NETLINK: u32 = 270;
262 pub const SOL_TIPC: u32 = 271;
263 pub const SOL_RXRPC: u32 = 272;
264 pub const SOL_PPPOL2TP: u32 = 273;
265 pub const SOL_BLUETOOTH: u32 = 274;
266 pub const SOL_PNPIPE: u32 = 275;
267 pub const SOL_RDS: u32 = 276;
268 pub const SOL_IUCV: u32 = 277;
269 pub const SOL_CAIF: u32 = 278;
270 pub const SOL_ALG: u32 = 279;
271 pub const SOL_NFC: u32 = 280;
272 pub const SOL_KCM: u32 = 281;
273 pub const SOL_TLS: u32 = 282;
274 pub const SOMAXCONN: u32 = 128;
275 pub const _BITS_SOCKADDR_H: u32 = 1;
276 pub const _SS_SIZE: u32 = 128;
277 pub const FIOSETOWN: u32 = 35073;
278 pub const SIOCSPGRP: u32 = 35074;
279 pub const FIOGETOWN: u32 = 35075;
280 pub const SIOCGPGRP: u32 = 35076;
281 pub const SIOCATMARK: u32 = 35077;
282 pub const SIOCGSTAMP: u32 = 35078;
283 pub const SIOCGSTAMPNS: u32 = 35079;
284 pub const SOL_SOCKET: u32 = 1;
285 pub const SO_DEBUG: u32 = 1;
286 pub const SO_REUSEADDR: u32 = 2;
287 pub const SO_TYPE: u32 = 3;
288 pub const SO_ERROR: u32 = 4;
289 pub const SO_DONTROUTE: u32 = 5;
290 pub const SO_BROADCAST: u32 = 6;
291 pub const SO_SNDBUF: u32 = 7;
292 pub const SO_RCVBUF: u32 = 8;
293 pub const SO_SNDBUFFORCE: u32 = 32;
294 pub const SO_RCVBUFFORCE: u32 = 33;
295 pub const SO_KEEPALIVE: u32 = 9;
296 pub const SO_OOBINLINE: u32 = 10;
297 pub const SO_NO_CHECK: u32 = 11;
298 pub const SO_PRIORITY: u32 = 12;
299 pub const SO_LINGER: u32 = 13;
300 pub const SO_BSDCOMPAT: u32 = 14;
301 pub const SO_REUSEPORT: u32 = 15;
302 pub const SO_PASSCRED: u32 = 16;
303 pub const SO_PEERCRED: u32 = 17;
304 pub const SO_RCVLOWAT: u32 = 18;
305 pub const SO_SNDLOWAT: u32 = 19;
306 pub const SO_RCVTIMEO: u32 = 20;
307 pub const SO_SNDTIMEO: u32 = 21;
308 pub const SO_SECURITY_AUTHENTICATION: u32 = 22;
309 pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23;
310 pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24;
311 pub const SO_BINDTODEVICE: u32 = 25;
312 pub const SO_ATTACH_FILTER: u32 = 26;
313 pub const SO_DETACH_FILTER: u32 = 27;
314 pub const SO_GET_FILTER: u32 = 26;
315 pub const SO_PEERNAME: u32 = 28;
316 pub const SO_TIMESTAMP: u32 = 29;
317 pub const SCM_TIMESTAMP: u32 = 29;
318 pub const SO_ACCEPTCONN: u32 = 30;
319 pub const SO_PEERSEC: u32 = 31;
320 pub const SO_PASSSEC: u32 = 34;
321 pub const SO_TIMESTAMPNS: u32 = 35;
322 pub const SCM_TIMESTAMPNS: u32 = 35;
323 pub const SO_MARK: u32 = 36;
324 pub const SO_TIMESTAMPING: u32 = 37;
325 pub const SCM_TIMESTAMPING: u32 = 37;
326 pub const SO_PROTOCOL: u32 = 38;
327 pub const SO_DOMAIN: u32 = 39;
328 pub const SO_RXQ_OVFL: u32 = 40;
329 pub const SO_WIFI_STATUS: u32 = 41;
330 pub const SCM_WIFI_STATUS: u32 = 41;
331 pub const SO_PEEK_OFF: u32 = 42;
332 pub const SO_NOFCS: u32 = 43;
333 pub const SO_LOCK_FILTER: u32 = 44;
334 pub const SO_SELECT_ERR_QUEUE: u32 = 45;
335 pub const SO_BUSY_POLL: u32 = 46;
336 pub const SO_MAX_PACING_RATE: u32 = 47;
337 pub const SO_BPF_EXTENSIONS: u32 = 48;
338 pub const SO_INCOMING_CPU: u32 = 49;
339 pub const SO_ATTACH_BPF: u32 = 50;
340 pub const SO_DETACH_BPF: u32 = 27;
341 pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51;
342 pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52;
343 pub const SO_CNX_ADVICE: u32 = 53;
344 pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54;
345 pub const SO_MEMINFO: u32 = 55;
346 pub const SO_INCOMING_NAPI_ID: u32 = 56;
347 pub const SO_COOKIE: u32 = 57;
348 pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58;
349 pub const SO_PEERGROUPS: u32 = 59;
350 pub const SO_ZEROCOPY: u32 = 60;
351 pub const __osockaddr_defined: u32 = 1;
352 pub const IFNAMSIZ: u32 = 16;
353 pub const IFALIASZ: u32 = 256;
354 pub const GENERIC_HDLC_VERSION: u32 = 4;
355 pub const CLOCK_DEFAULT: u32 = 0;
356 pub const CLOCK_EXT: u32 = 1;
357 pub const CLOCK_INT: u32 = 2;
358 pub const CLOCK_TXINT: u32 = 3;
359 pub const CLOCK_TXFROMRX: u32 = 4;
360 pub const ENCODING_DEFAULT: u32 = 0;
361 pub const ENCODING_NRZ: u32 = 1;
362 pub const ENCODING_NRZI: u32 = 2;
363 pub const ENCODING_FM_MARK: u32 = 3;
364 pub const ENCODING_FM_SPACE: u32 = 4;
365 pub const ENCODING_MANCHESTER: u32 = 5;
366 pub const PARITY_DEFAULT: u32 = 0;
367 pub const PARITY_NONE: u32 = 1;
368 pub const PARITY_CRC16_PR0: u32 = 2;
369 pub const PARITY_CRC16_PR1: u32 = 3;
370 pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
371 pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
372 pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
373 pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
374 pub const LMI_DEFAULT: u32 = 0;
375 pub const LMI_NONE: u32 = 1;
376 pub const LMI_ANSI: u32 = 2;
377 pub const LMI_CCITT: u32 = 3;
378 pub const LMI_CISCO: u32 = 4;
379 pub const IF_GET_IFACE: u32 = 1;
380 pub const IF_GET_PROTO: u32 = 2;
381 pub const IF_IFACE_V35: u32 = 4096;
382 pub const IF_IFACE_V24: u32 = 4097;
383 pub const IF_IFACE_X21: u32 = 4098;
384 pub const IF_IFACE_T1: u32 = 4099;
385 pub const IF_IFACE_E1: u32 = 4100;
386 pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
387 pub const IF_IFACE_X21D: u32 = 4102;
388 pub const IF_PROTO_HDLC: u32 = 8192;
389 pub const IF_PROTO_PPP: u32 = 8193;
390 pub const IF_PROTO_CISCO: u32 = 8194;
391 pub const IF_PROTO_FR: u32 = 8195;
392 pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
393 pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
394 pub const IF_PROTO_X25: u32 = 8198;
395 pub const IF_PROTO_HDLC_ETH: u32 = 8199;
396 pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
397 pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
398 pub const IF_PROTO_FR_PVC: u32 = 8202;
399 pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
400 pub const IF_PROTO_RAW: u32 = 8204;
401 pub const IFHWADDRLEN: u32 = 6;
402 pub type __s8 = ::std::os::raw::c_schar;
403 pub type __u8 = ::std::os::raw::c_uchar;
404 pub type __s16 = ::std::os::raw::c_short;
405 pub type __u16 = ::std::os::raw::c_ushort;
406 pub type __s32 = ::std::os::raw::c_int;
407 pub type __u32 = ::std::os::raw::c_uint;
408 pub type __s64 = ::std::os::raw::c_longlong;
409 pub type __u64 = ::std::os::raw::c_ulonglong;
410 #[repr(C)]
411 #[derive(Debug, Default, Copy, Clone)]
412 pub struct __kernel_fd_set {
413     pub fds_bits: [::std::os::raw::c_ulong; 16usize],
414 }
415 pub type __kernel_sighandler_t =
416     ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
417 pub type __kernel_key_t = ::std::os::raw::c_int;
418 pub type __kernel_mqd_t = ::std::os::raw::c_int;
419 pub type __kernel_old_uid_t = ::std::os::raw::c_ushort;
420 pub type __kernel_old_gid_t = ::std::os::raw::c_ushort;
421 pub type __kernel_old_dev_t = ::std::os::raw::c_ulong;
422 pub type __kernel_long_t = ::std::os::raw::c_long;
423 pub type __kernel_ulong_t = ::std::os::raw::c_ulong;
424 pub type __kernel_ino_t = __kernel_ulong_t;
425 pub type __kernel_mode_t = ::std::os::raw::c_uint;
426 pub type __kernel_pid_t = ::std::os::raw::c_int;
427 pub type __kernel_ipc_pid_t = ::std::os::raw::c_int;
428 pub type __kernel_uid_t = ::std::os::raw::c_uint;
429 pub type __kernel_gid_t = ::std::os::raw::c_uint;
430 pub type __kernel_suseconds_t = __kernel_long_t;
431 pub type __kernel_daddr_t = ::std::os::raw::c_int;
432 pub type __kernel_uid32_t = ::std::os::raw::c_uint;
433 pub type __kernel_gid32_t = ::std::os::raw::c_uint;
434 pub type __kernel_size_t = __kernel_ulong_t;
435 pub type __kernel_ssize_t = __kernel_long_t;
436 pub type __kernel_ptrdiff_t = __kernel_long_t;
437 #[repr(C)]
438 #[derive(Debug, Default, Copy, Clone)]
439 pub struct __kernel_fsid_t {
440     pub val: [::std::os::raw::c_int; 2usize],
441 }
442 pub type __kernel_off_t = __kernel_long_t;
443 pub type __kernel_loff_t = ::std::os::raw::c_longlong;
444 pub type __kernel_time_t = __kernel_long_t;
445 pub type __kernel_clock_t = __kernel_long_t;
446 pub type __kernel_timer_t = ::std::os::raw::c_int;
447 pub type __kernel_clockid_t = ::std::os::raw::c_int;
448 pub type __kernel_caddr_t = *mut ::std::os::raw::c_char;
449 pub type __kernel_uid16_t = ::std::os::raw::c_ushort;
450 pub type __kernel_gid16_t = ::std::os::raw::c_ushort;
451 pub type __le16 = __u16;
452 pub type __be16 = __u16;
453 pub type __le32 = __u32;
454 pub type __be32 = __u32;
455 pub type __le64 = __u64;
456 pub type __be64 = __u64;
457 pub type __sum16 = __u16;
458 pub type __wsum = __u32;
459 pub type __kernel_sa_family_t = ::std::os::raw::c_ushort;
460 #[repr(C)]
461 #[repr(align(8))]
462 #[derive(Copy, Clone)]
463 pub struct __kernel_sockaddr_storage {
464     pub ss_family: __kernel_sa_family_t,
465     pub __data: [::std::os::raw::c_char; 126usize],
466 }
467 impl Default for __kernel_sockaddr_storage {
default() -> Self468     fn default() -> Self {
469         unsafe { ::std::mem::zeroed() }
470     }
471 }
472 #[repr(C)]
473 #[derive(Debug, Copy, Clone)]
474 pub struct iovec {
475     pub iov_base: *mut ::std::os::raw::c_void,
476     pub iov_len: usize,
477 }
478 impl Default for iovec {
default() -> Self479     fn default() -> Self {
480         unsafe { ::std::mem::zeroed() }
481     }
482 }
483 pub type __u_char = ::std::os::raw::c_uchar;
484 pub type __u_short = ::std::os::raw::c_ushort;
485 pub type __u_int = ::std::os::raw::c_uint;
486 pub type __u_long = ::std::os::raw::c_ulong;
487 pub type __int8_t = ::std::os::raw::c_schar;
488 pub type __uint8_t = ::std::os::raw::c_uchar;
489 pub type __int16_t = ::std::os::raw::c_short;
490 pub type __uint16_t = ::std::os::raw::c_ushort;
491 pub type __int32_t = ::std::os::raw::c_int;
492 pub type __uint32_t = ::std::os::raw::c_uint;
493 pub type __int64_t = ::std::os::raw::c_long;
494 pub type __uint64_t = ::std::os::raw::c_ulong;
495 pub type __quad_t = ::std::os::raw::c_long;
496 pub type __u_quad_t = ::std::os::raw::c_ulong;
497 pub type __intmax_t = ::std::os::raw::c_long;
498 pub type __uintmax_t = ::std::os::raw::c_ulong;
499 pub type __dev_t = ::std::os::raw::c_ulong;
500 pub type __uid_t = ::std::os::raw::c_uint;
501 pub type __gid_t = ::std::os::raw::c_uint;
502 pub type __ino_t = ::std::os::raw::c_ulong;
503 pub type __ino64_t = ::std::os::raw::c_ulong;
504 pub type __mode_t = ::std::os::raw::c_uint;
505 pub type __nlink_t = ::std::os::raw::c_ulong;
506 pub type __off_t = ::std::os::raw::c_long;
507 pub type __off64_t = ::std::os::raw::c_long;
508 pub type __pid_t = ::std::os::raw::c_int;
509 #[repr(C)]
510 #[derive(Debug, Default, Copy, Clone)]
511 pub struct __fsid_t {
512     pub __val: [::std::os::raw::c_int; 2usize],
513 }
514 pub type __clock_t = ::std::os::raw::c_long;
515 pub type __rlim_t = ::std::os::raw::c_ulong;
516 pub type __rlim64_t = ::std::os::raw::c_ulong;
517 pub type __id_t = ::std::os::raw::c_uint;
518 pub type __time_t = ::std::os::raw::c_long;
519 pub type __useconds_t = ::std::os::raw::c_uint;
520 pub type __suseconds_t = ::std::os::raw::c_long;
521 pub type __daddr_t = ::std::os::raw::c_int;
522 pub type __key_t = ::std::os::raw::c_int;
523 pub type __clockid_t = ::std::os::raw::c_int;
524 pub type __timer_t = *mut ::std::os::raw::c_void;
525 pub type __blksize_t = ::std::os::raw::c_long;
526 pub type __blkcnt_t = ::std::os::raw::c_long;
527 pub type __blkcnt64_t = ::std::os::raw::c_long;
528 pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
529 pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
530 pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
531 pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
532 pub type __fsword_t = ::std::os::raw::c_long;
533 pub type __ssize_t = ::std::os::raw::c_long;
534 pub type __syscall_slong_t = ::std::os::raw::c_long;
535 pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
536 pub type __loff_t = __off64_t;
537 pub type __caddr_t = *mut ::std::os::raw::c_char;
538 pub type __intptr_t = ::std::os::raw::c_long;
539 pub type __socklen_t = ::std::os::raw::c_uint;
540 pub type __sig_atomic_t = ::std::os::raw::c_int;
541 pub type u_char = __u_char;
542 pub type u_short = __u_short;
543 pub type u_int = __u_int;
544 pub type u_long = __u_long;
545 pub type quad_t = __quad_t;
546 pub type u_quad_t = __u_quad_t;
547 pub type fsid_t = __fsid_t;
548 pub type loff_t = __loff_t;
549 pub type ino_t = __ino_t;
550 pub type dev_t = __dev_t;
551 pub type gid_t = __gid_t;
552 pub type mode_t = __mode_t;
553 pub type nlink_t = __nlink_t;
554 pub type uid_t = __uid_t;
555 pub type off_t = __off_t;
556 pub type pid_t = __pid_t;
557 pub type id_t = __id_t;
558 pub type daddr_t = __daddr_t;
559 pub type caddr_t = __caddr_t;
560 pub type key_t = __key_t;
561 pub type clock_t = __clock_t;
562 pub type clockid_t = __clockid_t;
563 pub type time_t = __time_t;
564 pub type timer_t = __timer_t;
565 pub type ulong = ::std::os::raw::c_ulong;
566 pub type ushort = ::std::os::raw::c_ushort;
567 pub type uint = ::std::os::raw::c_uint;
568 pub type u_int8_t = ::std::os::raw::c_uchar;
569 pub type u_int16_t = ::std::os::raw::c_ushort;
570 pub type u_int32_t = ::std::os::raw::c_uint;
571 pub type u_int64_t = ::std::os::raw::c_ulong;
572 pub type register_t = ::std::os::raw::c_long;
573 #[repr(C)]
574 #[derive(Debug, Default, Copy, Clone)]
575 pub struct __sigset_t {
576     pub __val: [::std::os::raw::c_ulong; 16usize],
577 }
578 pub type sigset_t = __sigset_t;
579 #[repr(C)]
580 #[derive(Debug, Default, Copy, Clone)]
581 pub struct timeval {
582     pub tv_sec: __time_t,
583     pub tv_usec: __suseconds_t,
584 }
585 #[repr(C)]
586 #[derive(Debug, Default, Copy, Clone)]
587 pub struct timespec {
588     pub tv_sec: __time_t,
589     pub tv_nsec: __syscall_slong_t,
590 }
591 pub type suseconds_t = __suseconds_t;
592 pub type __fd_mask = ::std::os::raw::c_long;
593 #[repr(C)]
594 #[derive(Debug, Default, Copy, Clone)]
595 pub struct fd_set {
596     pub __fds_bits: [__fd_mask; 16usize],
597 }
598 pub type fd_mask = __fd_mask;
599 extern "C" {
select( __nfds: ::std::os::raw::c_int, __readfds: *mut fd_set, __writefds: *mut fd_set, __exceptfds: *mut fd_set, __timeout: *mut timeval, ) -> ::std::os::raw::c_int600     pub fn select(
601         __nfds: ::std::os::raw::c_int,
602         __readfds: *mut fd_set,
603         __writefds: *mut fd_set,
604         __exceptfds: *mut fd_set,
605         __timeout: *mut timeval,
606     ) -> ::std::os::raw::c_int;
607 }
608 extern "C" {
pselect( __nfds: ::std::os::raw::c_int, __readfds: *mut fd_set, __writefds: *mut fd_set, __exceptfds: *mut fd_set, __timeout: *const timespec, __sigmask: *const __sigset_t, ) -> ::std::os::raw::c_int609     pub fn pselect(
610         __nfds: ::std::os::raw::c_int,
611         __readfds: *mut fd_set,
612         __writefds: *mut fd_set,
613         __exceptfds: *mut fd_set,
614         __timeout: *const timespec,
615         __sigmask: *const __sigset_t,
616     ) -> ::std::os::raw::c_int;
617 }
618 pub type blksize_t = __blksize_t;
619 pub type blkcnt_t = __blkcnt_t;
620 pub type fsblkcnt_t = __fsblkcnt_t;
621 pub type fsfilcnt_t = __fsfilcnt_t;
622 #[repr(C)]
623 #[derive(Debug, Default, Copy, Clone)]
624 pub struct __pthread_rwlock_arch_t {
625     pub __readers: ::std::os::raw::c_uint,
626     pub __writers: ::std::os::raw::c_uint,
627     pub __wrphase_futex: ::std::os::raw::c_uint,
628     pub __writers_futex: ::std::os::raw::c_uint,
629     pub __pad3: ::std::os::raw::c_uint,
630     pub __pad4: ::std::os::raw::c_uint,
631     pub __cur_writer: ::std::os::raw::c_int,
632     pub __shared: ::std::os::raw::c_int,
633     pub __rwelision: ::std::os::raw::c_schar,
634     pub __pad1: [::std::os::raw::c_uchar; 7usize],
635     pub __pad2: ::std::os::raw::c_ulong,
636     pub __flags: ::std::os::raw::c_uint,
637 }
638 #[repr(C)]
639 #[derive(Debug, Copy, Clone)]
640 pub struct __pthread_internal_list {
641     pub __prev: *mut __pthread_internal_list,
642     pub __next: *mut __pthread_internal_list,
643 }
644 impl Default for __pthread_internal_list {
default() -> Self645     fn default() -> Self {
646         unsafe { ::std::mem::zeroed() }
647     }
648 }
649 pub type __pthread_list_t = __pthread_internal_list;
650 #[repr(C)]
651 #[derive(Debug, Copy, Clone)]
652 pub struct __pthread_mutex_s {
653     pub __lock: ::std::os::raw::c_int,
654     pub __count: ::std::os::raw::c_uint,
655     pub __owner: ::std::os::raw::c_int,
656     pub __nusers: ::std::os::raw::c_uint,
657     pub __kind: ::std::os::raw::c_int,
658     pub __spins: ::std::os::raw::c_short,
659     pub __elision: ::std::os::raw::c_short,
660     pub __list: __pthread_list_t,
661 }
662 impl Default for __pthread_mutex_s {
default() -> Self663     fn default() -> Self {
664         unsafe { ::std::mem::zeroed() }
665     }
666 }
667 #[repr(C)]
668 #[derive(Copy, Clone)]
669 pub struct __pthread_cond_s {
670     pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
671     pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
672     pub __g_refs: [::std::os::raw::c_uint; 2usize],
673     pub __g_size: [::std::os::raw::c_uint; 2usize],
674     pub __g1_orig_size: ::std::os::raw::c_uint,
675     pub __wrefs: ::std::os::raw::c_uint,
676     pub __g_signals: [::std::os::raw::c_uint; 2usize],
677 }
678 #[repr(C)]
679 #[derive(Copy, Clone)]
680 pub union __pthread_cond_s__bindgen_ty_1 {
681     pub __wseq: ::std::os::raw::c_ulonglong,
682     pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
683     _bindgen_union_align: u64,
684 }
685 #[repr(C)]
686 #[derive(Debug, Default, Copy, Clone)]
687 pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
688     pub __low: ::std::os::raw::c_uint,
689     pub __high: ::std::os::raw::c_uint,
690 }
691 impl Default for __pthread_cond_s__bindgen_ty_1 {
default() -> Self692     fn default() -> Self {
693         unsafe { ::std::mem::zeroed() }
694     }
695 }
696 #[repr(C)]
697 #[derive(Copy, Clone)]
698 pub union __pthread_cond_s__bindgen_ty_2 {
699     pub __g1_start: ::std::os::raw::c_ulonglong,
700     pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
701     _bindgen_union_align: u64,
702 }
703 #[repr(C)]
704 #[derive(Debug, Default, Copy, Clone)]
705 pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
706     pub __low: ::std::os::raw::c_uint,
707     pub __high: ::std::os::raw::c_uint,
708 }
709 impl Default for __pthread_cond_s__bindgen_ty_2 {
default() -> Self710     fn default() -> Self {
711         unsafe { ::std::mem::zeroed() }
712     }
713 }
714 impl Default for __pthread_cond_s {
default() -> Self715     fn default() -> Self {
716         unsafe { ::std::mem::zeroed() }
717     }
718 }
719 pub type pthread_t = ::std::os::raw::c_ulong;
720 #[repr(C)]
721 #[derive(Copy, Clone)]
722 pub union pthread_mutexattr_t {
723     pub __size: [::std::os::raw::c_char; 4usize],
724     pub __align: ::std::os::raw::c_int,
725     _bindgen_union_align: u32,
726 }
727 impl Default for pthread_mutexattr_t {
default() -> Self728     fn default() -> Self {
729         unsafe { ::std::mem::zeroed() }
730     }
731 }
732 #[repr(C)]
733 #[derive(Copy, Clone)]
734 pub union pthread_condattr_t {
735     pub __size: [::std::os::raw::c_char; 4usize],
736     pub __align: ::std::os::raw::c_int,
737     _bindgen_union_align: u32,
738 }
739 impl Default for pthread_condattr_t {
default() -> Self740     fn default() -> Self {
741         unsafe { ::std::mem::zeroed() }
742     }
743 }
744 pub type pthread_key_t = ::std::os::raw::c_uint;
745 pub type pthread_once_t = ::std::os::raw::c_int;
746 #[repr(C)]
747 #[derive(Copy, Clone)]
748 pub union pthread_attr_t {
749     pub __size: [::std::os::raw::c_char; 56usize],
750     pub __align: ::std::os::raw::c_long,
751     _bindgen_union_align: [u64; 7usize],
752 }
753 impl Default for pthread_attr_t {
default() -> Self754     fn default() -> Self {
755         unsafe { ::std::mem::zeroed() }
756     }
757 }
758 #[repr(C)]
759 #[derive(Copy, Clone)]
760 pub union pthread_mutex_t {
761     pub __data: __pthread_mutex_s,
762     pub __size: [::std::os::raw::c_char; 40usize],
763     pub __align: ::std::os::raw::c_long,
764     _bindgen_union_align: [u64; 5usize],
765 }
766 impl Default for pthread_mutex_t {
default() -> Self767     fn default() -> Self {
768         unsafe { ::std::mem::zeroed() }
769     }
770 }
771 #[repr(C)]
772 #[derive(Copy, Clone)]
773 pub union pthread_cond_t {
774     pub __data: __pthread_cond_s,
775     pub __size: [::std::os::raw::c_char; 48usize],
776     pub __align: ::std::os::raw::c_longlong,
777     _bindgen_union_align: [u64; 6usize],
778 }
779 impl Default for pthread_cond_t {
default() -> Self780     fn default() -> Self {
781         unsafe { ::std::mem::zeroed() }
782     }
783 }
784 #[repr(C)]
785 #[derive(Copy, Clone)]
786 pub union pthread_rwlock_t {
787     pub __data: __pthread_rwlock_arch_t,
788     pub __size: [::std::os::raw::c_char; 56usize],
789     pub __align: ::std::os::raw::c_long,
790     _bindgen_union_align: [u64; 7usize],
791 }
792 impl Default for pthread_rwlock_t {
default() -> Self793     fn default() -> Self {
794         unsafe { ::std::mem::zeroed() }
795     }
796 }
797 #[repr(C)]
798 #[derive(Copy, Clone)]
799 pub union pthread_rwlockattr_t {
800     pub __size: [::std::os::raw::c_char; 8usize],
801     pub __align: ::std::os::raw::c_long,
802     _bindgen_union_align: u64,
803 }
804 impl Default for pthread_rwlockattr_t {
default() -> Self805     fn default() -> Self {
806         unsafe { ::std::mem::zeroed() }
807     }
808 }
809 pub type pthread_spinlock_t = ::std::os::raw::c_int;
810 #[repr(C)]
811 #[derive(Copy, Clone)]
812 pub union pthread_barrier_t {
813     pub __size: [::std::os::raw::c_char; 32usize],
814     pub __align: ::std::os::raw::c_long,
815     _bindgen_union_align: [u64; 4usize],
816 }
817 impl Default for pthread_barrier_t {
default() -> Self818     fn default() -> Self {
819         unsafe { ::std::mem::zeroed() }
820     }
821 }
822 #[repr(C)]
823 #[derive(Copy, Clone)]
824 pub union pthread_barrierattr_t {
825     pub __size: [::std::os::raw::c_char; 4usize],
826     pub __align: ::std::os::raw::c_int,
827     _bindgen_union_align: u32,
828 }
829 impl Default for pthread_barrierattr_t {
default() -> Self830     fn default() -> Self {
831         unsafe { ::std::mem::zeroed() }
832     }
833 }
834 pub type socklen_t = __socklen_t;
835 pub const __socket_type_SOCK_STREAM: __socket_type = 1;
836 pub const __socket_type_SOCK_DGRAM: __socket_type = 2;
837 pub const __socket_type_SOCK_RAW: __socket_type = 3;
838 pub const __socket_type_SOCK_RDM: __socket_type = 4;
839 pub const __socket_type_SOCK_SEQPACKET: __socket_type = 5;
840 pub const __socket_type_SOCK_DCCP: __socket_type = 6;
841 pub const __socket_type_SOCK_PACKET: __socket_type = 10;
842 pub const __socket_type_SOCK_CLOEXEC: __socket_type = 524288;
843 pub const __socket_type_SOCK_NONBLOCK: __socket_type = 2048;
844 pub type __socket_type = u32;
845 pub type sa_family_t = ::std::os::raw::c_ushort;
846 #[repr(C)]
847 #[derive(Debug, Default, Copy, Clone)]
848 pub struct sockaddr {
849     pub sa_family: sa_family_t,
850     pub sa_data: [::std::os::raw::c_char; 14usize],
851 }
852 #[repr(C)]
853 #[derive(Copy, Clone)]
854 pub struct sockaddr_storage {
855     pub ss_family: sa_family_t,
856     pub __ss_padding: [::std::os::raw::c_char; 118usize],
857     pub __ss_align: ::std::os::raw::c_ulong,
858 }
859 impl Default for sockaddr_storage {
default() -> Self860     fn default() -> Self {
861         unsafe { ::std::mem::zeroed() }
862     }
863 }
864 pub const MSG_OOB: _bindgen_ty_1 = 1;
865 pub const MSG_PEEK: _bindgen_ty_1 = 2;
866 pub const MSG_DONTROUTE: _bindgen_ty_1 = 4;
867 pub const MSG_CTRUNC: _bindgen_ty_1 = 8;
868 pub const MSG_PROXY: _bindgen_ty_1 = 16;
869 pub const MSG_TRUNC: _bindgen_ty_1 = 32;
870 pub const MSG_DONTWAIT: _bindgen_ty_1 = 64;
871 pub const MSG_EOR: _bindgen_ty_1 = 128;
872 pub const MSG_WAITALL: _bindgen_ty_1 = 256;
873 pub const MSG_FIN: _bindgen_ty_1 = 512;
874 pub const MSG_SYN: _bindgen_ty_1 = 1024;
875 pub const MSG_CONFIRM: _bindgen_ty_1 = 2048;
876 pub const MSG_RST: _bindgen_ty_1 = 4096;
877 pub const MSG_ERRQUEUE: _bindgen_ty_1 = 8192;
878 pub const MSG_NOSIGNAL: _bindgen_ty_1 = 16384;
879 pub const MSG_MORE: _bindgen_ty_1 = 32768;
880 pub const MSG_WAITFORONE: _bindgen_ty_1 = 65536;
881 pub const MSG_BATCH: _bindgen_ty_1 = 262144;
882 pub const MSG_ZEROCOPY: _bindgen_ty_1 = 67108864;
883 pub const MSG_FASTOPEN: _bindgen_ty_1 = 536870912;
884 pub const MSG_CMSG_CLOEXEC: _bindgen_ty_1 = 1073741824;
885 pub type _bindgen_ty_1 = u32;
886 #[repr(C)]
887 #[derive(Debug, Copy, Clone)]
888 pub struct msghdr {
889     pub msg_name: *mut ::std::os::raw::c_void,
890     pub msg_namelen: socklen_t,
891     pub msg_iov: *mut iovec,
892     pub msg_iovlen: usize,
893     pub msg_control: *mut ::std::os::raw::c_void,
894     pub msg_controllen: usize,
895     pub msg_flags: ::std::os::raw::c_int,
896 }
897 impl Default for msghdr {
default() -> Self898     fn default() -> Self {
899         unsafe { ::std::mem::zeroed() }
900     }
901 }
902 #[repr(C)]
903 #[derive(Debug, Default)]
904 pub struct cmsghdr {
905     pub cmsg_len: usize,
906     pub cmsg_level: ::std::os::raw::c_int,
907     pub cmsg_type: ::std::os::raw::c_int,
908     pub __cmsg_data: __IncompleteArrayField<::std::os::raw::c_uchar>,
909 }
910 extern "C" {
__cmsg_nxthdr(__mhdr: *mut msghdr, __cmsg: *mut cmsghdr) -> *mut cmsghdr911     pub fn __cmsg_nxthdr(__mhdr: *mut msghdr, __cmsg: *mut cmsghdr) -> *mut cmsghdr;
912 }
913 pub const SCM_RIGHTS: _bindgen_ty_2 = 1;
914 pub type _bindgen_ty_2 = u32;
915 #[repr(C)]
916 #[derive(Debug, Default, Copy, Clone)]
917 pub struct linger {
918     pub l_onoff: ::std::os::raw::c_int,
919     pub l_linger: ::std::os::raw::c_int,
920 }
921 #[repr(C)]
922 #[derive(Debug, Default, Copy, Clone)]
923 pub struct osockaddr {
924     pub sa_family: ::std::os::raw::c_ushort,
925     pub sa_data: [::std::os::raw::c_uchar; 14usize],
926 }
927 pub const SHUT_RD: _bindgen_ty_3 = 0;
928 pub const SHUT_WR: _bindgen_ty_3 = 1;
929 pub const SHUT_RDWR: _bindgen_ty_3 = 2;
930 pub type _bindgen_ty_3 = u32;
931 extern "C" {
socket( __domain: ::std::os::raw::c_int, __type: ::std::os::raw::c_int, __protocol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int932     pub fn socket(
933         __domain: ::std::os::raw::c_int,
934         __type: ::std::os::raw::c_int,
935         __protocol: ::std::os::raw::c_int,
936     ) -> ::std::os::raw::c_int;
937 }
938 extern "C" {
socketpair( __domain: ::std::os::raw::c_int, __type: ::std::os::raw::c_int, __protocol: ::std::os::raw::c_int, __fds: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int939     pub fn socketpair(
940         __domain: ::std::os::raw::c_int,
941         __type: ::std::os::raw::c_int,
942         __protocol: ::std::os::raw::c_int,
943         __fds: *mut ::std::os::raw::c_int,
944     ) -> ::std::os::raw::c_int;
945 }
946 extern "C" {
bind( __fd: ::std::os::raw::c_int, __addr: *const sockaddr, __len: socklen_t, ) -> ::std::os::raw::c_int947     pub fn bind(
948         __fd: ::std::os::raw::c_int,
949         __addr: *const sockaddr,
950         __len: socklen_t,
951     ) -> ::std::os::raw::c_int;
952 }
953 extern "C" {
getsockname( __fd: ::std::os::raw::c_int, __addr: *mut sockaddr, __len: *mut socklen_t, ) -> ::std::os::raw::c_int954     pub fn getsockname(
955         __fd: ::std::os::raw::c_int,
956         __addr: *mut sockaddr,
957         __len: *mut socklen_t,
958     ) -> ::std::os::raw::c_int;
959 }
960 extern "C" {
connect( __fd: ::std::os::raw::c_int, __addr: *const sockaddr, __len: socklen_t, ) -> ::std::os::raw::c_int961     pub fn connect(
962         __fd: ::std::os::raw::c_int,
963         __addr: *const sockaddr,
964         __len: socklen_t,
965     ) -> ::std::os::raw::c_int;
966 }
967 extern "C" {
getpeername( __fd: ::std::os::raw::c_int, __addr: *mut sockaddr, __len: *mut socklen_t, ) -> ::std::os::raw::c_int968     pub fn getpeername(
969         __fd: ::std::os::raw::c_int,
970         __addr: *mut sockaddr,
971         __len: *mut socklen_t,
972     ) -> ::std::os::raw::c_int;
973 }
974 extern "C" {
send( __fd: ::std::os::raw::c_int, __buf: *const ::std::os::raw::c_void, __n: usize, __flags: ::std::os::raw::c_int, ) -> isize975     pub fn send(
976         __fd: ::std::os::raw::c_int,
977         __buf: *const ::std::os::raw::c_void,
978         __n: usize,
979         __flags: ::std::os::raw::c_int,
980     ) -> isize;
981 }
982 extern "C" {
recv( __fd: ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_void, __n: usize, __flags: ::std::os::raw::c_int, ) -> isize983     pub fn recv(
984         __fd: ::std::os::raw::c_int,
985         __buf: *mut ::std::os::raw::c_void,
986         __n: usize,
987         __flags: ::std::os::raw::c_int,
988     ) -> isize;
989 }
990 extern "C" {
sendto( __fd: ::std::os::raw::c_int, __buf: *const ::std::os::raw::c_void, __n: usize, __flags: ::std::os::raw::c_int, __addr: *const sockaddr, __addr_len: socklen_t, ) -> isize991     pub fn sendto(
992         __fd: ::std::os::raw::c_int,
993         __buf: *const ::std::os::raw::c_void,
994         __n: usize,
995         __flags: ::std::os::raw::c_int,
996         __addr: *const sockaddr,
997         __addr_len: socklen_t,
998     ) -> isize;
999 }
1000 extern "C" {
recvfrom( __fd: ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_void, __n: usize, __flags: ::std::os::raw::c_int, __addr: *mut sockaddr, __addr_len: *mut socklen_t, ) -> isize1001     pub fn recvfrom(
1002         __fd: ::std::os::raw::c_int,
1003         __buf: *mut ::std::os::raw::c_void,
1004         __n: usize,
1005         __flags: ::std::os::raw::c_int,
1006         __addr: *mut sockaddr,
1007         __addr_len: *mut socklen_t,
1008     ) -> isize;
1009 }
1010 extern "C" {
sendmsg( __fd: ::std::os::raw::c_int, __message: *const msghdr, __flags: ::std::os::raw::c_int, ) -> isize1011     pub fn sendmsg(
1012         __fd: ::std::os::raw::c_int,
1013         __message: *const msghdr,
1014         __flags: ::std::os::raw::c_int,
1015     ) -> isize;
1016 }
1017 extern "C" {
recvmsg( __fd: ::std::os::raw::c_int, __message: *mut msghdr, __flags: ::std::os::raw::c_int, ) -> isize1018     pub fn recvmsg(
1019         __fd: ::std::os::raw::c_int,
1020         __message: *mut msghdr,
1021         __flags: ::std::os::raw::c_int,
1022     ) -> isize;
1023 }
1024 extern "C" {
getsockopt( __fd: ::std::os::raw::c_int, __level: ::std::os::raw::c_int, __optname: ::std::os::raw::c_int, __optval: *mut ::std::os::raw::c_void, __optlen: *mut socklen_t, ) -> ::std::os::raw::c_int1025     pub fn getsockopt(
1026         __fd: ::std::os::raw::c_int,
1027         __level: ::std::os::raw::c_int,
1028         __optname: ::std::os::raw::c_int,
1029         __optval: *mut ::std::os::raw::c_void,
1030         __optlen: *mut socklen_t,
1031     ) -> ::std::os::raw::c_int;
1032 }
1033 extern "C" {
setsockopt( __fd: ::std::os::raw::c_int, __level: ::std::os::raw::c_int, __optname: ::std::os::raw::c_int, __optval: *const ::std::os::raw::c_void, __optlen: socklen_t, ) -> ::std::os::raw::c_int1034     pub fn setsockopt(
1035         __fd: ::std::os::raw::c_int,
1036         __level: ::std::os::raw::c_int,
1037         __optname: ::std::os::raw::c_int,
1038         __optval: *const ::std::os::raw::c_void,
1039         __optlen: socklen_t,
1040     ) -> ::std::os::raw::c_int;
1041 }
1042 extern "C" {
listen(__fd: ::std::os::raw::c_int, __n: ::std::os::raw::c_int) -> ::std::os::raw::c_int1043     pub fn listen(__fd: ::std::os::raw::c_int, __n: ::std::os::raw::c_int)
1044         -> ::std::os::raw::c_int;
1045 }
1046 extern "C" {
accept( __fd: ::std::os::raw::c_int, __addr: *mut sockaddr, __addr_len: *mut socklen_t, ) -> ::std::os::raw::c_int1047     pub fn accept(
1048         __fd: ::std::os::raw::c_int,
1049         __addr: *mut sockaddr,
1050         __addr_len: *mut socklen_t,
1051     ) -> ::std::os::raw::c_int;
1052 }
1053 extern "C" {
shutdown( __fd: ::std::os::raw::c_int, __how: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1054     pub fn shutdown(
1055         __fd: ::std::os::raw::c_int,
1056         __how: ::std::os::raw::c_int,
1057     ) -> ::std::os::raw::c_int;
1058 }
1059 extern "C" {
sockatmark(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int1060     pub fn sockatmark(__fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
1061 }
1062 extern "C" {
isfdtype( __fd: ::std::os::raw::c_int, __fdtype: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int1063     pub fn isfdtype(
1064         __fd: ::std::os::raw::c_int,
1065         __fdtype: ::std::os::raw::c_int,
1066     ) -> ::std::os::raw::c_int;
1067 }
1068 #[repr(C)]
1069 #[derive(Debug, Default, Copy, Clone)]
1070 pub struct sync_serial_settings {
1071     pub clock_rate: ::std::os::raw::c_uint,
1072     pub clock_type: ::std::os::raw::c_uint,
1073     pub loopback: ::std::os::raw::c_ushort,
1074 }
1075 #[repr(C)]
1076 #[derive(Debug, Default, Copy, Clone)]
1077 pub struct te1_settings {
1078     pub clock_rate: ::std::os::raw::c_uint,
1079     pub clock_type: ::std::os::raw::c_uint,
1080     pub loopback: ::std::os::raw::c_ushort,
1081     pub slot_map: ::std::os::raw::c_uint,
1082 }
1083 #[repr(C)]
1084 #[derive(Debug, Default, Copy, Clone)]
1085 pub struct raw_hdlc_proto {
1086     pub encoding: ::std::os::raw::c_ushort,
1087     pub parity: ::std::os::raw::c_ushort,
1088 }
1089 #[repr(C)]
1090 #[derive(Debug, Default, Copy, Clone)]
1091 pub struct fr_proto {
1092     pub t391: ::std::os::raw::c_uint,
1093     pub t392: ::std::os::raw::c_uint,
1094     pub n391: ::std::os::raw::c_uint,
1095     pub n392: ::std::os::raw::c_uint,
1096     pub n393: ::std::os::raw::c_uint,
1097     pub lmi: ::std::os::raw::c_ushort,
1098     pub dce: ::std::os::raw::c_ushort,
1099 }
1100 #[repr(C)]
1101 #[derive(Debug, Default, Copy, Clone)]
1102 pub struct fr_proto_pvc {
1103     pub dlci: ::std::os::raw::c_uint,
1104 }
1105 #[repr(C)]
1106 #[derive(Debug, Default, Copy, Clone)]
1107 pub struct fr_proto_pvc_info {
1108     pub dlci: ::std::os::raw::c_uint,
1109     pub master: [::std::os::raw::c_char; 16usize],
1110 }
1111 #[repr(C)]
1112 #[derive(Debug, Default, Copy, Clone)]
1113 pub struct cisco_proto {
1114     pub interval: ::std::os::raw::c_uint,
1115     pub timeout: ::std::os::raw::c_uint,
1116 }
1117 pub const net_device_flags_IFF_UP: net_device_flags = 1;
1118 pub const net_device_flags_IFF_BROADCAST: net_device_flags = 2;
1119 pub const net_device_flags_IFF_DEBUG: net_device_flags = 4;
1120 pub const net_device_flags_IFF_LOOPBACK: net_device_flags = 8;
1121 pub const net_device_flags_IFF_POINTOPOINT: net_device_flags = 16;
1122 pub const net_device_flags_IFF_NOTRAILERS: net_device_flags = 32;
1123 pub const net_device_flags_IFF_RUNNING: net_device_flags = 64;
1124 pub const net_device_flags_IFF_NOARP: net_device_flags = 128;
1125 pub const net_device_flags_IFF_PROMISC: net_device_flags = 256;
1126 pub const net_device_flags_IFF_ALLMULTI: net_device_flags = 512;
1127 pub const net_device_flags_IFF_MASTER: net_device_flags = 1024;
1128 pub const net_device_flags_IFF_SLAVE: net_device_flags = 2048;
1129 pub const net_device_flags_IFF_MULTICAST: net_device_flags = 4096;
1130 pub const net_device_flags_IFF_PORTSEL: net_device_flags = 8192;
1131 pub const net_device_flags_IFF_AUTOMEDIA: net_device_flags = 16384;
1132 pub const net_device_flags_IFF_DYNAMIC: net_device_flags = 32768;
1133 pub const net_device_flags_IFF_LOWER_UP: net_device_flags = 65536;
1134 pub const net_device_flags_IFF_DORMANT: net_device_flags = 131072;
1135 pub const net_device_flags_IFF_ECHO: net_device_flags = 262144;
1136 pub type net_device_flags = u32;
1137 pub const IF_OPER_UNKNOWN: _bindgen_ty_4 = 0;
1138 pub const IF_OPER_NOTPRESENT: _bindgen_ty_4 = 1;
1139 pub const IF_OPER_DOWN: _bindgen_ty_4 = 2;
1140 pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_4 = 3;
1141 pub const IF_OPER_TESTING: _bindgen_ty_4 = 4;
1142 pub const IF_OPER_DORMANT: _bindgen_ty_4 = 5;
1143 pub const IF_OPER_UP: _bindgen_ty_4 = 6;
1144 pub type _bindgen_ty_4 = u32;
1145 pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_5 = 0;
1146 pub const IF_LINK_MODE_DORMANT: _bindgen_ty_5 = 1;
1147 pub type _bindgen_ty_5 = u32;
1148 #[repr(C)]
1149 #[derive(Debug, Default, Copy, Clone)]
1150 pub struct ifmap {
1151     pub mem_start: ::std::os::raw::c_ulong,
1152     pub mem_end: ::std::os::raw::c_ulong,
1153     pub base_addr: ::std::os::raw::c_ushort,
1154     pub irq: ::std::os::raw::c_uchar,
1155     pub dma: ::std::os::raw::c_uchar,
1156     pub port: ::std::os::raw::c_uchar,
1157 }
1158 #[repr(C)]
1159 #[derive(Copy, Clone)]
1160 pub struct if_settings {
1161     pub type_: ::std::os::raw::c_uint,
1162     pub size: ::std::os::raw::c_uint,
1163     pub ifs_ifsu: if_settings__bindgen_ty_1,
1164 }
1165 #[repr(C)]
1166 #[derive(Copy, Clone)]
1167 pub union if_settings__bindgen_ty_1 {
1168     pub raw_hdlc: *mut raw_hdlc_proto,
1169     pub cisco: *mut cisco_proto,
1170     pub fr: *mut fr_proto,
1171     pub fr_pvc: *mut fr_proto_pvc,
1172     pub fr_pvc_info: *mut fr_proto_pvc_info,
1173     pub sync: *mut sync_serial_settings,
1174     pub te1: *mut te1_settings,
1175     _bindgen_union_align: u64,
1176 }
1177 impl Default for if_settings__bindgen_ty_1 {
default() -> Self1178     fn default() -> Self {
1179         unsafe { ::std::mem::zeroed() }
1180     }
1181 }
1182 impl Default for if_settings {
default() -> Self1183     fn default() -> Self {
1184         unsafe { ::std::mem::zeroed() }
1185     }
1186 }
1187 #[repr(C)]
1188 #[derive(Copy, Clone)]
1189 pub struct ifreq {
1190     pub ifr_ifrn: ifreq__bindgen_ty_1,
1191     pub ifr_ifru: ifreq__bindgen_ty_2,
1192 }
1193 #[repr(C)]
1194 #[derive(Copy, Clone)]
1195 pub union ifreq__bindgen_ty_1 {
1196     pub ifrn_name: [::std::os::raw::c_char; 16usize],
1197     _bindgen_union_align: [u8; 16usize],
1198 }
1199 impl Default for ifreq__bindgen_ty_1 {
default() -> Self1200     fn default() -> Self {
1201         unsafe { ::std::mem::zeroed() }
1202     }
1203 }
1204 #[repr(C)]
1205 #[derive(Copy, Clone)]
1206 pub union ifreq__bindgen_ty_2 {
1207     pub ifru_addr: sockaddr,
1208     pub ifru_dstaddr: sockaddr,
1209     pub ifru_broadaddr: sockaddr,
1210     pub ifru_netmask: sockaddr,
1211     pub ifru_hwaddr: sockaddr,
1212     pub ifru_flags: ::std::os::raw::c_short,
1213     pub ifru_ivalue: ::std::os::raw::c_int,
1214     pub ifru_mtu: ::std::os::raw::c_int,
1215     pub ifru_map: ifmap,
1216     pub ifru_slave: [::std::os::raw::c_char; 16usize],
1217     pub ifru_newname: [::std::os::raw::c_char; 16usize],
1218     pub ifru_data: *mut ::std::os::raw::c_void,
1219     pub ifru_settings: if_settings,
1220     _bindgen_union_align: [u64; 3usize],
1221 }
1222 impl Default for ifreq__bindgen_ty_2 {
default() -> Self1223     fn default() -> Self {
1224         unsafe { ::std::mem::zeroed() }
1225     }
1226 }
1227 impl Default for ifreq {
default() -> Self1228     fn default() -> Self {
1229         unsafe { ::std::mem::zeroed() }
1230     }
1231 }
1232 #[repr(C)]
1233 #[derive(Copy, Clone)]
1234 pub struct ifconf {
1235     pub ifc_len: ::std::os::raw::c_int,
1236     pub ifc_ifcu: ifconf__bindgen_ty_1,
1237 }
1238 #[repr(C)]
1239 #[derive(Copy, Clone)]
1240 pub union ifconf__bindgen_ty_1 {
1241     pub ifcu_buf: *mut ::std::os::raw::c_char,
1242     pub ifcu_req: *mut ifreq,
1243     _bindgen_union_align: u64,
1244 }
1245 impl Default for ifconf__bindgen_ty_1 {
default() -> Self1246     fn default() -> Self {
1247         unsafe { ::std::mem::zeroed() }
1248     }
1249 }
1250 impl Default for ifconf {
default() -> Self1251     fn default() -> Self {
1252         unsafe { ::std::mem::zeroed() }
1253     }
1254 }
1255