minix/lib/syslib/sys_sigreturn.c

21 lines
627 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include "syslib.h"
2005-04-29 17:36:43 +02:00
/*===========================================================================*
* sys_sigreturn *
*===========================================================================*/
PUBLIC int sys_sigreturn(proc_nr, sig_ctxt, flags)
int proc_nr; /* for which process */
struct sigmsg *sig_ctxt; /* POSIX style handling */
int flags; /* flags for POSIX handling */
2005-04-21 16:53:53 +02:00
{
2005-04-29 17:36:43 +02:00
message m;
int result;
2005-04-21 16:53:53 +02:00
2005-04-29 17:36:43 +02:00
m.SIG_PROC = proc_nr;
m.SIG_CTXT_PTR = (char *) sig_ctxt;
m.SIG_FLAGS = flags;
result = _taskcall(SYSTASK, SYS_SIGRETURN, &m);
return(result);
2005-04-21 16:53:53 +02:00
}
2005-04-29 17:36:43 +02:00