Sha256: 6ec0eb3ee93f7ae99fd714b4deabfb5e97fbcefd8c26f5a45fb8e7150899cdeb

Contents?: true

Size: 1.76 KB

Versions: 36

Compression:

Stored size: 1.76 KB

Contents

s_no_extra_traits! {
    #[allow(missing_debug_implementations)]
    #[repr(align(8))]
    pub struct max_align_t {
        priv_: [i64; 2]
    }

    #[allow(missing_debug_implementations)]
    #[repr(align(8))]
    pub struct ucontext_t {
        pub uc_flags: ::c_ulong,
        pub uc_link: *mut ucontext_t,
        pub uc_stack: ::stack_t,
        pub uc_mcontext: ::mcontext_t,
        pub uc_sigmask: ::sigset_t,
        pub uc_regspace: [::c_ulong; 128],
    }
}

cfg_if! {
    if #[cfg(feature = "extra_traits")] {
        impl PartialEq for ucontext_t {
            fn eq(&self, other: &ucontext_t) -> bool {
                self.uc_flags == other.uc_flags
                    && self.uc_link == other.uc_link
                    && self.uc_stack == other.uc_stack
                    && self.uc_mcontext == other.uc_mcontext
                    && self.uc_sigmask == other.uc_sigmask
            }
        }
        impl Eq for ucontext_t {}
        impl ::fmt::Debug for ucontext_t {
            fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
                f.debug_struct("ucontext_t")
                    .field("uc_flags", &self.uc_link)
                    .field("uc_link", &self.uc_link)
                    .field("uc_stack", &self.uc_stack)
                    .field("uc_mcontext", &self.uc_mcontext)
                    .field("uc_sigmask", &self.uc_sigmask)
                    .finish()
            }
        }
        impl ::hash::Hash for ucontext_t {
            fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
                self.uc_flags.hash(state);
                self.uc_link.hash(state);
                self.uc_stack.hash(state);
                self.uc_mcontext.hash(state);
                self.uc_sigmask.hash(state);
            }
        }
    }
}

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
wasmtime-27.0.0 ./ext/cargo-vendor/libc-0.2.164/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-26.0.0 ./ext/cargo-vendor/libc-0.2.161/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-25.0.2 ./ext/cargo-vendor/libc-0.2.158/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-25.0.1 ./ext/cargo-vendor/libc-0.2.158/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-25.0.0 ./ext/cargo-vendor/libc-0.2.158/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-24.0.0 ./ext/cargo-vendor/libc-0.2.158/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-23.0.2 ./ext/cargo-vendor/libc-0.2.154/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-22.0.0 ./ext/cargo-vendor/libc-0.2.154/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-21.0.1 ./ext/cargo-vendor/libc-0.2.154/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-20.0.2 ./ext/cargo-vendor/libc-0.2.154/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-20.0.0 ./ext/cargo-vendor/libc-0.2.154/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-18.0.3 ./ext/cargo-vendor/libc-0.2.152/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-17.0.1 ./ext/cargo-vendor/libc-0.2.152/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-17.0.0 ./ext/cargo-vendor/libc-0.2.152/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-16.0.0 ./ext/cargo-vendor/libc-0.2.152/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-15.0.1 ./ext/cargo-vendor/libc-0.2.152/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-15.0.0 ./ext/cargo-vendor/libc-0.2.152/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-14.0.4 ./ext/cargo-vendor/libc-0.2.149/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-14.0.3 ./ext/cargo-vendor/libc-0.2.149/src/unix/linux_like/linux/gnu/b32/arm/align.rs
wasmtime-14.0.1 ./ext/cargo-vendor/libc-0.2.149/src/unix/linux_like/linux/gnu/b32/arm/align.rs