4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-29 18:40:25 +08:00
Yaakov Selkowitz 67ee0cac4c ansification: remove _VOID
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:20 -06:00

20 lines
322 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;
/* Convince GCC that this function never returns. */
for (;;)
;
}