newlib/libgloss/libnosys/_exit.c
Jeff Johnston dce592cd8c 2004-06-25 Jeff Johnston <jjohnstn@redhat.com>
* libnosys/_exit.c: New file.
        * libnosys/Makefile.in: Add _exit.o.
2004-06-25 22:17:04 +00:00

16 lines
249 B
C

/* Stub version of _exit. */
#include <limits.h>
#include "config.h"
#include <_ansi.h>
#include <_syslist.h>
_VOID
_DEFUN (_exit, (rc),
int rc)
{
/* Default stub just causes a divide by 0 exception. */
int x = rc / INT_MAX;
x = 4 / x;
}