Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / _Exit.c
blob8e205a0c32815e6102761e3d735b6c9a1510e847
1 /*
2 FUNCTION
3 <<_Exit>>---end program execution with no cleanup processing
5 INDEX
6 _Exit
8 SYNOPSIS
9 #include <stdlib.h>
10 void _Exit(int <[code]>);
12 DESCRIPTION
13 Use <<_Exit>> to return control from a program to the host operating
14 environment. Use the argument <[code]> to pass an exit status to the
15 operating environment: two particular values, <<EXIT_SUCCESS>> and
16 <<EXIT_FAILURE>>, are defined in `<<stdlib.h>>' to indicate success or
17 failure in a portable fashion.
19 <<_Exit>> differs from <<exit>> in that it does not run any
20 application-defined cleanup functions registered with <<atexit>> and
21 it does not clean up files and streams. It is identical to <<_exit>>.
23 RETURNS
24 <<_Exit>> does not return to its caller.
26 PORTABILITY
27 <<_Exit>> is defined by the C99 standard.
29 Supporting OS subroutines required: <<_exit>>.
32 #include <stdlib.h>
33 #include <unistd.h> /* for _exit() declaration */
34 #include <reent.h>
36 void
37 _Exit (int code)
39 _exit (code);