libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / sigpending.c
blob817505f6a43d023b25218f742809da730dd4dd4b
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <signal.h>
7 int sigpending(set)
8 sigset_t *set;
10 message m;
12 if (_syscall(PM_PROC_NR, SIGPENDING, &m) < 0) return(-1);
13 *set = (sigset_t) m.m2_l1;
14 return(m.m_type);