2004-06-26 06:17:04 +08:00
|
|
|
/* 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;
|
2006-12-14 06:57:10 +08:00
|
|
|
|
|
|
|
/* Convince GCC that this function never returns. */
|
|
|
|
for (;;)
|
|
|
|
;
|
2004-06-26 06:17:04 +08:00
|
|
|
}
|