29 lines
721 B
Rust
Raw Normal View History

2018-11-28 01:47:46 +01:00
// use super::varargs::VarArgs;
use crate::webassembly::Instance;
2018-11-28 13:29:50 -08:00
pub extern "C" fn _sigemptyset(_set: u32, _instance: &mut Instance) -> i32 {
2018-11-28 01:47:46 +01:00
debug!("emscripten::_sigemptyset");
// let set_addr = instance.memory_offset_addr(0, set as _) as *mut u32;
// unsafe {
// *set_addr = 0;
// }
0
}
2018-11-28 13:29:50 -08:00
pub extern "C" fn _sigaction(_signum: u32, _act: u32, _oldact: u32) -> i32 {
2018-11-28 01:47:46 +01:00
debug!("emscripten::_sigaction");
0
}
pub extern "C" fn _sigaddset(set: u32, signum: u32, instance: &mut Instance) -> i32 {
let set_addr = instance.memory_offset_addr(0, set as _) as *mut u32;
unsafe {
*set_addr |= 1 << (signum - 1);
}
0
}
pub extern "C" fn _sigprocmask() -> i32 {
0
}