source: trunk/minix/lib/syslib/sys_abort.c@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

  • Property svn:executable set to *
File size: 422 bytes
Line 
1#include "syslib.h"
2#include <stdarg.h>
3#include <unistd.h>
4
5PUBLIC int sys_abort(int how, ...)
6{
7/* Something awful has happened. Abandon ship. */
8
9 message m;
10 va_list ap;
11
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);
17 }
18 va_end(ap);
19
20 return(_taskcall(SYSTASK, SYS_ABORT, &m));
21}
Note: See TracBrowser for help on using the repository browser.