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: d4dd232395b6bd983c687b8f80d887eb02d48a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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;
}