Sha256: ea39d5fd8ca5a71314127d1e1f542bca34ac566eac9a95662076d91ea4bee548

Contents?: true

Size: 1.63 KB

Versions: 15

Compression:

Stored size: 1.63 KB

Contents

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

s! {
    pub struct ucontext_t {
        pub uc_flags: ::c_ulong,
        pub uc_link: *mut ucontext_t,
        pub uc_stack: ::stack_t,
        pub uc_sigmask: ::sigset_t,
        pub uc_mcontext: mcontext_t,
    }

    #[repr(align(16))]
    pub struct mcontext_t {
        pub fault_address: ::c_ulonglong,
        pub regs: [::c_ulonglong; 31],
        pub sp: ::c_ulonglong,
        pub pc: ::c_ulonglong,
        pub pstate: ::c_ulonglong,
        // nested arrays to get the right size/length while being able to
        // auto-derive traits like Debug
        __reserved: [[u64; 32]; 16],
    }

    #[repr(align(16))]
    pub struct user_fpsimd_struct {
        pub vregs: [[u64; 2]; 32],
        pub fpsr: ::c_uint,
        pub fpcr: ::c_uint,
    }

    #[repr(align(8))]
    pub struct clone_args {
        pub flags: ::c_ulonglong,
        pub pidfd: ::c_ulonglong,
        pub child_tid: ::c_ulonglong,
        pub parent_tid: ::c_ulonglong,
        pub exit_signal: ::c_ulonglong,
        pub stack: ::c_ulonglong,
        pub stack_size: ::c_ulonglong,
        pub tls: ::c_ulonglong,
        pub set_tid: ::c_ulonglong,
        pub set_tid_size: ::c_ulonglong,
        pub cgroup: ::c_ulonglong,
    }
}

extern "C" {
    pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int;
    pub fn setcontext(ucp: *const ucontext_t) -> ::c_int;
    pub fn makecontext(ucp: *mut ucontext_t, func: extern "C" fn(), argc: ::c_int, ...);
    pub fn swapcontext(uocp: *mut ucontext_t, ucp: *const ucontext_t) -> ::c_int;
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wasmtime-13.0.0 ./ext/cargo-vendor/libc-0.2.147/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-12.0.1 ./ext/cargo-vendor/libc-0.2.147/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-12.0.0 ./ext/cargo-vendor/libc-0.2.147/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-11.0.0 ./ext/cargo-vendor/libc-0.2.147/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-10.0.1 ./ext/cargo-vendor/libc-0.2.147/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-10.0.0 ./ext/cargo-vendor/libc-0.2.147/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-9.0.4 ./ext/cargo-vendor/libc-0.2.147/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-9.0.1 ./ext/cargo-vendor/libc-0.2.144/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-8.0.0 ./ext/cargo-vendor/libc-0.2.142/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-7.0.0 ./ext/cargo-vendor/libc-0.2.140/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-6.0.1 ./ext/cargo-vendor/libc-0.2.139/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-6.0.0 ./ext/cargo-vendor/libc-0.2.139/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-5.0.0 ./ext/cargo-vendor/libc-0.2.139/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-0.4.1 ./ext/cargo-vendor/libc-0.2.138/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
wasmtime-0.4.0 ./ext/cargo-vendor/libc-0.2.138/src/unix/linux_like/linux/gnu/b64/aarch64/align.rs