Sha256: d3bfce41e4463d4be8020a2d063c9bfa8b665f45f1cc6cbf3163f5d01e7cb21f

Contents?: true

Size: 1.58 KB

Versions: 15

Compression:

Stored size: 1.58 KB

Contents

// libc port for HermitCore (https://hermitcore.org)
//
// Ported by Colin Fink <colin.finck@rwth-aachen.de>
//       and Stefan Lankes <slankes@eonerc.rwth-aachen.de>

pub type c_schar = i8;
pub type c_uchar = u8;
pub type c_short = i16;
pub type c_ushort = u16;
pub type c_int = i32;
pub type c_uint = u32;
pub type c_float = f32;
pub type c_double = f64;
pub type c_longlong = i64;
pub type c_ulonglong = u64;
pub type intmax_t = i64;
pub type uintmax_t = u64;

pub type size_t = usize;
pub type ptrdiff_t = isize;
pub type intptr_t = isize;
pub type uintptr_t = usize;
pub type ssize_t = isize;

pub type c_long = i64;
pub type c_ulong = u64;

pub type wint_t = u32;
pub type wctype_t = i64;

pub type regoff_t = size_t;
pub type off_t = c_long;

cfg_if! {
    if #[cfg(target_arch = "aarch64")] {
        mod aarch64;
        pub use self::aarch64::*;
    } else if #[cfg(target_arch = "x86_64")] {
        mod x86_64;
        pub use self::x86_64::*;
    } else {
        // Unknown target_arch
    }
}

cfg_if! {
    if #[cfg(libc_core_cvoid)] {
        pub use ::ffi::c_void;
    } else {
        // Use repr(u8) as LLVM expects `void*` to be the same as `i8*` to help
        // enable more optimization opportunities around it recognizing things
        // like malloc/free.
        #[repr(u8)]
        #[allow(missing_copy_implementations)]
        #[allow(missing_debug_implementations)]
        pub enum c_void {
            // Two dummy variants so the #[repr] attribute can be used.
            #[doc(hidden)]
            __variant1,
            #[doc(hidden)]
            __variant2,
        }
    }
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wasmtime-13.0.0 ./ext/cargo-vendor/libc-0.2.147/src/hermit/mod.rs
wasmtime-12.0.1 ./ext/cargo-vendor/libc-0.2.147/src/hermit/mod.rs
wasmtime-12.0.0 ./ext/cargo-vendor/libc-0.2.147/src/hermit/mod.rs
wasmtime-11.0.0 ./ext/cargo-vendor/libc-0.2.147/src/hermit/mod.rs
wasmtime-10.0.1 ./ext/cargo-vendor/libc-0.2.147/src/hermit/mod.rs
wasmtime-10.0.0 ./ext/cargo-vendor/libc-0.2.147/src/hermit/mod.rs
wasmtime-9.0.4 ./ext/cargo-vendor/libc-0.2.147/src/hermit/mod.rs
wasmtime-9.0.1 ./ext/cargo-vendor/libc-0.2.144/src/hermit/mod.rs
wasmtime-8.0.0 ./ext/cargo-vendor/libc-0.2.142/src/hermit/mod.rs
wasmtime-7.0.0 ./ext/cargo-vendor/libc-0.2.140/src/hermit/mod.rs
wasmtime-6.0.1 ./ext/cargo-vendor/libc-0.2.139/src/hermit/mod.rs
wasmtime-6.0.0 ./ext/cargo-vendor/libc-0.2.139/src/hermit/mod.rs
wasmtime-5.0.0 ./ext/cargo-vendor/libc-0.2.139/src/hermit/mod.rs
wasmtime-0.4.1 ./ext/cargo-vendor/libc-0.2.138/src/hermit/mod.rs
wasmtime-0.4.0 ./ext/cargo-vendor/libc-0.2.138/src/hermit/mod.rs