minix/lib/syslib/sys_exit.c
Jorrit Herder 654722493b Renamed various system calls.
Cleaned up system call library.
Added new alert() trap to replace notify() --- current notify will be removed
and alert() will be called notify() later.
2005-07-14 15:13:33 +00:00

18 lines
617 B
C

#include "syslib.h"
/*===========================================================================*
* sys_exit *
*===========================================================================*/
PUBLIC int sys_exit(proc)
int proc; /* which process has exited */
{
/* A process has exited. PM tells the kernel. In addition this call can be
* used by system processes to directly exit without passing through the
* PM. This should be used with care to prevent inconsistent PM tables.
*/
message m;
m.PR_PROC_NR = proc;
return(_taskcall(SYSTASK, SYS_EXIT, &m));
}