Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / kernel / system / do_abort.c
blob64e9d57db7e7c096c3f80a68eba5a41f95d3e6e2
1 /* The kernel call implemented in this file:
2 * m_type: SYS_ABORT
4 * The parameters for this kernel call are:
5 * m_lsys_krn_sys_abort.how (how to abort, possibly fetch monitor params)
6 */
8 #include "kernel/system.h"
9 #include <unistd.h>
11 #if USE_ABORT
13 /*===========================================================================*
14 * do_abort *
15 *===========================================================================*/
16 int do_abort(struct proc * caller, message * m_ptr)
18 /* Handle sys_abort. MINIX is unable to continue. This can originate e.g.
19 * in the PM (normal abort) or TTY (after CTRL-ALT-DEL).
21 int how = m_ptr->m_lsys_krn_sys_abort.how;
23 /* Now prepare to shutdown MINIX. */
24 prepare_shutdown(how);
25 return(OK); /* pro-forma (really EDISASTER) */
28 #endif /* USE_ABORT */