2004-06-26 00:17:04 +02:00
|
|
|
/* Stub version of _exit. */
|
|
|
|
|
|
|
|
#include <limits.h>
|
|
|
|
#include "config.h"
|
|
|
|
#include <_ansi.h>
|
|
|
|
#include <_syslist.h>
|
|
|
|
|
2017-12-04 04:12:33 +01:00
|
|
|
void
|
2017-12-04 04:43:30 +01:00
|
|
|
_exit (int rc)
|
2004-06-26 00:17:04 +02:00
|
|
|
{
|
|
|
|
/* Default stub just causes a divide by 0 exception. */
|
|
|
|
int x = rc / INT_MAX;
|
|
|
|
x = 4 / x;
|
2006-12-13 23:57:10 +01:00
|
|
|
|
|
|
|
/* Convince GCC that this function never returns. */
|
|
|
|
for (;;)
|
|
|
|
;
|
2004-06-26 00:17:04 +02:00
|
|
|
}
|