Last change
on this file since 577 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 | /* |
---|
2 | FUNCTION |
---|
3 | <<_Exit>>---end program execution with no cleanup processing |
---|
4 | |
---|
5 | INDEX |
---|
6 | _Exit |
---|
7 | |
---|
8 | SYNOPSIS |
---|
9 | #include <stdlib.h> |
---|
10 | void _Exit(int <[code]>); |
---|
11 | |
---|
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. |
---|
18 | |
---|
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>>. |
---|
22 | |
---|
23 | RETURNS |
---|
24 | <<_Exit>> does not return to its caller. |
---|
25 | |
---|
26 | PORTABILITY |
---|
27 | <<_Exit>> is defined by the C99 standard. |
---|
28 | |
---|
29 | Supporting OS subroutines required: <<_exit>>. |
---|
30 | */ |
---|
31 | |
---|
32 | #include <stdlib.h> |
---|
33 | #include <unistd.h> /* for _exit() declaration */ |
---|
34 | #include <reent.h> |
---|
35 | |
---|
36 | void |
---|
37 | _Exit (int code) |
---|
38 | { |
---|
39 | _exit (code); |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.