From d062d3ddec032d9bf47a3847838bb28297ab91aa Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 13 Jun 2002 23:24:03 +0000 Subject: 2002-06-13 Jeff Johnston * libc/include/stdlib.h: Add _Exit prototype. * libc/stdlib/Makefile.am: Add _Exit.c support. * libc/stdlib/Makefile.in: Ditto. * libc/stdlib/_Exit.c: New file. --- newlib/libc/stdlib/_Exit.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 newlib/libc/stdlib/_Exit.c (limited to 'newlib/libc/stdlib/_Exit.c') diff --git a/newlib/libc/stdlib/_Exit.c b/newlib/libc/stdlib/_Exit.c new file mode 100644 index 000000000..3f189a21f --- /dev/null +++ b/newlib/libc/stdlib/_Exit.c @@ -0,0 +1,46 @@ +/* +FUNCTION +<<_Exit>>---end program execution with no cleanup processing + +INDEX + _Exit + +ANSI_SYNOPSIS + #include + void _Exit(int <[code]>); + +TRAD_SYNOPSIS + #include + void _Exit(<[code]>) + int <[code]>; + +DESCRIPTION +Use <<_Exit>> to return control from a program to the host operating +environment. Use the argument <[code]> to pass an exit status to the +operating environment: two particular values, <> and +<>, are defined in `<>' to indicate success or +failure in a portable fashion. + +<<_Exit>> differs from <> in that it does not run any +application-defined cleanup functions registered with <> and +it does not clean up files and streams. It is identical to <<_exit>>. + +RETURNS +<<_Exit>> does not return to its caller. + +PORTABILITY +<<_Exit>> is defined by the C99 standard. + +Supporting OS subroutines required: <<_exit>>. +*/ + +#include +#include /* for _exit() declaration */ +#include + +void +_DEFUN (_Exit, (code), + int code) +{ + _exit (code); +} -- cgit v1.2.3