Skip to content

Instantly share code, notes, and snippets.

@fbernier
Last active August 29, 2015 14:12
Show Gist options
  • Save fbernier/50aa8f1bf02ac32e999f to your computer and use it in GitHub Desktop.
Save fbernier/50aa8f1bf02ac32e999f to your computer and use it in GitHub Desktop.
fitz.rs
/* automatically generated by rust-bindgen */
pub type size_t = ::libc::c_ulong;
pub type __u_char = ::libc::c_uchar;
pub type __u_short = ::libc::c_ushort;
pub type __u_int = ::libc::c_uint;
pub type __u_long = ::libc::c_ulong;
pub type __int8_t = ::libc::c_char;
pub type __uint8_t = ::libc::c_uchar;
pub type __int16_t = ::libc::c_short;
pub type __uint16_t = ::libc::c_ushort;
pub type __int32_t = ::libc::c_int;
pub type __uint32_t = ::libc::c_uint;
pub type __int64_t = ::libc::c_long;
pub type __uint64_t = ::libc::c_ulong;
pub type __quad_t = ::libc::c_long;
pub type __u_quad_t = ::libc::c_ulong;
pub type __dev_t = ::libc::c_ulong;
pub type __uid_t = ::libc::c_uint;
pub type __gid_t = ::libc::c_uint;
pub type __ino_t = ::libc::c_ulong;
pub type __ino64_t = ::libc::c_ulong;
pub type __mode_t = ::libc::c_uint;
pub type __nlink_t = ::libc::c_ulong;
pub type __off_t = ::libc::c_long;
pub type __off64_t = ::libc::c_long;
pub type __pid_t = ::libc::c_int;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed1 {
pub __val: [::libc::c_int; 2u],
}
impl ::std::default::Default for Struct_Unnamed1 {
fn default() -> Struct_Unnamed1 { unsafe { ::std::mem::zeroed() } }
}
pub type __fsid_t = Struct_Unnamed1;
pub type __clock_t = ::libc::c_long;
pub type __rlim_t = ::libc::c_ulong;
pub type __rlim64_t = ::libc::c_ulong;
pub type __id_t = ::libc::c_uint;
pub type __time_t = ::libc::c_long;
pub type __useconds_t = ::libc::c_uint;
pub type __suseconds_t = ::libc::c_long;
pub type __daddr_t = ::libc::c_int;
pub type __key_t = ::libc::c_int;
pub type __clockid_t = ::libc::c_int;
pub type __timer_t = *mut ::libc::c_void;
pub type __blksize_t = ::libc::c_long;
pub type __blkcnt_t = ::libc::c_long;
pub type __blkcnt64_t = ::libc::c_long;
pub type __fsblkcnt_t = ::libc::c_ulong;
pub type __fsblkcnt64_t = ::libc::c_ulong;
pub type __fsfilcnt_t = ::libc::c_ulong;
pub type __fsfilcnt64_t = ::libc::c_ulong;
pub type __fsword_t = ::libc::c_long;
pub type __ssize_t = ::libc::c_long;
pub type __syscall_slong_t = ::libc::c_long;
pub type __syscall_ulong_t = ::libc::c_ulong;
pub type __loff_t = __off64_t;
pub type __qaddr_t = *mut __quad_t;
pub type __caddr_t = *mut ::libc::c_char;
pub type __intptr_t = ::libc::c_long;
pub type __socklen_t = ::libc::c_uint;
pub type FILE = Struct__IO_FILE;
pub type __FILE = Struct__IO_FILE;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed2 {
pub __count: ::libc::c_int,
pub __value: Union_Unnamed3,
}
impl ::std::default::Default for Struct_Unnamed2 {
fn default() -> Struct_Unnamed2 { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed3 {
pub _bindgen_data_: [u32; 1u],
}
impl Union_Unnamed3 {
pub unsafe fn __wch(&mut self) -> *mut ::libc::c_uint {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __wchb(&mut self) -> *mut [::libc::c_char; 4u] {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_Unnamed3 {
fn default() -> Union_Unnamed3 { unsafe { ::std::mem::zeroed() } }
}
pub type __mbstate_t = Struct_Unnamed2;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed4 {
pub __pos: __off_t,
pub __state: __mbstate_t,
}
impl ::std::default::Default for Struct_Unnamed4 {
fn default() -> Struct_Unnamed4 { unsafe { ::std::mem::zeroed() } }
}
pub type _G_fpos_t = Struct_Unnamed4;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed5 {
pub __pos: __off64_t,
pub __state: __mbstate_t,
}
impl ::std::default::Default for Struct_Unnamed5 {
fn default() -> Struct_Unnamed5 { unsafe { ::std::mem::zeroed() } }
}
pub type _G_fpos64_t = Struct_Unnamed5;
pub type va_list = __gnuc_va_list;
pub type __gnuc_va_list = __builtin_va_list;
pub enum Struct__IO_jump_t { }
pub type _IO_lock_t = ::libc::c_void;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__IO_marker {
pub _next: *mut Struct__IO_marker,
pub _sbuf: *mut Struct__IO_FILE,
pub _pos: ::libc::c_int,
}
impl ::std::default::Default for Struct__IO_marker {
fn default() -> Struct__IO_marker { unsafe { ::std::mem::zeroed() } }
}
pub type Enum___codecvt_result = ::libc::c_uint;
pub const __codecvt_ok: ::libc::c_uint = 0;
pub const __codecvt_partial: ::libc::c_uint = 1;
pub const __codecvt_error: ::libc::c_uint = 2;
pub const __codecvt_noconv: ::libc::c_uint = 3;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__IO_FILE {
pub _flags: ::libc::c_int,
pub _IO_read_ptr: *mut ::libc::c_char,
pub _IO_read_end: *mut ::libc::c_char,
pub _IO_read_base: *mut ::libc::c_char,
pub _IO_write_base: *mut ::libc::c_char,
pub _IO_write_ptr: *mut ::libc::c_char,
pub _IO_write_end: *mut ::libc::c_char,
pub _IO_buf_base: *mut ::libc::c_char,
pub _IO_buf_end: *mut ::libc::c_char,
pub _IO_save_base: *mut ::libc::c_char,
pub _IO_backup_base: *mut ::libc::c_char,
pub _IO_save_end: *mut ::libc::c_char,
pub _markers: *mut Struct__IO_marker,
pub _chain: *mut Struct__IO_FILE,
pub _fileno: ::libc::c_int,
pub _flags2: ::libc::c_int,
pub _old_offset: __off_t,
pub _cur_column: ::libc::c_ushort,
pub _vtable_offset: ::libc::c_char,
pub _shortbuf: [::libc::c_char; 1u],
pub _lock: *mut _IO_lock_t,
pub _offset: __off64_t,
pub __pad1: *mut ::libc::c_void,
pub __pad2: *mut ::libc::c_void,
pub __pad3: *mut ::libc::c_void,
pub __pad4: *mut ::libc::c_void,
pub __pad5: size_t,
pub _mode: ::libc::c_int,
pub _unused2: [::libc::c_char; 20u],
}
impl ::std::default::Default for Struct__IO_FILE {
fn default() -> Struct__IO_FILE { unsafe { ::std::mem::zeroed() } }
}
pub type _IO_FILE = Struct__IO_FILE;
pub enum Struct__IO_FILE_plus { }
pub type __io_read_fn =
extern "C" fn
(__cookie: *mut ::libc::c_void, __buf: *mut ::libc::c_char,
__nbytes: size_t) -> __ssize_t;
pub type __io_write_fn =
extern "C" fn
(__cookie: *mut ::libc::c_void, __buf: *const ::libc::c_char,
__n: size_t) -> __ssize_t;
pub type __io_seek_fn =
extern "C" fn
(__cookie: *mut ::libc::c_void, __pos: *mut __off64_t,
__w: ::libc::c_int) -> ::libc::c_int;
pub type __io_close_fn =
extern "C" fn(__cookie: *mut ::libc::c_void) -> ::libc::c_int;
pub type off_t = __off_t;
pub type ssize_t = __ssize_t;
pub type fpos_t = _G_fpos_t;
pub type wchar_t = ::libc::c_int;
pub type Enum_Unnamed6 = ::libc::c_uint;
pub const P_ALL: ::libc::c_uint = 0;
pub const P_PID: ::libc::c_uint = 1;
pub const P_PGID: ::libc::c_uint = 2;
pub type idtype_t = Enum_Unnamed6;
#[repr(C)]
#[derive(Copy)]
pub struct Union_wait {
pub _bindgen_data_: [u32; 1u],
}
impl Union_wait {
pub unsafe fn w_status(&mut self) -> *mut ::libc::c_int {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __wait_terminated(&mut self) -> *mut Struct_Unnamed7 {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __wait_stopped(&mut self) -> *mut Struct_Unnamed8 {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_wait {
fn default() -> Union_wait { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed7 {
pub _bindgen_bitfield_1_: ::libc::c_uint,
}
impl ::std::default::Default for Struct_Unnamed7 {
fn default() -> Struct_Unnamed7 { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed8 {
pub _bindgen_bitfield_1_: ::libc::c_uint,
}
impl ::std::default::Default for Struct_Unnamed8 {
fn default() -> Struct_Unnamed8 { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed9 {
pub _bindgen_data_: [u64; 1u],
}
impl Union_Unnamed9 {
pub unsafe fn __uptr(&mut self) -> *mut *mut Union_wait {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __iptr(&mut self) -> *mut *mut ::libc::c_int {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_Unnamed9 {
fn default() -> Union_Unnamed9 { unsafe { ::std::mem::zeroed() } }
}
pub type __WAIT_STATUS = Union_Unnamed9;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed10 {
pub quot: ::libc::c_int,
pub rem: ::libc::c_int,
}
impl ::std::default::Default for Struct_Unnamed10 {
fn default() -> Struct_Unnamed10 { unsafe { ::std::mem::zeroed() } }
}
pub type div_t = Struct_Unnamed10;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed11 {
pub quot: ::libc::c_long,
pub rem: ::libc::c_long,
}
impl ::std::default::Default for Struct_Unnamed11 {
fn default() -> Struct_Unnamed11 { unsafe { ::std::mem::zeroed() } }
}
pub type ldiv_t = Struct_Unnamed11;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed12 {
pub quot: ::libc::c_longlong,
pub rem: ::libc::c_longlong,
}
impl ::std::default::Default for Struct_Unnamed12 {
fn default() -> Struct_Unnamed12 { unsafe { ::std::mem::zeroed() } }
}
pub type lldiv_t = Struct_Unnamed12;
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type pid_t = __pid_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type clock_t = __clock_t;
pub type time_t = __time_t;
pub type clockid_t = __clockid_t;
pub type timer_t = __timer_t;
pub type ulong = ::libc::c_ulong;
pub type ushort = ::libc::c_ushort;
pub type _uint = ::libc::c_uint;
pub type int8_t = ::libc::c_char;
pub type int16_t = ::libc::c_short;
pub type int32_t = ::libc::c_int;
pub type int64_t = ::libc::c_long;
pub type u_int8_t = ::libc::c_uchar;
pub type u_int16_t = ::libc::c_ushort;
pub type u_int32_t = ::libc::c_uint;
pub type u_int64_t = ::libc::c_ulong;
pub type register_t = ::libc::c_long;
pub type __sig_atomic_t = ::libc::c_int;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed13 {
pub __val: [::libc::c_ulong; 16u],
}
impl ::std::default::Default for Struct_Unnamed13 {
fn default() -> Struct_Unnamed13 { unsafe { ::std::mem::zeroed() } }
}
pub type __sigset_t = Struct_Unnamed13;
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_timespec {
pub tv_sec: __time_t,
pub tv_nsec: __syscall_slong_t,
}
impl ::std::default::Default for Struct_timespec {
fn default() -> Struct_timespec { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_timeval {
pub tv_sec: __time_t,
pub tv_usec: __suseconds_t,
}
impl ::std::default::Default for Struct_timeval {
fn default() -> Struct_timeval { unsafe { ::std::mem::zeroed() } }
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = ::libc::c_long;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed14 {
pub __fds_bits: [__fd_mask; 16u],
}
impl ::std::default::Default for Struct_Unnamed14 {
fn default() -> Struct_Unnamed14 { unsafe { ::std::mem::zeroed() } }
}
pub type fd_set = Struct_Unnamed14;
pub type fd_mask = __fd_mask;
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
pub type pthread_t = ::libc::c_ulong;
#[repr(C)]
#[derive(Copy)]
pub struct Union_pthread_attr_t {
pub _bindgen_data_: [u64; 7u],
}
impl Union_pthread_attr_t {
pub unsafe fn __size(&mut self) -> *mut [::libc::c_char; 56u] {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __align(&mut self) -> *mut ::libc::c_long {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_pthread_attr_t {
fn default() -> Union_pthread_attr_t { unsafe { ::std::mem::zeroed() } }
}
pub type pthread_attr_t = Union_pthread_attr_t;
#[repr(C)]
#[derive(Copy)]
pub struct Struct___pthread_internal_list {
pub __prev: *mut Struct___pthread_internal_list,
pub __next: *mut Struct___pthread_internal_list,
}
impl ::std::default::Default for Struct___pthread_internal_list {
fn default() -> Struct___pthread_internal_list {
unsafe { ::std::mem::zeroed() }
}
}
pub type __pthread_list_t = Struct___pthread_internal_list;
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed15 {
pub _bindgen_data_: [u64; 5u],
}
impl Union_Unnamed15 {
pub unsafe fn __data(&mut self) -> *mut Struct___pthread_mutex_s {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __size(&mut self) -> *mut [::libc::c_char; 40u] {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __align(&mut self) -> *mut ::libc::c_long {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_Unnamed15 {
fn default() -> Union_Unnamed15 { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct___pthread_mutex_s {
pub __lock: ::libc::c_int,
pub __count: ::libc::c_uint,
pub __owner: ::libc::c_int,
pub __nusers: ::libc::c_uint,
pub __kind: ::libc::c_int,
pub __spins: ::libc::c_short,
pub __elision: ::libc::c_short,
pub __list: __pthread_list_t,
}
impl ::std::default::Default for Struct___pthread_mutex_s {
fn default() -> Struct___pthread_mutex_s {
unsafe { ::std::mem::zeroed() }
}
}
pub type pthread_mutex_t = Union_Unnamed15;
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed16 {
pub _bindgen_data_: [u32; 1u],
}
impl Union_Unnamed16 {
pub unsafe fn __size(&mut self) -> *mut [::libc::c_char; 4u] {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __align(&mut self) -> *mut ::libc::c_int {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_Unnamed16 {
fn default() -> Union_Unnamed16 { unsafe { ::std::mem::zeroed() } }
}
pub type pthread_mutexattr_t = Union_Unnamed16;
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed17 {
pub _bindgen_data_: [u64; 6u],
}
impl Union_Unnamed17 {
pub unsafe fn __data(&mut self) -> *mut Struct_Unnamed18 {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __size(&mut self) -> *mut [::libc::c_char; 48u] {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __align(&mut self) -> *mut ::libc::c_longlong {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_Unnamed17 {
fn default() -> Union_Unnamed17 { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed18 {
pub __lock: ::libc::c_int,
pub __futex: ::libc::c_uint,
pub __total_seq: ::libc::c_ulonglong,
pub __wakeup_seq: ::libc::c_ulonglong,
pub __woken_seq: ::libc::c_ulonglong,
pub __mutex: *mut ::libc::c_void,
pub __nwaiters: ::libc::c_uint,
pub __broadcast_seq: ::libc::c_uint,
}
impl ::std::default::Default for Struct_Unnamed18 {
fn default() -> Struct_Unnamed18 { unsafe { ::std::mem::zeroed() } }
}
pub type pthread_cond_t = Union_Unnamed17;
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed19 {
pub _bindgen_data_: [u32; 1u],
}
impl Union_Unnamed19 {
pub unsafe fn __size(&mut self) -> *mut [::libc::c_char; 4u] {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __align(&mut self) -> *mut ::libc::c_int {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_Unnamed19 {
fn default() -> Union_Unnamed19 { unsafe { ::std::mem::zeroed() } }
}
pub type pthread_condattr_t = Union_Unnamed19;
pub type pthread_key_t = ::libc::c_uint;
pub type pthread_once_t = ::libc::c_int;
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed20 {
pub _bindgen_data_: [u64; 7u],
}
impl Union_Unnamed20 {
pub unsafe fn __data(&mut self) -> *mut Struct_Unnamed21 {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __size(&mut self) -> *mut [::libc::c_char; 56u] {
::std::mem::transmute(&self._bindgen_data_)
}
pub unsafe fn __align(&mut self) -> *mut ::libc::c_long {
::std::mem::transmute(&self._bindgen_data_)
}
}
impl ::std::default::Default for Union_Unnamed20 {
fn default() -> Union_Unnamed20 { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed21 {
pub __lock: ::libc::c_int,
pub __nr_readers: ::libc::c_uint,
pub __readers_wakeup: ::libc::c_uint,
pub __writer_wakeup: ::libc::c_uint,
pub __nr_readers_queued: ::libc::c_uint,
pub __nr_writers_queued: ::libc::c_uint,
pub __writer: ::libc::c_int,
pub __shared: ::libc::c_int,
pub __pad1: ::libc::c_ulong,
pub __pad2: ::libc::c_ulong,
pub __flags: ::libc::c_uint,
}
impl ::std::default::Default for Struct_Unnamed21 {
fn default() -> Struct_Unnamed21 { unsafe { ::std::mem::zeroed() } }
}
pub type pthread_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment