arm: protect state after signal handler
[minix.git] / lib / libsys / sys_sigreturn.c
blob116ac728c9a20e5ff4ceed43a1487b181f6143e5
1 #include "syslib.h"
3 /*===========================================================================*
4 * sys_sigreturn *
5 *===========================================================================*/
6 int sys_sigreturn(proc_ep, sig_ctxt)
7 endpoint_t proc_ep; /* for which process */
8 struct sigmsg *sig_ctxt; /* POSIX style handling */
10 message m;
11 int result;
13 m.SIG_ENDPT = proc_ep;
14 m.SIG_CTXT_PTR = (char *) sig_ctxt;
15 result = _kernel_call(SYS_SIGRETURN, &m);
16 return(result);