source: trunk/minix/lib/posix/_sigprocmask.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 438 bytes
Line 
1#include <lib.h>
2#define sigprocmask _sigprocmask
3#include <signal.h>
4
5PUBLIC int sigprocmask(how, set, oset)
6int how;
7_CONST sigset_t *set;
8sigset_t *oset;
9{
10 message m;
11
12 if (set == (sigset_t *) NULL) {
13 m.m2_i1 = SIG_INQUIRE;
14 m.m2_l1 = 0;
15 } else {
16 m.m2_i1 = how;
17 m.m2_l1 = (long) *set;
18 }
19 if (_syscall(MM, SIGPROCMASK, &m) < 0) return(-1);
20 if (oset != (sigset_t *) NULL) *oset = (sigset_t) (m.m2_l1);
21 return(m.m_type);
22}
Note: See TracBrowser for help on using the repository browser.