Sha256: 07b19390b9ae8f541ac35fd4e14685d639b95152d6d7a33814bb749b8b927298

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

use crate::prelude::*;

/* DIFF(main): module removed in de76fee6 */

// DragonFlyBSD's __error function is declared with "static inline", so it must
// be implemented in the libc crate, as a pointer to a static thread_local.
f! {
    #[deprecated(since = "0.2.77", note = "Use `__errno_location()` instead")]
    pub fn __error() -> *mut c_int {
        &mut errno
    }
}

extern "C" {
    #[thread_local]
    pub static mut errno: c_int;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/libc-0.2.169/src/unix/bsd/freebsdlike/dragonfly/errno.rs
wasmtime-28.0.0 ./ext/cargo-vendor/libc-0.2.169/src/unix/bsd/freebsdlike/dragonfly/errno.rs