minix/lib/syslib/sys_getsig.c

19 lines
560 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
*===========================================================================*/
PUBLIC int sys_getksig(k_proc_nr, k_sig_map)
2005-04-29 17:36:43 +02:00
int *k_proc_nr; /* return process number here */
sigset_t *k_sig_map; /* return signal map here */
{
message m;
int result;
result = _taskcall(SYSTASK, SYS_GETKSIG, &m);
2005-04-29 17:36:43 +02:00
*k_proc_nr = m.SIG_PROC;
*k_sig_map = (sigset_t) m.SIG_MAP;
return(result);
}