pub const _STDINT_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __GLIBC_USE_ISOC2X: u32 = 0;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 31;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __LONG_DOUBLE_USES_FLOAT128: u32 = 0;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const _BITS_TYPES_H: u32 = 1;
pub const __TIMESIZE: u32 = 64;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __STATFS_MATCHES_STATFS64: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const LFS_VERSION: u32 = 131074;
pub const LFS_VERSION_MAJOR: u32 = 2;
pub const LFS_VERSION_MINOR: u32 = 2;
pub const LFS_DISK_VERSION: u32 = 131072;
pub const LFS_DISK_VERSION_MAJOR: u32 = 2;
pub const LFS_DISK_VERSION_MINOR: u32 = 0;
pub const LFS_NAME_MAX: u32 = 255;
pub const LFS_FILE_MAX: u32 = 2147483647;
pub const LFS_ATTR_MAX: u32 = 1022;
pub type __u_char = cty::c_uchar;
pub type __u_short = cty::c_ushort;
pub type __u_int = cty::c_uint;
pub type __u_long = cty::c_ulong;
pub type __int8_t = cty::c_schar;
pub type __uint8_t = cty::c_uchar;
pub type __int16_t = cty::c_short;
pub type __uint16_t = cty::c_ushort;
pub type __int32_t = cty::c_int;
pub type __uint32_t = cty::c_uint;
pub type __int64_t = cty::c_long;
pub type __uint64_t = cty::c_ulong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = cty::c_long;
pub type __u_quad_t = cty::c_ulong;
pub type __intmax_t = cty::c_long;
pub type __uintmax_t = cty::c_ulong;
pub type __dev_t = cty::c_ulong;
pub type __uid_t = cty::c_uint;
pub type __gid_t = cty::c_uint;
pub type __ino_t = cty::c_ulong;
pub type __ino64_t = cty::c_ulong;
pub type __mode_t = cty::c_uint;
pub type __nlink_t = cty::c_ulong;
pub type __off_t = cty::c_long;
pub type __off64_t = cty::c_long;
pub type __pid_t = cty::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
pub __val: [cty::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
assert_eq!(
::core::mem::size_of::<__fsid_t>(),
8usize,
concat!("Size of: ", stringify!(__fsid_t))
);
assert_eq!(
::core::mem::align_of::<__fsid_t>(),
4usize,
concat!("Alignment of ", stringify!(__fsid_t))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<__fsid_t>())).__val as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__fsid_t),
"::",
stringify!(__val)
)
);
}
pub type __clock_t = cty::c_long;
pub type __rlim_t = cty::c_ulong;
pub type __rlim64_t = cty::c_ulong;
pub type __id_t = cty::c_uint;
pub type __time_t = cty::c_long;
pub type __useconds_t = cty::c_uint;
pub type __suseconds_t = cty::c_long;
pub type __daddr_t = cty::c_int;
pub type __key_t = cty::c_int;
pub type __clockid_t = cty::c_int;
pub type __timer_t = *mut cty::c_void;
pub type __blksize_t = cty::c_long;
pub type __blkcnt_t = cty::c_long;
pub type __blkcnt64_t = cty::c_long;
pub type __fsblkcnt_t = cty::c_ulong;
pub type __fsblkcnt64_t = cty::c_ulong;
pub type __fsfilcnt_t = cty::c_ulong;
pub type __fsfilcnt64_t = cty::c_ulong;
pub type __fsword_t = cty::c_long;
pub type __ssize_t = cty::c_long;
pub type __syscall_slong_t = cty::c_long;
pub type __syscall_ulong_t = cty::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut cty::c_char;
pub type __intptr_t = cty::c_long;
pub type __socklen_t = cty::c_uint;
pub type __sig_atomic_t = cty::c_int;
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = cty::c_schar;
pub type int_fast16_t = cty::c_long;
pub type int_fast32_t = cty::c_long;
pub type int_fast64_t = cty::c_long;
pub type uint_fast8_t = cty::c_uchar;
pub type uint_fast16_t = cty::c_ulong;
pub type uint_fast32_t = cty::c_ulong;
pub type uint_fast64_t = cty::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
#[doc = " Definitions ///"]
pub type lfs_size_t = u32;
pub type lfs_off_t = u32;
pub type lfs_ssize_t = i32;
pub type lfs_soff_t = i32;
pub type lfs_block_t = u32;
pub const lfs_error_LFS_ERR_OK: lfs_error = 0;
pub const lfs_error_LFS_ERR_IO: lfs_error = -5;
pub const lfs_error_LFS_ERR_CORRUPT: lfs_error = -84;
pub const lfs_error_LFS_ERR_NOENT: lfs_error = -2;
pub const lfs_error_LFS_ERR_EXIST: lfs_error = -17;
pub const lfs_error_LFS_ERR_NOTDIR: lfs_error = -20;
pub const lfs_error_LFS_ERR_ISDIR: lfs_error = -21;
pub const lfs_error_LFS_ERR_NOTEMPTY: lfs_error = -39;
pub const lfs_error_LFS_ERR_BADF: lfs_error = -9;
pub const lfs_error_LFS_ERR_FBIG: lfs_error = -27;
pub const lfs_error_LFS_ERR_INVAL: lfs_error = -22;
pub const lfs_error_LFS_ERR_NOSPC: lfs_error = -28;
pub const lfs_error_LFS_ERR_NOMEM: lfs_error = -12;
pub const lfs_error_LFS_ERR_NOATTR: lfs_error = -61;
pub const lfs_error_LFS_ERR_NAMETOOLONG: lfs_error = -36;
pub type lfs_error = cty::c_int;
pub const lfs_type_LFS_TYPE_REG: lfs_type = 1;
pub const lfs_type_LFS_TYPE_DIR: lfs_type = 2;
pub const lfs_type_LFS_TYPE_SPLICE: lfs_type = 1024;
pub const lfs_type_LFS_TYPE_NAME: lfs_type = 0;
pub const lfs_type_LFS_TYPE_STRUCT: lfs_type = 512;
pub const lfs_type_LFS_TYPE_USERATTR: lfs_type = 768;
pub const lfs_type_LFS_TYPE_FROM: lfs_type = 256;
pub const lfs_type_LFS_TYPE_TAIL: lfs_type = 1536;
pub const lfs_type_LFS_TYPE_GLOBALS: lfs_type = 1792;
pub const lfs_type_LFS_TYPE_CRC: lfs_type = 1280;
pub const lfs_type_LFS_TYPE_CREATE: lfs_type = 1025;
pub const lfs_type_LFS_TYPE_DELETE: lfs_type = 1279;
pub const lfs_type_LFS_TYPE_SUPERBLOCK: lfs_type = 255;
pub const lfs_type_LFS_TYPE_DIRSTRUCT: lfs_type = 512;
pub const lfs_type_LFS_TYPE_CTZSTRUCT: lfs_type = 514;
pub const lfs_type_LFS_TYPE_INLINESTRUCT: lfs_type = 513;
pub const lfs_type_LFS_TYPE_SOFTTAIL: lfs_type = 1536;
pub const lfs_type_LFS_TYPE_HARDTAIL: lfs_type = 1537;
pub const lfs_type_LFS_TYPE_MOVESTATE: lfs_type = 2047;
pub const lfs_type_LFS_FROM_NOOP: lfs_type = 0;
pub const lfs_type_LFS_FROM_MOVE: lfs_type = 257;
pub const lfs_type_LFS_FROM_USERATTRS: lfs_type = 258;
pub type lfs_type = cty::c_uint;
pub const lfs_open_flags_LFS_O_RDONLY: lfs_open_flags = 1;
pub const lfs_open_flags_LFS_O_WRONLY: lfs_open_flags = 2;
pub const lfs_open_flags_LFS_O_RDWR: lfs_open_flags = 3;
pub const lfs_open_flags_LFS_O_CREAT: lfs_open_flags = 256;
pub const lfs_open_flags_LFS_O_EXCL: lfs_open_flags = 512;
pub const lfs_open_flags_LFS_O_TRUNC: lfs_open_flags = 1024;
pub const lfs_open_flags_LFS_O_APPEND: lfs_open_flags = 2048;
pub const lfs_open_flags_LFS_F_DIRTY: lfs_open_flags = 65536;
pub const lfs_open_flags_LFS_F_WRITING: lfs_open_flags = 131072;
pub const lfs_open_flags_LFS_F_READING: lfs_open_flags = 262144;
pub const lfs_open_flags_LFS_F_ERRED: lfs_open_flags = 524288;
pub const lfs_open_flags_LFS_F_INLINE: lfs_open_flags = 1048576;
pub const lfs_open_flags_LFS_F_OPENED: lfs_open_flags = 2097152;
pub type lfs_open_flags = cty::c_uint;
pub const lfs_whence_flags_LFS_SEEK_SET: lfs_whence_flags = 0;
pub const lfs_whence_flags_LFS_SEEK_CUR: lfs_whence_flags = 1;
pub const lfs_whence_flags_LFS_SEEK_END: lfs_whence_flags = 2;
pub type lfs_whence_flags = cty::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_config {
pub context: *mut cty::c_void,
pub read: ::core::option::Option<
unsafe extern "C" fn(
c: *const lfs_config,
block: lfs_block_t,
off: lfs_off_t,
buffer: *mut cty::c_void,
size: lfs_size_t,
) -> cty::c_int,
>,
pub prog: ::core::option::Option<
unsafe extern "C" fn(
c: *const lfs_config,
block: lfs_block_t,
off: lfs_off_t,
buffer: *const cty::c_void,
size: lfs_size_t,
) -> cty::c_int,
>,
pub erase: ::core::option::Option<
unsafe extern "C" fn(c: *const lfs_config, block: lfs_block_t) -> cty::c_int,
>,
pub sync: ::core::option::Option<unsafe extern "C" fn(c: *const lfs_config) -> cty::c_int>,
pub read_size: lfs_size_t,
pub prog_size: lfs_size_t,
pub block_size: lfs_size_t,
pub block_count: lfs_size_t,
pub block_cycles: i32,
pub cache_size: lfs_size_t,
pub lookahead_size: lfs_size_t,
pub read_buffer: *mut cty::c_void,
pub prog_buffer: *mut cty::c_void,
pub lookahead_buffer: *mut cty::c_void,
pub name_max: lfs_size_t,
pub file_max: lfs_size_t,
pub attr_max: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_config() {
assert_eq!(
::core::mem::size_of::<lfs_config>(),
112usize,
concat!("Size of: ", stringify!(lfs_config))
);
assert_eq!(
::core::mem::align_of::<lfs_config>(),
8usize,
concat!("Alignment of ", stringify!(lfs_config))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).context as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(context)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).read as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(read)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).prog as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(prog)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).erase as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(erase)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).sync as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(sync)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).read_size as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(read_size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).prog_size as *const _ as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(prog_size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).block_size as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(block_size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).block_count as *const _ as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(block_count)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).block_cycles as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(block_cycles)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).cache_size as *const _ as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(cache_size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).lookahead_size as *const _ as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(lookahead_size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).read_buffer as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(read_buffer)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).prog_buffer as *const _ as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(prog_buffer)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).lookahead_buffer as *const _ as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(lookahead_buffer)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).name_max as *const _ as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(name_max)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).file_max as *const _ as usize },
100usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(file_max)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_config>())).attr_max as *const _ as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(lfs_config),
"::",
stringify!(attr_max)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct lfs_info {
pub type_: u8,
pub size: lfs_size_t,
pub name: [cty::c_char; 256usize],
}
#[test]
fn bindgen_test_layout_lfs_info() {
assert_eq!(
::core::mem::size_of::<lfs_info>(),
264usize,
concat!("Size of: ", stringify!(lfs_info))
);
assert_eq!(
::core::mem::align_of::<lfs_info>(),
4usize,
concat!("Alignment of ", stringify!(lfs_info))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_info>())).type_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_info),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_info>())).size as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(lfs_info),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_info>())).name as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_info),
"::",
stringify!(name)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_attr {
pub type_: u8,
pub buffer: *mut cty::c_void,
pub size: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_attr() {
assert_eq!(
::core::mem::size_of::<lfs_attr>(),
24usize,
concat!("Size of: ", stringify!(lfs_attr))
);
assert_eq!(
::core::mem::align_of::<lfs_attr>(),
8usize,
concat!("Alignment of ", stringify!(lfs_attr))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_attr>())).type_ as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_attr),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_attr>())).buffer as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_attr),
"::",
stringify!(buffer)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_attr>())).size as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lfs_attr),
"::",
stringify!(size)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_file_config {
pub buffer: *mut cty::c_void,
pub attrs: *mut lfs_attr,
pub attr_count: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_file_config() {
assert_eq!(
::core::mem::size_of::<lfs_file_config>(),
24usize,
concat!("Size of: ", stringify!(lfs_file_config))
);
assert_eq!(
::core::mem::align_of::<lfs_file_config>(),
8usize,
concat!("Alignment of ", stringify!(lfs_file_config))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file_config>())).buffer as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_file_config),
"::",
stringify!(buffer)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file_config>())).attrs as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_file_config),
"::",
stringify!(attrs)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file_config>())).attr_count as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lfs_file_config),
"::",
stringify!(attr_count)
)
);
}
#[doc = " internal littlefs data structures ///"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_cache {
pub block: lfs_block_t,
pub off: lfs_off_t,
pub size: lfs_size_t,
pub buffer: *mut u8,
}
#[test]
fn bindgen_test_layout_lfs_cache() {
assert_eq!(
::core::mem::size_of::<lfs_cache>(),
24usize,
concat!("Size of: ", stringify!(lfs_cache))
);
assert_eq!(
::core::mem::align_of::<lfs_cache>(),
8usize,
concat!("Alignment of ", stringify!(lfs_cache))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_cache>())).block as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_cache),
"::",
stringify!(block)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_cache>())).off as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(lfs_cache),
"::",
stringify!(off)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_cache>())).size as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_cache),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_cache>())).buffer as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lfs_cache),
"::",
stringify!(buffer)
)
);
}
#[doc = " internal littlefs data structures ///"]
pub type lfs_cache_t = lfs_cache;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_mdir {
pub pair: [lfs_block_t; 2usize],
pub rev: u32,
pub off: lfs_off_t,
pub etag: u32,
pub count: u16,
pub erased: bool,
pub split: bool,
pub tail: [lfs_block_t; 2usize],
}
#[test]
fn bindgen_test_layout_lfs_mdir() {
assert_eq!(
::core::mem::size_of::<lfs_mdir>(),
32usize,
concat!("Size of: ", stringify!(lfs_mdir))
);
assert_eq!(
::core::mem::align_of::<lfs_mdir>(),
4usize,
concat!("Alignment of ", stringify!(lfs_mdir))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_mdir>())).pair as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_mdir),
"::",
stringify!(pair)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_mdir>())).rev as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_mdir),
"::",
stringify!(rev)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_mdir>())).off as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lfs_mdir),
"::",
stringify!(off)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_mdir>())).etag as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lfs_mdir),
"::",
stringify!(etag)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_mdir>())).count as *const _ as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(lfs_mdir),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_mdir>())).erased as *const _ as usize },
22usize,
concat!(
"Offset of field: ",
stringify!(lfs_mdir),
"::",
stringify!(erased)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_mdir>())).split as *const _ as usize },
23usize,
concat!(
"Offset of field: ",
stringify!(lfs_mdir),
"::",
stringify!(split)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_mdir>())).tail as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lfs_mdir),
"::",
stringify!(tail)
)
);
}
pub type lfs_mdir_t = lfs_mdir;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_dir {
pub next: *mut lfs_dir,
pub id: u16,
pub type_: u8,
pub m: lfs_mdir_t,
pub pos: lfs_off_t,
pub head: [lfs_block_t; 2usize],
}
#[test]
fn bindgen_test_layout_lfs_dir() {
assert_eq!(
::core::mem::size_of::<lfs_dir>(),
56usize,
concat!("Size of: ", stringify!(lfs_dir))
);
assert_eq!(
::core::mem::align_of::<lfs_dir>(),
8usize,
concat!("Alignment of ", stringify!(lfs_dir))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_dir>())).next as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_dir),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_dir>())).id as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_dir),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_dir>())).type_ as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(lfs_dir),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_dir>())).m as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lfs_dir),
"::",
stringify!(m)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_dir>())).pos as *const _ as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(lfs_dir),
"::",
stringify!(pos)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_dir>())).head as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(lfs_dir),
"::",
stringify!(head)
)
);
}
pub type lfs_dir_t = lfs_dir;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_file {
pub next: *mut lfs_file,
pub id: u16,
pub type_: u8,
pub m: lfs_mdir_t,
pub ctz: lfs_file_lfs_ctz,
pub flags: u32,
pub pos: lfs_off_t,
pub block: lfs_block_t,
pub off: lfs_off_t,
pub cache: lfs_cache_t,
pub cfg: *const lfs_file_config,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_file_lfs_ctz {
pub head: lfs_block_t,
pub size: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_file_lfs_ctz() {
assert_eq!(
::core::mem::size_of::<lfs_file_lfs_ctz>(),
8usize,
concat!("Size of: ", stringify!(lfs_file_lfs_ctz))
);
assert_eq!(
::core::mem::align_of::<lfs_file_lfs_ctz>(),
4usize,
concat!("Alignment of ", stringify!(lfs_file_lfs_ctz))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file_lfs_ctz>())).head as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_file_lfs_ctz),
"::",
stringify!(head)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file_lfs_ctz>())).size as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(lfs_file_lfs_ctz),
"::",
stringify!(size)
)
);
}
#[test]
fn bindgen_test_layout_lfs_file() {
assert_eq!(
::core::mem::size_of::<lfs_file>(),
104usize,
concat!("Size of: ", stringify!(lfs_file))
);
assert_eq!(
::core::mem::align_of::<lfs_file>(),
8usize,
concat!("Alignment of ", stringify!(lfs_file))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).next as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).id as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).type_ as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).m as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(m)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).ctz as *const _ as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(ctz)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).flags as *const _ as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).pos as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(pos)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).block as *const _ as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(block)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).off as *const _ as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(off)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).cache as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(cache)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_file>())).cfg as *const _ as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(lfs_file),
"::",
stringify!(cfg)
)
);
}
pub type lfs_file_t = lfs_file;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_superblock {
pub version: u32,
pub block_size: lfs_size_t,
pub block_count: lfs_size_t,
pub name_max: lfs_size_t,
pub file_max: lfs_size_t,
pub attr_max: lfs_size_t,
}
#[test]
fn bindgen_test_layout_lfs_superblock() {
assert_eq!(
::core::mem::size_of::<lfs_superblock>(),
24usize,
concat!("Size of: ", stringify!(lfs_superblock))
);
assert_eq!(
::core::mem::align_of::<lfs_superblock>(),
4usize,
concat!("Alignment of ", stringify!(lfs_superblock))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_superblock>())).version as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_superblock),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_superblock>())).block_size as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(lfs_superblock),
"::",
stringify!(block_size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_superblock>())).block_count as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_superblock),
"::",
stringify!(block_count)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_superblock>())).name_max as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lfs_superblock),
"::",
stringify!(name_max)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_superblock>())).file_max as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lfs_superblock),
"::",
stringify!(file_max)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_superblock>())).attr_max as *const _ as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(lfs_superblock),
"::",
stringify!(attr_max)
)
);
}
pub type lfs_superblock_t = lfs_superblock;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_gstate {
pub tag: u32,
pub pair: [lfs_block_t; 2usize],
}
#[test]
fn bindgen_test_layout_lfs_gstate() {
assert_eq!(
::core::mem::size_of::<lfs_gstate>(),
12usize,
concat!("Size of: ", stringify!(lfs_gstate))
);
assert_eq!(
::core::mem::align_of::<lfs_gstate>(),
4usize,
concat!("Alignment of ", stringify!(lfs_gstate))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_gstate>())).tag as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_gstate),
"::",
stringify!(tag)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_gstate>())).pair as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(lfs_gstate),
"::",
stringify!(pair)
)
);
}
pub type lfs_gstate_t = lfs_gstate;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs {
pub rcache: lfs_cache_t,
pub pcache: lfs_cache_t,
pub root: [lfs_block_t; 2usize],
pub mlist: *mut lfs_lfs_mlist,
pub seed: u32,
pub gstate: lfs_gstate_t,
pub gdisk: lfs_gstate_t,
pub gdelta: lfs_gstate_t,
pub free: lfs_lfs_free,
pub cfg: *const lfs_config,
pub name_max: lfs_size_t,
pub file_max: lfs_size_t,
pub attr_max: lfs_size_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_lfs_mlist {
pub next: *mut lfs_lfs_mlist,
pub id: u16,
pub type_: u8,
pub m: lfs_mdir_t,
}
#[test]
fn bindgen_test_layout_lfs_lfs_mlist() {
assert_eq!(
::core::mem::size_of::<lfs_lfs_mlist>(),
48usize,
concat!("Size of: ", stringify!(lfs_lfs_mlist))
);
assert_eq!(
::core::mem::align_of::<lfs_lfs_mlist>(),
8usize,
concat!("Alignment of ", stringify!(lfs_lfs_mlist))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_mlist>())).next as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_mlist),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_mlist>())).id as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_mlist),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_mlist>())).type_ as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_mlist),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_mlist>())).m as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_mlist),
"::",
stringify!(m)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lfs_lfs_free {
pub off: lfs_block_t,
pub size: lfs_block_t,
pub i: lfs_block_t,
pub ack: lfs_block_t,
pub buffer: *mut u32,
}
#[test]
fn bindgen_test_layout_lfs_lfs_free() {
assert_eq!(
::core::mem::size_of::<lfs_lfs_free>(),
24usize,
concat!("Size of: ", stringify!(lfs_lfs_free))
);
assert_eq!(
::core::mem::align_of::<lfs_lfs_free>(),
8usize,
concat!("Alignment of ", stringify!(lfs_lfs_free))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).off as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_free),
"::",
stringify!(off)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).size as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_free),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).i as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_free),
"::",
stringify!(i)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).ack as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_free),
"::",
stringify!(ack)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs_lfs_free>())).buffer as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lfs_lfs_free),
"::",
stringify!(buffer)
)
);
}
#[test]
fn bindgen_test_layout_lfs() {
assert_eq!(
::core::mem::size_of::<lfs>(),
152usize,
concat!("Size of: ", stringify!(lfs))
);
assert_eq!(
::core::mem::align_of::<lfs>(),
8usize,
concat!("Alignment of ", stringify!(lfs))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).rcache as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(rcache)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).pcache as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(pcache)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).root as *const _ as usize },
48usize,
concat!("Offset of field: ", stringify!(lfs), "::", stringify!(root))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).mlist as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(mlist)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).seed as *const _ as usize },
64usize,
concat!("Offset of field: ", stringify!(lfs), "::", stringify!(seed))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).gstate as *const _ as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(gstate)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).gdisk as *const _ as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(gdisk)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).gdelta as *const _ as usize },
92usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(gdelta)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).free as *const _ as usize },
104usize,
concat!("Offset of field: ", stringify!(lfs), "::", stringify!(free))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).cfg as *const _ as usize },
128usize,
concat!("Offset of field: ", stringify!(lfs), "::", stringify!(cfg))
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).name_max as *const _ as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(name_max)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).file_max as *const _ as usize },
140usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(file_max)
)
);
assert_eq!(
unsafe { &(*(::core::ptr::null::<lfs>())).attr_max as *const _ as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(lfs),
"::",
stringify!(attr_max)
)
);
}
pub type lfs_t = lfs;
extern "C" {
#[doc = " Filesystem functions ///"]
pub fn lfs_format(lfs: *mut lfs_t, config: *const lfs_config) -> cty::c_int;
}
extern "C" {
pub fn lfs_mount(lfs: *mut lfs_t, config: *const lfs_config) -> cty::c_int;
}
extern "C" {
pub fn lfs_unmount(lfs: *mut lfs_t) -> cty::c_int;
}
extern "C" {
#[doc = " General operations ///"]
pub fn lfs_remove(lfs: *mut lfs_t, path: *const cty::c_char) -> cty::c_int;
}
extern "C" {
pub fn lfs_rename(
lfs: *mut lfs_t,
oldpath: *const cty::c_char,
newpath: *const cty::c_char,
) -> cty::c_int;
}
extern "C" {
pub fn lfs_stat(lfs: *mut lfs_t, path: *const cty::c_char, info: *mut lfs_info) -> cty::c_int;
}
extern "C" {
pub fn lfs_getattr(
lfs: *mut lfs_t,
path: *const cty::c_char,
type_: u8,
buffer: *mut cty::c_void,
size: lfs_size_t,
) -> lfs_ssize_t;
}
extern "C" {
pub fn lfs_setattr(
lfs: *mut lfs_t,
path: *const cty::c_char,
type_: u8,
buffer: *const cty::c_void,
size: lfs_size_t,
) -> cty::c_int;
}
extern "C" {
pub fn lfs_removeattr(lfs: *mut lfs_t, path: *const cty::c_char, type_: u8) -> cty::c_int;
}
extern "C" {
#[doc = " File operations ///"]
pub fn lfs_file_open(
lfs: *mut lfs_t,
file: *mut lfs_file_t,
path: *const cty::c_char,
flags: cty::c_int,
) -> cty::c_int;
}
extern "C" {
pub fn lfs_file_opencfg(
lfs: *mut lfs_t,
file: *mut lfs_file_t,
path: *const cty::c_char,
flags: cty::c_int,
config: *const lfs_file_config,
) -> cty::c_int;
}
extern "C" {
pub fn lfs_file_close(lfs: *mut lfs_t, file: *mut lfs_file_t) -> cty::c_int;
}
extern "C" {
pub fn lfs_file_sync(lfs: *mut lfs_t, file: *mut lfs_file_t) -> cty::c_int;
}
extern "C" {
pub fn lfs_file_read(
lfs: *mut lfs_t,
file: *mut lfs_file_t,
buffer: *mut cty::c_void,
size: lfs_size_t,
) -> lfs_ssize_t;
}
extern "C" {
pub fn lfs_file_write(
lfs: *mut lfs_t,
file: *mut lfs_file_t,
buffer: *const cty::c_void,
size: lfs_size_t,
) -> lfs_ssize_t;
}
extern "C" {
pub fn lfs_file_seek(
lfs: *mut lfs_t,
file: *mut lfs_file_t,
off: lfs_soff_t,
whence: cty::c_int,
) -> lfs_soff_t;
}
extern "C" {
pub fn lfs_file_truncate(lfs: *mut lfs_t, file: *mut lfs_file_t, size: lfs_off_t)
-> cty::c_int;
}
extern "C" {
pub fn lfs_file_tell(lfs: *mut lfs_t, file: *mut lfs_file_t) -> lfs_soff_t;
}
extern "C" {
pub fn lfs_file_rewind(lfs: *mut lfs_t, file: *mut lfs_file_t) -> cty::c_int;
}
extern "C" {
pub fn lfs_file_size(lfs: *mut lfs_t, file: *mut lfs_file_t) -> lfs_soff_t;
}
extern "C" {
#[doc = " Directory operations ///"]
pub fn lfs_mkdir(lfs: *mut lfs_t, path: *const cty::c_char) -> cty::c_int;
}
extern "C" {
pub fn lfs_dir_open(
lfs: *mut lfs_t,
dir: *mut lfs_dir_t,
path: *const cty::c_char,
) -> cty::c_int;
}
extern "C" {
pub fn lfs_dir_close(lfs: *mut lfs_t, dir: *mut lfs_dir_t) -> cty::c_int;
}
extern "C" {
pub fn lfs_dir_read(lfs: *mut lfs_t, dir: *mut lfs_dir_t, info: *mut lfs_info) -> cty::c_int;
}
extern "C" {
pub fn lfs_dir_seek(lfs: *mut lfs_t, dir: *mut lfs_dir_t, off: lfs_off_t) -> cty::c_int;
}
extern "C" {
pub fn lfs_dir_tell(lfs: *mut lfs_t, dir: *mut lfs_dir_t) -> lfs_soff_t;
}
extern "C" {
pub fn lfs_dir_rewind(lfs: *mut lfs_t, dir: *mut lfs_dir_t) -> cty::c_int;
}
extern "C" {
#[doc = " Filesystem-level filesystem operations"]
pub fn lfs_fs_size(lfs: *mut lfs_t) -> lfs_ssize_t;
}
extern "C" {
pub fn lfs_fs_traverse(
lfs: *mut lfs_t,
cb: ::core::option::Option<
unsafe extern "C" fn(arg1: *mut cty::c_void, arg2: lfs_block_t) -> cty::c_int,
>,
data: *mut cty::c_void,
) -> cty::c_int;
}