libblkid_sys/
lib.rs

1/* automatically generated by rust-bindgen */
2#![allow(non_camel_case_types)]
3#![allow(non_upper_case_globals)]
4#![allow(non_snake_case)]
5pub const _STDINT_H: ::std::os::raw::c_uint = 1;
6pub const _FEATURES_H: ::std::os::raw::c_uint = 1;
7pub const _DEFAULT_SOURCE: ::std::os::raw::c_uint = 1;
8pub const __USE_ISOC11: ::std::os::raw::c_uint = 1;
9pub const __USE_ISOC99: ::std::os::raw::c_uint = 1;
10pub const __USE_ISOC95: ::std::os::raw::c_uint = 1;
11pub const __USE_POSIX_IMPLICITLY: ::std::os::raw::c_uint = 1;
12pub const _POSIX_SOURCE: ::std::os::raw::c_uint = 1;
13pub const _POSIX_C_SOURCE: ::std::os::raw::c_uint = 200809;
14pub const __USE_POSIX: ::std::os::raw::c_uint = 1;
15pub const __USE_POSIX2: ::std::os::raw::c_uint = 1;
16pub const __USE_POSIX199309: ::std::os::raw::c_uint = 1;
17pub const __USE_POSIX199506: ::std::os::raw::c_uint = 1;
18pub const __USE_XOPEN2K: ::std::os::raw::c_uint = 1;
19pub const __USE_XOPEN2K8: ::std::os::raw::c_uint = 1;
20pub const _ATFILE_SOURCE: ::std::os::raw::c_uint = 1;
21pub const __USE_MISC: ::std::os::raw::c_uint = 1;
22pub const __USE_ATFILE: ::std::os::raw::c_uint = 1;
23pub const __USE_FORTIFY_LEVEL: ::std::os::raw::c_uint = 0;
24pub const _STDC_PREDEF_H: ::std::os::raw::c_uint = 1;
25pub const __STDC_IEC_559__: ::std::os::raw::c_uint = 1;
26pub const __STDC_IEC_559_COMPLEX__: ::std::os::raw::c_uint = 1;
27pub const __STDC_ISO_10646__: ::std::os::raw::c_uint = 201505;
28pub const __STDC_NO_THREADS__: ::std::os::raw::c_uint = 1;
29pub const __GNU_LIBRARY__: ::std::os::raw::c_uint = 6;
30pub const __GLIBC__: ::std::os::raw::c_uint = 2;
31pub const __GLIBC_MINOR__: ::std::os::raw::c_uint = 25;
32pub const _SYS_CDEFS_H: ::std::os::raw::c_uint = 1;
33pub const __glibc_c99_flexarr_available: ::std::os::raw::c_uint = 1;
34pub const __WORDSIZE: ::std::os::raw::c_uint = 64;
35pub const __WORDSIZE_TIME64_COMPAT32: ::std::os::raw::c_uint = 1;
36pub const __SYSCALL_WORDSIZE: ::std::os::raw::c_uint = 64;
37pub const __GLIBC_USE_LIB_EXT2: ::std::os::raw::c_uint = 0;
38pub const __GLIBC_USE_IEC_60559_BFP_EXT: ::std::os::raw::c_uint = 0;
39pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: ::std::os::raw::c_uint = 0;
40pub const _BITS_TYPES_H: ::std::os::raw::c_uint = 1;
41pub const _BITS_TYPESIZES_H: ::std::os::raw::c_uint = 1;
42pub const __OFF_T_MATCHES_OFF64_T: ::std::os::raw::c_uint = 1;
43pub const __INO_T_MATCHES_INO64_T: ::std::os::raw::c_uint = 1;
44pub const __RLIM_T_MATCHES_RLIM64_T: ::std::os::raw::c_uint = 1;
45pub const __FD_SETSIZE: ::std::os::raw::c_uint = 1024;
46pub const _BITS_WCHAR_H: ::std::os::raw::c_uint = 1;
47pub const INT8_MIN: ::std::os::raw::c_int = -128;
48pub const INT16_MIN: ::std::os::raw::c_int = -32768;
49pub const INT32_MIN: ::std::os::raw::c_int = -2147483648;
50pub const INT8_MAX: ::std::os::raw::c_uint = 127;
51pub const INT16_MAX: ::std::os::raw::c_uint = 32767;
52pub const INT32_MAX: ::std::os::raw::c_uint = 2147483647;
53pub const UINT8_MAX: ::std::os::raw::c_uint = 255;
54pub const UINT16_MAX: ::std::os::raw::c_uint = 65535;
55pub const UINT32_MAX: ::std::os::raw::c_uint = 4294967295;
56pub const INT_LEAST8_MIN: ::std::os::raw::c_int = -128;
57pub const INT_LEAST16_MIN: ::std::os::raw::c_int = -32768;
58pub const INT_LEAST32_MIN: ::std::os::raw::c_int = -2147483648;
59pub const INT_LEAST8_MAX: ::std::os::raw::c_uint = 127;
60pub const INT_LEAST16_MAX: ::std::os::raw::c_uint = 32767;
61pub const INT_LEAST32_MAX: ::std::os::raw::c_uint = 2147483647;
62pub const UINT_LEAST8_MAX: ::std::os::raw::c_uint = 255;
63pub const UINT_LEAST16_MAX: ::std::os::raw::c_uint = 65535;
64pub const UINT_LEAST32_MAX: ::std::os::raw::c_uint = 4294967295;
65pub const INT_FAST8_MIN: ::std::os::raw::c_int = -128;
66pub const INT_FAST16_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
67pub const INT_FAST32_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
68pub const INT_FAST8_MAX: ::std::os::raw::c_uint = 127;
69pub const INT_FAST16_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
70pub const INT_FAST32_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
71pub const UINT_FAST8_MAX: ::std::os::raw::c_uint = 255;
72pub const UINT_FAST16_MAX: ::std::os::raw::c_int = -1;
73pub const UINT_FAST32_MAX: ::std::os::raw::c_int = -1;
74pub const INTPTR_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
75pub const INTPTR_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
76pub const UINTPTR_MAX: ::std::os::raw::c_int = -1;
77pub const PTRDIFF_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
78pub const PTRDIFF_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
79pub const SIG_ATOMIC_MIN: ::std::os::raw::c_int = -2147483648;
80pub const SIG_ATOMIC_MAX: ::std::os::raw::c_uint = 2147483647;
81pub const SIZE_MAX: ::std::os::raw::c_int = -1;
82pub const WINT_MIN: ::std::os::raw::c_uint = 0;
83pub const WINT_MAX: ::std::os::raw::c_uint = 4294967295;
84pub const _SYS_TYPES_H: ::std::os::raw::c_uint = 1;
85pub const __clock_t_defined: ::std::os::raw::c_uint = 1;
86pub const __clockid_t_defined: ::std::os::raw::c_uint = 1;
87pub const __time_t_defined: ::std::os::raw::c_uint = 1;
88pub const __timer_t_defined: ::std::os::raw::c_uint = 1;
89pub const __BIT_TYPES_DEFINED__: ::std::os::raw::c_uint = 1;
90pub const _ENDIAN_H: ::std::os::raw::c_uint = 1;
91pub const __LITTLE_ENDIAN: ::std::os::raw::c_uint = 1234;
92pub const __BIG_ENDIAN: ::std::os::raw::c_uint = 4321;
93pub const __PDP_ENDIAN: ::std::os::raw::c_uint = 3412;
94pub const __BYTE_ORDER: ::std::os::raw::c_uint = 1234;
95pub const __FLOAT_WORD_ORDER: ::std::os::raw::c_uint = 1234;
96pub const LITTLE_ENDIAN: ::std::os::raw::c_uint = 1234;
97pub const BIG_ENDIAN: ::std::os::raw::c_uint = 4321;
98pub const PDP_ENDIAN: ::std::os::raw::c_uint = 3412;
99pub const BYTE_ORDER: ::std::os::raw::c_uint = 1234;
100pub const _BITS_BYTESWAP_H: ::std::os::raw::c_uint = 1;
101pub const _BITS_UINTN_IDENTITY_H: ::std::os::raw::c_uint = 1;
102pub const _SYS_SELECT_H: ::std::os::raw::c_uint = 1;
103pub const __FD_ZERO_STOS: &'static [u8; 6usize] = b"stosq\x00";
104pub const _SIGSET_H_types: ::std::os::raw::c_uint = 1;
105pub const __timeval_defined: ::std::os::raw::c_uint = 1;
106pub const __timespec_defined: ::std::os::raw::c_uint = 1;
107pub const FD_SETSIZE: ::std::os::raw::c_uint = 1024;
108pub const _SYS_SYSMACROS_H: ::std::os::raw::c_uint = 1;
109pub const _BITS_SYSMACROS_H: ::std::os::raw::c_uint = 1;
110pub const BLKID_VERSION: &'static [u8; 7usize] = b"2.29.2\x00";
111pub const BLKID_DATE: &'static [u8; 12usize] = b"22-Feb-2017\x00";
112pub const BLKID_DEV_FIND: ::std::os::raw::c_uint = 0;
113pub const BLKID_DEV_CREATE: ::std::os::raw::c_uint = 1;
114pub const BLKID_DEV_VERIFY: ::std::os::raw::c_uint = 2;
115pub const BLKID_DEV_NORMAL: ::std::os::raw::c_uint = 3;
116pub const BLKID_SUBLKS_LABEL: ::std::os::raw::c_uint = 2;
117pub const BLKID_SUBLKS_LABELRAW: ::std::os::raw::c_uint = 4;
118pub const BLKID_SUBLKS_UUID: ::std::os::raw::c_uint = 8;
119pub const BLKID_SUBLKS_UUIDRAW: ::std::os::raw::c_uint = 16;
120pub const BLKID_SUBLKS_TYPE: ::std::os::raw::c_uint = 32;
121pub const BLKID_SUBLKS_SECTYPE: ::std::os::raw::c_uint = 64;
122pub const BLKID_SUBLKS_USAGE: ::std::os::raw::c_uint = 128;
123pub const BLKID_SUBLKS_VERSION: ::std::os::raw::c_uint = 256;
124pub const BLKID_SUBLKS_MAGIC: ::std::os::raw::c_uint = 512;
125pub const BLKID_SUBLKS_BADCSUM: ::std::os::raw::c_uint = 1024;
126pub const BLKID_SUBLKS_DEFAULT: ::std::os::raw::c_uint = 106;
127pub const BLKID_FLTR_NOTIN: ::std::os::raw::c_uint = 1;
128pub const BLKID_FLTR_ONLYIN: ::std::os::raw::c_uint = 2;
129pub const BLKID_USAGE_FILESYSTEM: ::std::os::raw::c_uint = 2;
130pub const BLKID_USAGE_RAID: ::std::os::raw::c_uint = 4;
131pub const BLKID_USAGE_CRYPTO: ::std::os::raw::c_uint = 8;
132pub const BLKID_USAGE_OTHER: ::std::os::raw::c_uint = 16;
133pub const BLKID_PARTS_FORCE_GPT: ::std::os::raw::c_uint = 2;
134pub const BLKID_PARTS_ENTRY_DETAILS: ::std::os::raw::c_uint = 4;
135pub const BLKID_PARTS_MAGIC: ::std::os::raw::c_uint = 8;
136pub const BLKID_PROBREQ_LABEL: ::std::os::raw::c_uint = 2;
137pub const BLKID_PROBREQ_LABELRAW: ::std::os::raw::c_uint = 4;
138pub const BLKID_PROBREQ_UUID: ::std::os::raw::c_uint = 8;
139pub const BLKID_PROBREQ_UUIDRAW: ::std::os::raw::c_uint = 16;
140pub const BLKID_PROBREQ_TYPE: ::std::os::raw::c_uint = 32;
141pub const BLKID_PROBREQ_SECTYPE: ::std::os::raw::c_uint = 64;
142pub const BLKID_PROBREQ_USAGE: ::std::os::raw::c_uint = 128;
143pub const BLKID_PROBREQ_VERSION: ::std::os::raw::c_uint = 256;
144pub type __u_char = ::std::os::raw::c_uchar;
145pub type __u_short = ::std::os::raw::c_ushort;
146pub type __u_int = ::std::os::raw::c_uint;
147pub type __u_long = ::std::os::raw::c_ulong;
148pub type __int8_t = ::std::os::raw::c_schar;
149pub type __uint8_t = ::std::os::raw::c_uchar;
150pub type __int16_t = ::std::os::raw::c_short;
151pub type __uint16_t = ::std::os::raw::c_ushort;
152pub type __int32_t = ::std::os::raw::c_int;
153pub type __uint32_t = ::std::os::raw::c_uint;
154pub type __int64_t = ::std::os::raw::c_long;
155pub type __uint64_t = ::std::os::raw::c_ulong;
156pub type __quad_t = ::std::os::raw::c_long;
157pub type __u_quad_t = ::std::os::raw::c_ulong;
158pub type __intmax_t = ::std::os::raw::c_long;
159pub type __uintmax_t = ::std::os::raw::c_ulong;
160pub type __dev_t = ::std::os::raw::c_ulong;
161pub type __uid_t = ::std::os::raw::c_uint;
162pub type __gid_t = ::std::os::raw::c_uint;
163pub type __ino_t = ::std::os::raw::c_ulong;
164pub type __ino64_t = ::std::os::raw::c_ulong;
165pub type __mode_t = ::std::os::raw::c_uint;
166pub type __nlink_t = ::std::os::raw::c_ulong;
167pub type __off_t = ::std::os::raw::c_long;
168pub type __off64_t = ::std::os::raw::c_long;
169pub type __pid_t = ::std::os::raw::c_int;
170#[repr(C)]
171#[derive(Debug, Copy)]
172pub struct __fsid_t {
173    pub __val: [::std::os::raw::c_int; 2usize],
174}
175#[test]
176fn bindgen_test_layout___fsid_t() {
177    assert_eq!(::std::mem::size_of::<__fsid_t>() , 8usize , concat ! (
178               "Size of: " , stringify ! ( __fsid_t ) ));
179    assert_eq! (::std::mem::align_of::<__fsid_t>() , 4usize , concat ! (
180                "Alignment of " , stringify ! ( __fsid_t ) ));
181    assert_eq! (unsafe {
182                & ( * ( 0 as * const __fsid_t ) ) . __val as * const _ as
183                usize } , 0usize , concat ! (
184                "Alignment of field: " , stringify ! ( __fsid_t ) , "::" ,
185                stringify ! ( __val ) ));
186}
187impl Clone for __fsid_t {
188    fn clone(&self) -> Self { *self }
189}
190pub type __clock_t = ::std::os::raw::c_long;
191pub type __rlim_t = ::std::os::raw::c_ulong;
192pub type __rlim64_t = ::std::os::raw::c_ulong;
193pub type __id_t = ::std::os::raw::c_uint;
194pub type __time_t = ::std::os::raw::c_long;
195pub type __useconds_t = ::std::os::raw::c_uint;
196pub type __suseconds_t = ::std::os::raw::c_long;
197pub type __daddr_t = ::std::os::raw::c_int;
198pub type __key_t = ::std::os::raw::c_int;
199pub type __clockid_t = ::std::os::raw::c_int;
200pub type __timer_t = *mut ::std::os::raw::c_void;
201pub type __blksize_t = ::std::os::raw::c_long;
202pub type __blkcnt_t = ::std::os::raw::c_long;
203pub type __blkcnt64_t = ::std::os::raw::c_long;
204pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
205pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
206pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
207pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
208pub type __fsword_t = ::std::os::raw::c_long;
209pub type __ssize_t = ::std::os::raw::c_long;
210pub type __syscall_slong_t = ::std::os::raw::c_long;
211pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
212pub type __loff_t = __off64_t;
213pub type __qaddr_t = *mut __quad_t;
214pub type __caddr_t = *mut ::std::os::raw::c_char;
215pub type __intptr_t = ::std::os::raw::c_long;
216pub type __socklen_t = ::std::os::raw::c_uint;
217pub type int_least8_t = ::std::os::raw::c_schar;
218pub type int_least16_t = ::std::os::raw::c_short;
219pub type int_least32_t = ::std::os::raw::c_int;
220pub type int_least64_t = ::std::os::raw::c_long;
221pub type uint_least8_t = ::std::os::raw::c_uchar;
222pub type uint_least16_t = ::std::os::raw::c_ushort;
223pub type uint_least32_t = ::std::os::raw::c_uint;
224pub type uint_least64_t = ::std::os::raw::c_ulong;
225pub type int_fast8_t = ::std::os::raw::c_schar;
226pub type int_fast16_t = ::std::os::raw::c_long;
227pub type int_fast32_t = ::std::os::raw::c_long;
228pub type int_fast64_t = ::std::os::raw::c_long;
229pub type uint_fast8_t = ::std::os::raw::c_uchar;
230pub type uint_fast16_t = ::std::os::raw::c_ulong;
231pub type uint_fast32_t = ::std::os::raw::c_ulong;
232pub type uint_fast64_t = ::std::os::raw::c_ulong;
233pub type intmax_t = __intmax_t;
234pub type uintmax_t = __uintmax_t;
235pub type u_char = __u_char;
236pub type u_short = __u_short;
237pub type u_int = __u_int;
238pub type u_long = __u_long;
239pub type quad_t = __quad_t;
240pub type u_quad_t = __u_quad_t;
241pub type fsid_t = __fsid_t;
242pub type loff_t = __loff_t;
243pub type ino_t = __ino_t;
244pub type dev_t = __dev_t;
245pub type gid_t = __gid_t;
246pub type mode_t = __mode_t;
247pub type nlink_t = __nlink_t;
248pub type uid_t = __uid_t;
249pub type off_t = __off_t;
250pub type pid_t = __pid_t;
251pub type id_t = __id_t;
252pub type daddr_t = __daddr_t;
253pub type caddr_t = __caddr_t;
254pub type key_t = __key_t;
255pub type clock_t = __clock_t;
256pub type clockid_t = __clockid_t;
257pub type time_t = __time_t;
258pub type timer_t = __timer_t;
259pub type ulong = ::std::os::raw::c_ulong;
260pub type ushort = ::std::os::raw::c_ushort;
261pub type uint = ::std::os::raw::c_uint;
262pub type u_int8_t = ::std::os::raw::c_uchar;
263pub type u_int16_t = ::std::os::raw::c_ushort;
264pub type u_int32_t = ::std::os::raw::c_uint;
265pub type u_int64_t = ::std::os::raw::c_ulong;
266pub type register_t = ::std::os::raw::c_long;
267pub type __sig_atomic_t = ::std::os::raw::c_int;
268#[repr(C)]
269#[derive(Debug, Copy)]
270pub struct __sigset_t {
271    pub __val: [::std::os::raw::c_ulong; 16usize],
272}
273#[test]
274fn bindgen_test_layout___sigset_t() {
275    assert_eq!(::std::mem::size_of::<__sigset_t>() , 128usize , concat ! (
276               "Size of: " , stringify ! ( __sigset_t ) ));
277    assert_eq! (::std::mem::align_of::<__sigset_t>() , 8usize , concat ! (
278                "Alignment of " , stringify ! ( __sigset_t ) ));
279    assert_eq! (unsafe {
280                & ( * ( 0 as * const __sigset_t ) ) . __val as * const _ as
281                usize } , 0usize , concat ! (
282                "Alignment of field: " , stringify ! ( __sigset_t ) , "::" ,
283                stringify ! ( __val ) ));
284}
285impl Clone for __sigset_t {
286    fn clone(&self) -> Self { *self }
287}
288pub type sigset_t = __sigset_t;
289#[repr(C)]
290#[derive(Debug, Copy)]
291pub struct timeval {
292    pub tv_sec: __time_t,
293    pub tv_usec: __suseconds_t,
294}
295#[test]
296fn bindgen_test_layout_timeval() {
297    assert_eq!(::std::mem::size_of::<timeval>() , 16usize , concat ! (
298               "Size of: " , stringify ! ( timeval ) ));
299    assert_eq! (::std::mem::align_of::<timeval>() , 8usize , concat ! (
300                "Alignment of " , stringify ! ( timeval ) ));
301    assert_eq! (unsafe {
302                & ( * ( 0 as * const timeval ) ) . tv_sec as * const _ as
303                usize } , 0usize , concat ! (
304                "Alignment of field: " , stringify ! ( timeval ) , "::" ,
305                stringify ! ( tv_sec ) ));
306    assert_eq! (unsafe {
307                & ( * ( 0 as * const timeval ) ) . tv_usec as * const _ as
308                usize } , 8usize , concat ! (
309                "Alignment of field: " , stringify ! ( timeval ) , "::" ,
310                stringify ! ( tv_usec ) ));
311}
312impl Clone for timeval {
313    fn clone(&self) -> Self { *self }
314}
315#[repr(C)]
316#[derive(Debug, Copy)]
317pub struct timespec {
318    pub tv_sec: __time_t,
319    pub tv_nsec: __syscall_slong_t,
320}
321#[test]
322fn bindgen_test_layout_timespec() {
323    assert_eq!(::std::mem::size_of::<timespec>() , 16usize , concat ! (
324               "Size of: " , stringify ! ( timespec ) ));
325    assert_eq! (::std::mem::align_of::<timespec>() , 8usize , concat ! (
326                "Alignment of " , stringify ! ( timespec ) ));
327    assert_eq! (unsafe {
328                & ( * ( 0 as * const timespec ) ) . tv_sec as * const _ as
329                usize } , 0usize , concat ! (
330                "Alignment of field: " , stringify ! ( timespec ) , "::" ,
331                stringify ! ( tv_sec ) ));
332    assert_eq! (unsafe {
333                & ( * ( 0 as * const timespec ) ) . tv_nsec as * const _ as
334                usize } , 8usize , concat ! (
335                "Alignment of field: " , stringify ! ( timespec ) , "::" ,
336                stringify ! ( tv_nsec ) ));
337}
338impl Clone for timespec {
339    fn clone(&self) -> Self { *self }
340}
341pub type suseconds_t = __suseconds_t;
342pub type __fd_mask = ::std::os::raw::c_long;
343#[repr(C)]
344#[derive(Debug, Copy)]
345pub struct fd_set {
346    pub __fds_bits: [__fd_mask; 16usize],
347}
348#[test]
349fn bindgen_test_layout_fd_set() {
350    assert_eq!(::std::mem::size_of::<fd_set>() , 128usize , concat ! (
351               "Size of: " , stringify ! ( fd_set ) ));
352    assert_eq! (::std::mem::align_of::<fd_set>() , 8usize , concat ! (
353                "Alignment of " , stringify ! ( fd_set ) ));
354    assert_eq! (unsafe {
355                & ( * ( 0 as * const fd_set ) ) . __fds_bits as * const _ as
356                usize } , 0usize , concat ! (
357                "Alignment of field: " , stringify ! ( fd_set ) , "::" ,
358                stringify ! ( __fds_bits ) ));
359}
360impl Clone for fd_set {
361    fn clone(&self) -> Self { *self }
362}
363pub type fd_mask = __fd_mask;
364extern "C" {
365    pub fn select(__nfds: ::std::os::raw::c_int, __readfds: *mut fd_set,
366                  __writefds: *mut fd_set, __exceptfds: *mut fd_set,
367                  __timeout: *mut timeval) -> ::std::os::raw::c_int;
368}
369extern "C" {
370    pub fn pselect(__nfds: ::std::os::raw::c_int, __readfds: *mut fd_set,
371                   __writefds: *mut fd_set, __exceptfds: *mut fd_set,
372                   __timeout: *const timespec, __sigmask: *const __sigset_t)
373     -> ::std::os::raw::c_int;
374}
375extern "C" {
376    pub fn gnu_dev_major(__dev: __dev_t) -> ::std::os::raw::c_uint;
377}
378extern "C" {
379    pub fn gnu_dev_minor(__dev: __dev_t) -> ::std::os::raw::c_uint;
380}
381extern "C" {
382    pub fn gnu_dev_makedev(__major: ::std::os::raw::c_uint,
383                           __minor: ::std::os::raw::c_uint) -> __dev_t;
384}
385pub type blksize_t = __blksize_t;
386pub type blkcnt_t = __blkcnt_t;
387pub type fsblkcnt_t = __fsblkcnt_t;
388pub type fsfilcnt_t = __fsfilcnt_t;
389#[repr(C)]
390#[derive(Debug, Copy, Clone)]
391pub struct blkid_struct_dev {
392    _unused: [u8; 0],
393}
394/**
395 * blkid_dev:
396 *
397 * The device object keeps information about one device
398 */
399pub type blkid_dev = *mut blkid_struct_dev;
400#[repr(C)]
401#[derive(Debug, Copy, Clone)]
402pub struct blkid_struct_cache {
403    _unused: [u8; 0],
404}
405/**
406 * blkid_cache:
407 *
408 * information about all system devices
409 */
410pub type blkid_cache = *mut blkid_struct_cache;
411#[repr(C)]
412#[derive(Debug, Copy, Clone)]
413pub struct blkid_struct_probe {
414    _unused: [u8; 0],
415}
416/**
417 * blkid_probe:
418 *
419 * low-level probing setting
420 */
421pub type blkid_probe = *mut blkid_struct_probe;
422#[repr(C)]
423#[derive(Debug, Copy, Clone)]
424pub struct blkid_struct_topology {
425    _unused: [u8; 0],
426}
427/**
428 * blkid_topology:
429 *
430 * device topology information
431 */
432pub type blkid_topology = *mut blkid_struct_topology;
433#[repr(C)]
434#[derive(Debug, Copy, Clone)]
435pub struct blkid_struct_partlist {
436    _unused: [u8; 0],
437}
438/**
439 * blkid_partlist
440 *
441 * list of all detected partitions and partitions tables
442 */
443pub type blkid_partlist = *mut blkid_struct_partlist;
444#[repr(C)]
445#[derive(Debug, Copy, Clone)]
446pub struct blkid_struct_partition {
447    _unused: [u8; 0],
448}
449/**
450 * blkid_partition:
451 *
452 * information about a partition
453 */
454pub type blkid_partition = *mut blkid_struct_partition;
455#[repr(C)]
456#[derive(Debug, Copy, Clone)]
457pub struct blkid_struct_parttable {
458    _unused: [u8; 0],
459}
460/**
461 * blkid_parttable:
462 *
463 * information about a partition table
464 */
465pub type blkid_parttable = *mut blkid_struct_parttable;
466/**
467 * blkid_loff_t:
468 *
469 * 64-bit signed number for offsets and sizes
470 */
471pub type blkid_loff_t = i64;
472#[repr(C)]
473#[derive(Debug, Copy, Clone)]
474pub struct blkid_struct_tag_iterate {
475    _unused: [u8; 0],
476}
477/**
478 * blkid_tag_iterate:
479 *
480 * tags iterator for high-level (blkid_cache) API
481 */
482pub type blkid_tag_iterate = *mut blkid_struct_tag_iterate;
483#[repr(C)]
484#[derive(Debug, Copy, Clone)]
485pub struct blkid_struct_dev_iterate {
486    _unused: [u8; 0],
487}
488/**
489 * blkid_dev_iterate:
490 *
491 * devices iterator for high-level (blkid_cache) API
492 */
493pub type blkid_dev_iterate = *mut blkid_struct_dev_iterate;
494extern "C" {
495    pub fn blkid_init_debug(mask: ::std::os::raw::c_int);
496}
497extern "C" {
498    pub fn blkid_put_cache(cache: blkid_cache);
499}
500extern "C" {
501    pub fn blkid_get_cache(cache: *mut blkid_cache,
502                           filename: *const ::std::os::raw::c_char)
503     -> ::std::os::raw::c_int;
504}
505extern "C" {
506    pub fn blkid_gc_cache(cache: blkid_cache);
507}
508extern "C" {
509    pub fn blkid_dev_devname(dev: blkid_dev) -> *const ::std::os::raw::c_char;
510}
511extern "C" {
512    pub fn blkid_dev_iterate_begin(cache: blkid_cache) -> blkid_dev_iterate;
513}
514extern "C" {
515    pub fn blkid_dev_set_search(iter: blkid_dev_iterate,
516                                search_type: *mut ::std::os::raw::c_char,
517                                search_value: *mut ::std::os::raw::c_char)
518     -> ::std::os::raw::c_int;
519}
520extern "C" {
521    pub fn blkid_dev_next(iterate: blkid_dev_iterate, dev: *mut blkid_dev)
522     -> ::std::os::raw::c_int;
523}
524extern "C" {
525    pub fn blkid_dev_iterate_end(iterate: blkid_dev_iterate);
526}
527extern "C" {
528    pub fn blkid_devno_to_devname(devno: dev_t)
529     -> *mut ::std::os::raw::c_char;
530}
531extern "C" {
532    pub fn blkid_devno_to_wholedisk(dev: dev_t,
533                                    diskname: *mut ::std::os::raw::c_char,
534                                    len: usize, diskdevno: *mut dev_t)
535     -> ::std::os::raw::c_int;
536}
537extern "C" {
538    pub fn blkid_probe_all(cache: blkid_cache) -> ::std::os::raw::c_int;
539}
540extern "C" {
541    pub fn blkid_probe_all_new(cache: blkid_cache) -> ::std::os::raw::c_int;
542}
543extern "C" {
544    pub fn blkid_probe_all_removable(cache: blkid_cache)
545     -> ::std::os::raw::c_int;
546}
547extern "C" {
548    pub fn blkid_get_dev(cache: blkid_cache,
549                         devname: *const ::std::os::raw::c_char,
550                         flags: ::std::os::raw::c_int) -> blkid_dev;
551}
552extern "C" {
553    pub fn blkid_get_dev_size(fd: ::std::os::raw::c_int) -> blkid_loff_t;
554}
555extern "C" {
556    pub fn blkid_verify(cache: blkid_cache, dev: blkid_dev) -> blkid_dev;
557}
558extern "C" {
559    pub fn blkid_get_tag_value(cache: blkid_cache,
560                               tagname: *const ::std::os::raw::c_char,
561                               devname: *const ::std::os::raw::c_char)
562     -> *mut ::std::os::raw::c_char;
563}
564extern "C" {
565    pub fn blkid_get_devname(cache: blkid_cache,
566                             token: *const ::std::os::raw::c_char,
567                             value: *const ::std::os::raw::c_char)
568     -> *mut ::std::os::raw::c_char;
569}
570extern "C" {
571    pub fn blkid_tag_iterate_begin(dev: blkid_dev) -> blkid_tag_iterate;
572}
573extern "C" {
574    pub fn blkid_tag_next(iterate: blkid_tag_iterate,
575                          type_: *mut *const ::std::os::raw::c_char,
576                          value: *mut *const ::std::os::raw::c_char)
577     -> ::std::os::raw::c_int;
578}
579extern "C" {
580    pub fn blkid_tag_iterate_end(iterate: blkid_tag_iterate);
581}
582extern "C" {
583    pub fn blkid_dev_has_tag(dev: blkid_dev,
584                             type_: *const ::std::os::raw::c_char,
585                             value: *const ::std::os::raw::c_char)
586     -> ::std::os::raw::c_int;
587}
588extern "C" {
589    pub fn blkid_find_dev_with_tag(cache: blkid_cache,
590                                   type_: *const ::std::os::raw::c_char,
591                                   value: *const ::std::os::raw::c_char)
592     -> blkid_dev;
593}
594extern "C" {
595    pub fn blkid_parse_tag_string(token: *const ::std::os::raw::c_char,
596                                  ret_type: *mut *mut ::std::os::raw::c_char,
597                                  ret_val: *mut *mut ::std::os::raw::c_char)
598     -> ::std::os::raw::c_int;
599}
600extern "C" {
601    pub fn blkid_parse_version_string(ver_string:
602                                          *const ::std::os::raw::c_char)
603     -> ::std::os::raw::c_int;
604}
605extern "C" {
606    pub fn blkid_get_library_version(ver_string:
607                                         *mut *const ::std::os::raw::c_char,
608                                     date_string:
609                                         *mut *const ::std::os::raw::c_char)
610     -> ::std::os::raw::c_int;
611}
612extern "C" {
613    pub fn blkid_encode_string(str: *const ::std::os::raw::c_char,
614                               str_enc: *mut ::std::os::raw::c_char,
615                               len: usize) -> ::std::os::raw::c_int;
616}
617extern "C" {
618    pub fn blkid_safe_string(str: *const ::std::os::raw::c_char,
619                             str_safe: *mut ::std::os::raw::c_char,
620                             len: usize) -> ::std::os::raw::c_int;
621}
622extern "C" {
623    pub fn blkid_send_uevent(devname: *const ::std::os::raw::c_char,
624                             action: *const ::std::os::raw::c_char)
625     -> ::std::os::raw::c_int;
626}
627extern "C" {
628    pub fn blkid_evaluate_tag(token: *const ::std::os::raw::c_char,
629                              value: *const ::std::os::raw::c_char,
630                              cache: *mut blkid_cache)
631     -> *mut ::std::os::raw::c_char;
632}
633extern "C" {
634    pub fn blkid_evaluate_spec(spec: *const ::std::os::raw::c_char,
635                               cache: *mut blkid_cache)
636     -> *mut ::std::os::raw::c_char;
637}
638extern "C" {
639    pub fn blkid_new_probe() -> blkid_probe;
640}
641extern "C" {
642    pub fn blkid_new_probe_from_filename(filename:
643                                             *const ::std::os::raw::c_char)
644     -> blkid_probe;
645}
646extern "C" {
647    pub fn blkid_free_probe(pr: blkid_probe);
648}
649extern "C" {
650    pub fn blkid_reset_probe(pr: blkid_probe);
651}
652extern "C" {
653    pub fn blkid_probe_set_device(pr: blkid_probe, fd: ::std::os::raw::c_int,
654                                  off: blkid_loff_t, size: blkid_loff_t)
655     -> ::std::os::raw::c_int;
656}
657extern "C" {
658    pub fn blkid_probe_get_devno(pr: blkid_probe) -> dev_t;
659}
660extern "C" {
661    pub fn blkid_probe_get_wholedisk_devno(pr: blkid_probe) -> dev_t;
662}
663extern "C" {
664    pub fn blkid_probe_is_wholedisk(pr: blkid_probe) -> ::std::os::raw::c_int;
665}
666extern "C" {
667    pub fn blkid_probe_get_size(pr: blkid_probe) -> blkid_loff_t;
668}
669extern "C" {
670    pub fn blkid_probe_get_offset(pr: blkid_probe) -> blkid_loff_t;
671}
672extern "C" {
673    pub fn blkid_probe_get_sectorsize(pr: blkid_probe)
674     -> ::std::os::raw::c_uint;
675}
676extern "C" {
677    pub fn blkid_probe_get_sectors(pr: blkid_probe) -> blkid_loff_t;
678}
679extern "C" {
680    pub fn blkid_probe_get_fd(pr: blkid_probe) -> ::std::os::raw::c_int;
681}
682extern "C" {
683    pub fn blkid_known_fstype(fstype: *const ::std::os::raw::c_char)
684     -> ::std::os::raw::c_int;
685}
686extern "C" {
687    pub fn blkid_superblocks_get_name(idx: usize,
688                                      name:
689                                          *mut *const ::std::os::raw::c_char,
690                                      usage: *mut ::std::os::raw::c_int)
691     -> ::std::os::raw::c_int;
692}
693extern "C" {
694    pub fn blkid_probe_enable_superblocks(pr: blkid_probe,
695                                          enable: ::std::os::raw::c_int)
696     -> ::std::os::raw::c_int;
697}
698extern "C" {
699    pub fn blkid_probe_set_superblocks_flags(pr: blkid_probe,
700                                             flags: ::std::os::raw::c_int)
701     -> ::std::os::raw::c_int;
702}
703extern "C" {
704    pub fn blkid_probe_reset_superblocks_filter(pr: blkid_probe)
705     -> ::std::os::raw::c_int;
706}
707extern "C" {
708    pub fn blkid_probe_invert_superblocks_filter(pr: blkid_probe)
709     -> ::std::os::raw::c_int;
710}
711extern "C" {
712    pub fn blkid_probe_filter_superblocks_type(pr: blkid_probe,
713                                               flag: ::std::os::raw::c_int,
714                                               names:
715                                                   *mut *mut ::std::os::raw::c_char)
716     -> ::std::os::raw::c_int;
717}
718extern "C" {
719    pub fn blkid_probe_filter_superblocks_usage(pr: blkid_probe,
720                                                flag: ::std::os::raw::c_int,
721                                                usage: ::std::os::raw::c_int)
722     -> ::std::os::raw::c_int;
723}
724extern "C" {
725    pub fn blkid_probe_enable_topology(pr: blkid_probe,
726                                       enable: ::std::os::raw::c_int)
727     -> ::std::os::raw::c_int;
728}
729extern "C" {
730    pub fn blkid_probe_get_topology(pr: blkid_probe) -> blkid_topology;
731}
732extern "C" {
733    pub fn blkid_topology_get_alignment_offset(tp: blkid_topology)
734     -> ::std::os::raw::c_ulong;
735}
736extern "C" {
737    pub fn blkid_topology_get_minimum_io_size(tp: blkid_topology)
738     -> ::std::os::raw::c_ulong;
739}
740extern "C" {
741    pub fn blkid_topology_get_optimal_io_size(tp: blkid_topology)
742     -> ::std::os::raw::c_ulong;
743}
744extern "C" {
745    pub fn blkid_topology_get_logical_sector_size(tp: blkid_topology)
746     -> ::std::os::raw::c_ulong;
747}
748extern "C" {
749    pub fn blkid_topology_get_physical_sector_size(tp: blkid_topology)
750     -> ::std::os::raw::c_ulong;
751}
752extern "C" {
753    pub fn blkid_known_pttype(pttype: *const ::std::os::raw::c_char)
754     -> ::std::os::raw::c_int;
755}
756extern "C" {
757    pub fn blkid_probe_enable_partitions(pr: blkid_probe,
758                                         enable: ::std::os::raw::c_int)
759     -> ::std::os::raw::c_int;
760}
761extern "C" {
762    pub fn blkid_probe_reset_partitions_filter(pr: blkid_probe)
763     -> ::std::os::raw::c_int;
764}
765extern "C" {
766    pub fn blkid_probe_invert_partitions_filter(pr: blkid_probe)
767     -> ::std::os::raw::c_int;
768}
769extern "C" {
770    pub fn blkid_probe_filter_partitions_type(pr: blkid_probe,
771                                              flag: ::std::os::raw::c_int,
772                                              names:
773                                                  *mut *mut ::std::os::raw::c_char)
774     -> ::std::os::raw::c_int;
775}
776extern "C" {
777    pub fn blkid_probe_set_partitions_flags(pr: blkid_probe,
778                                            flags: ::std::os::raw::c_int)
779     -> ::std::os::raw::c_int;
780}
781extern "C" {
782    pub fn blkid_probe_get_partitions(pr: blkid_probe) -> blkid_partlist;
783}
784extern "C" {
785    pub fn blkid_partlist_numof_partitions(ls: blkid_partlist)
786     -> ::std::os::raw::c_int;
787}
788extern "C" {
789    pub fn blkid_partlist_get_table(ls: blkid_partlist) -> blkid_parttable;
790}
791extern "C" {
792    pub fn blkid_partlist_get_partition(ls: blkid_partlist,
793                                        n: ::std::os::raw::c_int)
794     -> blkid_partition;
795}
796extern "C" {
797    pub fn blkid_partlist_get_partition_by_partno(ls: blkid_partlist,
798                                                  n: ::std::os::raw::c_int)
799     -> blkid_partition;
800}
801extern "C" {
802    pub fn blkid_partlist_devno_to_partition(ls: blkid_partlist, devno: dev_t)
803     -> blkid_partition;
804}
805extern "C" {
806    pub fn blkid_partition_get_table(par: blkid_partition) -> blkid_parttable;
807}
808extern "C" {
809    pub fn blkid_partition_get_name(par: blkid_partition)
810     -> *const ::std::os::raw::c_char;
811}
812extern "C" {
813    pub fn blkid_partition_get_uuid(par: blkid_partition)
814     -> *const ::std::os::raw::c_char;
815}
816extern "C" {
817    pub fn blkid_partition_get_partno(par: blkid_partition)
818     -> ::std::os::raw::c_int;
819}
820extern "C" {
821    pub fn blkid_partition_get_start(par: blkid_partition) -> blkid_loff_t;
822}
823extern "C" {
824    pub fn blkid_partition_get_size(par: blkid_partition) -> blkid_loff_t;
825}
826extern "C" {
827    pub fn blkid_partition_get_type(par: blkid_partition)
828     -> ::std::os::raw::c_int;
829}
830extern "C" {
831    pub fn blkid_partition_get_type_string(par: blkid_partition)
832     -> *const ::std::os::raw::c_char;
833}
834extern "C" {
835    pub fn blkid_partition_get_flags(par: blkid_partition)
836     -> ::std::os::raw::c_ulonglong;
837}
838extern "C" {
839    pub fn blkid_partition_is_logical(par: blkid_partition)
840     -> ::std::os::raw::c_int;
841}
842extern "C" {
843    pub fn blkid_partition_is_extended(par: blkid_partition)
844     -> ::std::os::raw::c_int;
845}
846extern "C" {
847    pub fn blkid_partition_is_primary(par: blkid_partition)
848     -> ::std::os::raw::c_int;
849}
850extern "C" {
851    pub fn blkid_parttable_get_type(tab: blkid_parttable)
852     -> *const ::std::os::raw::c_char;
853}
854extern "C" {
855    pub fn blkid_parttable_get_id(tab: blkid_parttable)
856     -> *const ::std::os::raw::c_char;
857}
858extern "C" {
859    pub fn blkid_parttable_get_offset(tab: blkid_parttable) -> blkid_loff_t;
860}
861extern "C" {
862    pub fn blkid_parttable_get_parent(tab: blkid_parttable)
863     -> blkid_partition;
864}
865extern "C" {
866    pub fn blkid_do_probe(pr: blkid_probe) -> ::std::os::raw::c_int;
867}
868extern "C" {
869    pub fn blkid_do_safeprobe(pr: blkid_probe) -> ::std::os::raw::c_int;
870}
871extern "C" {
872    pub fn blkid_do_fullprobe(pr: blkid_probe) -> ::std::os::raw::c_int;
873}
874extern "C" {
875    pub fn blkid_probe_numof_values(pr: blkid_probe) -> ::std::os::raw::c_int;
876}
877extern "C" {
878    pub fn blkid_probe_get_value(pr: blkid_probe, num: ::std::os::raw::c_int,
879                                 name: *mut *const ::std::os::raw::c_char,
880                                 data: *mut *const ::std::os::raw::c_char,
881                                 len: *mut usize) -> ::std::os::raw::c_int;
882}
883extern "C" {
884    pub fn blkid_probe_lookup_value(pr: blkid_probe,
885                                    name: *const ::std::os::raw::c_char,
886                                    data: *mut *const ::std::os::raw::c_char,
887                                    len: *mut usize) -> ::std::os::raw::c_int;
888}
889extern "C" {
890    pub fn blkid_probe_has_value(pr: blkid_probe,
891                                 name: *const ::std::os::raw::c_char)
892     -> ::std::os::raw::c_int;
893}
894extern "C" {
895    pub fn blkid_do_wipe(pr: blkid_probe, dryrun: ::std::os::raw::c_int)
896     -> ::std::os::raw::c_int;
897}
898extern "C" {
899    pub fn blkid_probe_step_back(pr: blkid_probe) -> ::std::os::raw::c_int;
900}
901extern "C" {
902    pub fn blkid_probe_set_request(pr: blkid_probe,
903                                   flags: ::std::os::raw::c_int)
904     -> ::std::os::raw::c_int;
905}
906extern "C" {
907    pub fn blkid_probe_filter_usage(pr: blkid_probe,
908                                    flag: ::std::os::raw::c_int,
909                                    usage: ::std::os::raw::c_int)
910     -> ::std::os::raw::c_int;
911}
912extern "C" {
913    pub fn blkid_probe_filter_types(pr: blkid_probe,
914                                    flag: ::std::os::raw::c_int,
915                                    names: *mut *mut ::std::os::raw::c_char)
916     -> ::std::os::raw::c_int;
917}
918extern "C" {
919    pub fn blkid_probe_invert_filter(pr: blkid_probe)
920     -> ::std::os::raw::c_int;
921}
922extern "C" {
923    pub fn blkid_probe_reset_filter(pr: blkid_probe) -> ::std::os::raw::c_int;
924}