Skip to content
Snippets Groups Projects
Verified Commit 5b969f2b authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add pthread_sigmask

parent 89fca557
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,17 @@ pub extern "C" fn killpg(pgrp: pid_t, sig: c_int) -> c_int {
Sys::killpg(pgrp, sig)
}
#[no_mangle]
pub extern "C" fn pthread_sigmask(how: c_int, set: *const sigset_t, oldset: *mut sigset_t) -> c_int {
// On Linux and Redox, pthread_sigmask and sigprocmask are equivalent
if sigprocmask(how, set, oldset) == 0 {
0
} else {
//TODO: Fix race
unsafe { platform::errno }
}
}
#[no_mangle]
pub extern "C" fn raise(sig: c_int) -> c_int {
Sys::raise(sig)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment