In the rust implementation of sigval from C only the sival_ptr is present, is there a way to get sival_int?
This is how sigval looks in C:
union sigval {
int sival_int;
void *sival_ptr;
};
And this is how it looks in rust:
#[repr(C)]
pub struct sigval {
pub sival_ptr: *mut c_void,
}