source: trunk/libs/newlib/src/newlib/libc/stdlib/_Exit.c @ 471

Last change on this file since 471 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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