lucet-runtime-internals 0.6.1

Pure Rust runtime for Lucet WebAssembly toolchain (internals)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use libc::{c_void, siginfo_t};

extern "C" {
    fn siginfo_si_addr(si: *const siginfo_t) -> *const c_void;
}

pub trait SiginfoExt {
    fn si_addr_ext(&self) -> *const c_void;
}

impl SiginfoExt for siginfo_t {
    fn si_addr_ext(&self) -> *const c_void {
        unsafe { siginfo_si_addr(self as *const siginfo_t) }
    }
}