minix/lib/libsys/sys_getsig.c

19 lines
548 B
C
Raw Normal View History

2005-04-29 17:36:43 +02:00
#include "syslib.h"
/*===========================================================================*
* sys_getksig *
2005-04-29 17:36:43 +02:00
*===========================================================================*/
2012-03-25 20:25:53 +02:00
int sys_getksig(proc_ep, k_sig_map)
endpoint_t *proc_ep; /* return process number here */
2005-04-29 17:36:43 +02:00
sigset_t *k_sig_map; /* return signal map here */
{
message m;
int result;
result = _kernel_call(SYS_GETKSIG, &m);
*proc_ep = m.SIG_ENDPT;
2005-04-29 17:36:43 +02:00
*k_sig_map = (sigset_t) m.SIG_MAP;
return(result);
}