2005-04-21 16:53:53 +02:00
|
|
|
#include <lib.h>
|
|
|
|
#define sigpending _sigpending
|
|
|
|
#include <signal.h>
|
|
|
|
|
|
|
|
PUBLIC int sigpending(set)
|
|
|
|
sigset_t *set;
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2010-06-08 15:58:01 +02:00
|
|
|
if (_syscall(PM_PROC_NR, SIGPENDING, &m) < 0) return(-1);
|
2005-04-21 16:53:53 +02:00
|
|
|
*set = (sigset_t) m.m2_l1;
|
|
|
|
return(m.m_type);
|
|
|
|
}
|