1 /* Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> */
2 /*
3 FUNCTION
4 <<_Exit>>---end program execution with no cleanup processing
5
6 INDEX
7 _Exit
8
9 SYNOPSIS
10 #include <stdlib.h>
11 void _Exit(int <[code]>);
12
13 DESCRIPTION
14 Use <<_Exit>> to return control from a program to the host operating
15 environment. Use the argument <[code]> to pass an exit status to the
16 operating environment: two particular values, <<EXIT_SUCCESS>> and
17 <<EXIT_FAILURE>>, are defined in `<<stdlib.h>>' to indicate success or
18 failure in a portable fashion.
19
20 <<_Exit>> differs from <<exit>> in that it does not run any
21 application-defined cleanup functions registered with <<atexit>> and
22 it does not clean up files and streams. It is identical to <<_exit>>.
23
24 RETURNS
25 <<_Exit>> does not return to its caller.
26
27 PORTABILITY
28 <<_Exit>> is defined by the C99 standard.
29
30 Supporting OS subroutines required: <<_exit>>.
31 */
32
33 #include <stdlib.h>
34 #include <unistd.h> /* for _exit() declaration */
35
36 void
_Exit(int code)37 _Exit (int code)
38 {
39 _exit (code);
40 }
41