Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_exit.c « libnosys « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 731dea7f01f7082b251c1799381d4b4b42813cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Stub version of _exit.  */

#include <limits.h>
#include "config.h"
#include <_ansi.h>
#include <_syslist.h>

void
_exit (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 (;;)
    ;
}