2011-02-17 18:11:09 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <lib.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
|
|
|
|
int sigprocmask(how, set, oset)
|
|
|
|
int how;
|
|
|
|
const sigset_t *set;
|
|
|
|
sigset_t *oset;
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
if (set == (sigset_t *) NULL) {
|
|
|
|
m.m2_i1 = SIG_INQUIRE;
|
|
|
|
m.m2_l1 = 0;
|
|
|
|
} else {
|
|
|
|
m.m2_i1 = how;
|
|
|
|
m.m2_l1 = (long) *set;
|
|
|
|
}
|
|
|
|
if (_syscall(PM_PROC_NR, SIGPROCMASK, &m) < 0) return(-1);
|
|
|
|
if (oset != (sigset_t *) NULL) *oset = (sigset_t) (m.m2_l1);
|
|
|
|
return(m.m_type);
|
|
|
|
}
|
2013-01-07 20:10:08 +01:00
|
|
|
|
2013-01-18 00:06:11 +01:00
|
|
|
#if defined(__minix) && defined(__weak_alias)
|
2013-01-07 20:10:08 +01:00
|
|
|
__weak_alias(sigprocmask, __sigprocmask14)
|
|
|
|
#endif
|