xref: /minix3/minix/lib/libsys/sys_abort.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc #include "syslib.h"
2*433d6423SLionel Sambuc #include <stdarg.h>
3*433d6423SLionel Sambuc #include <unistd.h>
4*433d6423SLionel Sambuc 
sys_abort(int how)5*433d6423SLionel Sambuc int sys_abort(int how)
6*433d6423SLionel Sambuc {
7*433d6423SLionel Sambuc /* Something awful has happened.  Abandon ship. */
8*433d6423SLionel Sambuc 
9*433d6423SLionel Sambuc   message m;
10*433d6423SLionel Sambuc 
11*433d6423SLionel Sambuc   m.m_lsys_krn_sys_abort.how = how;
12*433d6423SLionel Sambuc   return(_kernel_call(SYS_ABORT, &m));
13*433d6423SLionel Sambuc }
14