pub type ino_t = usize;
pub type mode_t = u32;
pub type pid_t = i32;
pub type ipc_pid_t = i32;
pub type uid_t = u32;
pub type gid_t = u32;
pub type suseconds_t = isize;
pub type daddr_t = i32;
pub type uid32_t = u32;
pub type gid32_t = u32;
pub type size_t = usize;
pub type ssize_t = isize;
pub type ptrdiff_t = isize;
#[repr(C)]
#[derive(Debug, Default, Clone, Copy)]
pub struct fsid_t {
pub val: [i32; 2],
}
pub type off_t = isize;
pub type loff_t = i64;
pub type time_t = isize;
pub type clock_t = isize;
pub type timer_t = i32;
pub type clockid_t = i32;
pub type uid16_t = u16;
pub type gid16_t = u16;
pub const FD_SETSIZE: usize = 1024;
#[repr(C)]
#[derive(Default, Debug, Clone, Copy)]
pub struct fd_set_t {
#[cfg(target_pointer_width = "64")]
pub fds_bits: [usize; FD_SETSIZE / (8 * 64)],
#[cfg(target_pointer_width = "32")]
pub fds_bits: [usize; FD_SETSIZE / (8 * 32)],
}
pub type key_t = i32;
pub type mqd_t = i32;
pub type be16_t = u16;
pub type le16_t = u16;
pub type be32_t = u32;
pub type le32_t = u32;
pub type be64_t = u64;
pub type le64_t = u64;
pub type poll_t = u32;
pub type dev_t = u32;
pub type umode_t = u16;
pub type nlink_t = u32;
pub type sector_t = u64;
pub type blkcnt_t = u64;
pub type pgoff_t = usize;
pub type gfp_t = u32;
pub type slab_flags_t = u32;
pub type fmode_t = u32;
#[repr(C)]
#[derive(Default, Debug, Clone)]
pub struct ustat_t {
pub f_tfree: usize,
pub f_tinode: ino_t,
pub f_fname: [u8; 6],
pub f_fpack: [u8; 6],
}
pub type uintptr_t = usize;
pub type intptr_t = usize;
pub type regoff_t = usize;
pub type register_t = usize;
pub type blksize_t = isize;
pub type fsblkcnt_t = u64;
pub type fsfilcnt_t = u64;
pub type wint_t = i32;
pub type wctype_t = usize;
pub type useconds_t = u32;
pub type pthread_once_t = i32;
pub type pthread_key_t = i32;
pub type pthread_spinlock_t = i32;
#[repr(C)]
#[derive(Default, Debug, Clone, Copy)]
pub struct pthread_mutexattr_t {
pub attr: u32,
}
#[repr(C)]
#[derive(Default, Debug, Clone, Copy)]
pub struct pthread_condattr_t {
pub attr: u32,
}
#[repr(C)]
#[derive(Default, Debug, Clone, Copy)]
pub struct pthread_barrierattr_t {
pub attr: i32,
}
#[repr(C)]
#[derive(Default, Debug, Clone, Copy)]
pub struct pthread_rwlockattr_t {
pub attr: [u32; 2],
}
#[repr(C)]
#[derive(Default, Debug, Clone, Copy)]
pub struct io_file_t {
pub x: u8,
}
pub type file_t = io_file_t;
pub type socklen_t = u32;
pub type ino64_t = u64;