Skip to content

Commit 6641160

Browse files
committed
Auto merge of #582 - mkilgore:sigprocmask, r=alexcrichton
Add sigprocmask function sigprocmask is currently missing, this adds the definition for sigprocmask into the main list of Unix functions. This should be standard across all the Unix-like systems supported. Note that the constants for 'how' (SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK) are already defined, it is only this function that is missing.
2 parents 26b8ab3 + 5306983 commit 6641160

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,12 @@ extern {
780780
#[cfg_attr(target_os = "netbsd", link_name = "__sigismember14")]
781781
pub fn sigismember(set: *const sigset_t, signum: ::c_int) -> ::c_int;
782782

783+
#[cfg_attr(target_os = "netbsd", link_name = "__sigprocmask14")]
784+
pub fn sigprocmask(how: ::c_int,
785+
set: *const sigset_t,
786+
oldset: *mut sigset_t)
787+
-> ::c_int;
788+
783789
#[cfg_attr(target_os = "netbsd", link_name = "__timegm50")]
784790
pub fn timegm(tm: *mut ::tm) -> time_t;
785791

0 commit comments

Comments
 (0)