s! {
pub struct lconv {
pub decimal_point: *mut ::c_char,
pub thousands_sep: *mut ::c_char,
pub grouping: *mut ::c_char,
pub int_curr_symbol: *mut ::c_char,
pub currency_symbol: *mut ::c_char,
pub mon_decimal_point: *mut ::c_char,
pub mon_thousands_sep: *mut ::c_char,
pub mon_grouping: *mut ::c_char,
pub positive_sign: *mut ::c_char,
pub negative_sign: *mut ::c_char,
pub int_frac_digits: ::c_char,
pub frac_digits: ::c_char,
pub p_cs_precedes: ::c_char,
pub p_sep_by_space: ::c_char,
pub n_cs_precedes: ::c_char,
pub n_sep_by_space: ::c_char,
pub p_sign_posn: ::c_char,
pub n_sign_posn: ::c_char,
pub int_p_cs_precedes: ::c_char,
pub int_p_sep_by_space: ::c_char,
pub int_n_cs_precedes: ::c_char,
pub int_n_sep_by_space: ::c_char,
pub int_p_sign_posn: ::c_char,
pub int_n_sign_posn: ::c_char,
}
pub struct statfs {
pub f_flags: ::uint32_t,
pub f_bsize: ::uint32_t,
pub f_iosize: ::uint32_t,
pub f_blocks: ::uint64_t,
pub f_bfree: ::uint64_t,
pub f_bavail: ::int64_t,
pub f_files: ::uint64_t,
pub f_ffree: ::uint64_t,
pub f_favail: ::int64_t,
pub f_syncwrites: ::uint64_t,
pub f_syncreads: ::uint64_t,
pub f_asyncwrites: ::uint64_t,
pub f_asyncreads: ::uint64_t,
pub f_fsid: ::fsid_t,
pub f_namemax: ::uint32_t,
pub f_owner: ::uid_t,
pub f_ctime: ::uint64_t,
pub f_fstypename: [::c_char; 16],
pub f_mntonname: [::c_char; 90],
pub f_mntfromname: [::c_char; 90],
pub f_mntfromspec: [::c_char; 90],
pub mount_info: mount_info,
}
pub union mount_info {
pub ufs_args: ufs_args,
pub mfs_args: mfs_args,
pub nfs_args: nfs_args,
pub iso_args: iso_args,
pub msdosfs_args: msdosfs_args,
pub ntfs_args: ntfs_args,
pub tmpfs_args: tmpfs_args,
align: [::c_char; 160],
}
pub struct ufs_args {
pub fspec: *mut ::c_char,
pub export_info: export_args,
}
pub struct mfs_args {
pub fspec: *mut ::c_char,
pub export_info: export_args,
pub base: *mut ::c_char,
pub size: ::c_ulong,
}
pub struct iso_args {
pub fspec: *mut ::c_char,
pub export_info: export_args,
pub flags: ::c_int,
pub sess: ::c_int,
}
pub struct nfs_args {
pub version: ::c_int,
pub addr: *mut ::sockaddr,
pub addrlen: ::c_int,
pub sotype: ::c_int,
pub proto: ::c_int,
pub fh: *mut ::c_uchar,
pub fhsize: ::c_int,
pub flags: ::c_int,
pub wsize: ::c_int,
pub rsize: ::c_int,
pub readdirsize: ::c_int,
pub timeo: ::c_int,
pub retrans: ::c_int,
pub maxgrouplist: ::c_int,
pub readahead: ::c_int,
pub leaseterm: ::c_int,
pub deadthresh: ::c_int,
pub hostname: *mut ::c_char,
pub acregmin: ::c_int,
pub acregmax: ::c_int,
pub acdirmin: ::c_int,
pub acdirmax: ::c_int,
}
pub struct msdosfs_args {
pub fspec: *mut ::c_char,
pub export_info: export_args,
pub uid: ::uid_t,
pub gid: ::gid_t,
pub mask: ::mode_t,
pub flags: ::c_int,
}
pub struct ntfs_args {
pub fspec: *mut ::c_char,
pub export_info: export_args,
pub uid: ::uid_t,
pub gid: ::gid_t,
pub mode: ::mode_t,
pub flag: ::c_ulong,
}
pub struct udf_args {
pub fspec: *mut ::c_char,
pub lastblock: ::uint32_t,
}
pub struct tmpfs_args {
pub ta_version: ::c_int,
pub ta_nodes_max: ::ino_t,
pub ta_size_max: ::off_t,
pub ta_root_uid: ::uid_t,
pub ta_root_gid: ::gid_t,
pub ta_root_mode: ::mode_t,
}
pub struct fusefs_args {
pub name: *mut ::c_char,
pub fd: ::c_int,
pub max_read: ::c_int,
pub allow_other: ::c_int,
}
pub struct xucred {
pub cr_uid: ::uid_t,
pub cr_gid: ::gid_t,
pub cr_ngroups: ::c_short,
pub cr_groups: [::gid_t; 16],
}
pub struct export_args {
pub ex_flags: ::c_int,
pub ex_root: ::uid_t,
pub ex_anon: xucred,
pub ex_addr: *mut ::sockaddr,
pub ex_addrlen: ::c_int,
pub ex_mask: *mut ::sockaddr,
pub ex_masklen: ::c_int,
}
}
pub const ISOFSMNT_NORRIP: ::c_int = 0x1; pub const ISOFSMNT_GENS: ::c_int = 0x2; pub const ISOFSMNT_EXTATT: ::c_int = 0x4; pub const ISOFSMNT_NOJOLIET: ::c_int = 0x8; pub const ISOFSMNT_SESS: ::c_int = 0x10;
pub const NFS_ARGSVERSION: ::c_int = 4;
pub const NFSMNT_RESVPORT: ::c_int = 0; pub const NFSMNT_SOFT: ::c_int = 0x1; pub const NFSMNT_WSIZE: ::c_int = 0x2; pub const NFSMNT_RSIZE: ::c_int = 0x4; pub const NFSMNT_TIMEO: ::c_int = 0x8; pub const NFSMNT_RETRANS: ::c_int = 0x10; pub const NFSMNT_MAXGRPS: ::c_int = 0x20; pub const NFSMNT_INT: ::c_int = 0x40; pub const NFSMNT_NOCONN: ::c_int = 0x80; pub const NFSMNT_NQNFS: ::c_int = 0x100; pub const NFSMNT_NFSV3: ::c_int = 0x200; pub const NFSMNT_KERB: ::c_int = 0x400; pub const NFSMNT_DUMBTIMR: ::c_int = 0x800; pub const NFSMNT_LEASETERM: ::c_int = 0x1000; pub const NFSMNT_READAHEAD: ::c_int = 0x2000; pub const NFSMNT_DEADTHRESH: ::c_int = 0x4000; pub const NFSMNT_NOAC: ::c_int = 0x8000; pub const NFSMNT_RDIRPLUS: ::c_int = 0x10000; pub const NFSMNT_READDIRSIZE: ::c_int = 0x20000;
pub const NFSMNT_ACREGMIN: ::c_int = 0x40000; pub const NFSMNT_ACREGMAX: ::c_int = 0x80000; pub const NFSMNT_ACDIRMIN: ::c_int = 0x100000; pub const NFSMNT_ACDIRMAX: ::c_int = 0x200000;
pub const NFSMNT_INTERNAL: ::c_int = 0xfffc0000; pub const NFSMNT_HASWRITEVERF: ::c_int = 0x40000; pub const NFSMNT_GOTPATHCONF: ::c_int = 0x80000; pub const NFSMNT_GOTFSINFO: ::c_int = 0x100000; pub const NFSMNT_MNTD: ::c_int = 0x200000; pub const NFSMNT_DISMINPROG: ::c_int = 0x400000; pub const NFSMNT_DISMNT: ::c_int = 0x800000; pub const NFSMNT_SNDLOCK: ::c_int = 0x1000000; pub const NFSMNT_WANTSND: ::c_int = 0x2000000; pub const NFSMNT_RCVLOCK: ::c_int = 0x4000000; pub const NFSMNT_WANTRCV: ::c_int = 0x8000000; pub const NFSMNT_WAITAUTH: ::c_int = 0x10000000; pub const NFSMNT_HASAUTH: ::c_int = 0x20000000; pub const NFSMNT_WANTAUTH: ::c_int = 0x40000000; pub const NFSMNT_AUTHERR: ::c_int = 0x80000000;
pub const MSDOSFSMNT_SHORTNAME: ::c_int = 0x1; pub const MSDOSFSMNT_LONGNAME: ::c_int = 0x2; pub const MSDOSFSMNT_NOWIN95: ::c_int = 0x4;
pub const NTFS_MFLAG_CASEINS: ::c_int = 0x1;
pub const NTFS_MFLAG_ALLNAMES: ::c_int = 0x2;
pub const TMPFS_ARGS_VERSION: ::c_int = 1;
pub const MAP_STACK : ::c_int = 0x4000;
pub const IFF_UP: ::c_int = 0x1; pub const IFF_BROADCAST: ::c_int = 0x2; pub const IFF_DEBUG: ::c_int = 0x4; pub const IFF_LOOPBACK: ::c_int = 0x8; pub const IFF_POINTOPOINT: ::c_int = 0x10; pub const IFF_STATICARP: ::c_int = 0x20; pub const IFF_RUNNING: ::c_int = 0x40; pub const IFF_NOARP: ::c_int = 0x80; pub const IFF_PROMISC: ::c_int = 0x100; pub const IFF_ALLMULTI: ::c_int = 0x200; pub const IFF_OACTIVE: ::c_int = 0x400; pub const IFF_SIMPLEX: ::c_int = 0x800; pub const IFF_LINK0: ::c_int = 0x1000; pub const IFF_LINK1: ::c_int = 0x2000; pub const IFF_LINK2: ::c_int = 0x4000; pub const IFF_MULTICAST: ::c_int = 0x8000;
pub const SIGSTKSZ : ::size_t = 28672;
cfg_if! {
if #[cfg(target_arch = "x86")] {
mod x86;
pub use self::x86::*;
} else if #[cfg(target_arch = "x86_64")] {
mod x86_64;
pub use self::x86_64::*;
} else if #[cfg(target_arch = "aarch64")] {
mod aarch64;
pub use self::aarch64::*;
} else {
}
}