VM: full munmap
[minix.git] / lib / libsys / sys_abort.c
blob747537b4236ea5c44d69e54acc858c70c6d62668
1 #include "syslib.h"
2 #include <stdarg.h>
3 #include <unistd.h>
5 int sys_abort(int how, ...)
7 /* Something awful has happened. Abandon ship. */
9 message m;
10 va_list ap;
12 va_start(ap, how);
13 if ((m.ABRT_HOW = how) == RBT_MONITOR) {
14 m.ABRT_MON_ENDPT = va_arg(ap, int);
15 m.ABRT_MON_ADDR = va_arg(ap, char *);
16 m.ABRT_MON_LEN = va_arg(ap, size_t);
18 va_end(ap);
20 return(_kernel_call(SYS_ABORT, &m));