OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [stdlib/] [_Exit.c] - Rev 179

Go to most recent revision | Compare with Previous | Blame | View Log

/*
FUNCTION
<<_Exit>>---end program execution with no cleanup processing
 
INDEX
	_Exit
 
ANSI_SYNOPSIS
	#include <stdlib.h>
	void _Exit(int <[code]>);
 
TRAD_SYNOPSIS
	#include <stdlib.h>
	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, <<EXIT_SUCCESS>> and
<<EXIT_FAILURE>>, are defined in `<<stdlib.h>>' to indicate success or
failure in a portable fashion.
 
<<_Exit>> differs from <<exit>> in that it does not run any
application-defined cleanup functions registered with <<atexit>> 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 <stdlib.h>
#include <unistd.h>	/* for _exit() declaration */
#include <reent.h>
 
void 
_DEFUN (_Exit, (code),
	int code)
{
  _exit (code);
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.