minix/lib/libc/sys-minix/sigpending.c
Ben Gras 6999b62af8 use netbsd <sys/signal.h> and sigset_t
. create signals-related struct message type to store sigset_t
	  directly
	. create notify-specific message types, so the generic NOTIFY_ARG
	  doesn't exist anymore

Change-Id: I26494b8e0f27718628aab4c1f37eca924ad57cbf
2013-10-24 22:46:05 +00:00

20 lines
354 B
C

#include <sys/cdefs.h>
#include <lib.h>
#include "namespace.h"
#include <signal.h>
int sigpending(set)
sigset_t *set;
{
message m;
if (_syscall(PM_PROC_NR, SIGPENDING, &m) < 0) return(-1);
memcpy(set, &m.SIG_MAP, sizeof(*set));
return(m.m_type);
}
#if defined(__minix) && defined(__weak_alias)
__weak_alias(sigpending, __sigpending14)
#endif