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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [stdlib/] [_Exit.c] - Diff between revs 207 and 520

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 520
/*
/*
FUNCTION
FUNCTION
<<_Exit>>---end program execution with no cleanup processing
<<_Exit>>---end program execution with no cleanup processing
 
 
INDEX
INDEX
        _Exit
        _Exit
 
 
ANSI_SYNOPSIS
ANSI_SYNOPSIS
        #include <stdlib.h>
        #include <stdlib.h>
        void _Exit(int <[code]>);
        void _Exit(int <[code]>);
 
 
TRAD_SYNOPSIS
TRAD_SYNOPSIS
        #include <stdlib.h>
        #include <stdlib.h>
        void _Exit(<[code]>)
        void _Exit(<[code]>)
        int <[code]>;
        int <[code]>;
 
 
DESCRIPTION
DESCRIPTION
Use <<_Exit>> to return control from a program to the host operating
Use <<_Exit>> to return control from a program to the host operating
environment.  Use the argument <[code]> to pass an exit status to the
environment.  Use the argument <[code]> to pass an exit status to the
operating environment: two particular values, <<EXIT_SUCCESS>> and
operating environment: two particular values, <<EXIT_SUCCESS>> and
<<EXIT_FAILURE>>, are defined in `<<stdlib.h>>' to indicate success or
<<EXIT_FAILURE>>, are defined in `<<stdlib.h>>' to indicate success or
failure in a portable fashion.
failure in a portable fashion.
 
 
<<_Exit>> differs from <<exit>> in that it does not run any
<<_Exit>> differs from <<exit>> in that it does not run any
application-defined cleanup functions registered with <<atexit>> and
application-defined cleanup functions registered with <<atexit>> and
it does not clean up files and streams.  It is identical to <<_exit>>.
it does not clean up files and streams.  It is identical to <<_exit>>.
 
 
RETURNS
RETURNS
<<_Exit>> does not return to its caller.
<<_Exit>> does not return to its caller.
 
 
PORTABILITY
PORTABILITY
<<_Exit>> is defined by the C99 standard.
<<_Exit>> is defined by the C99 standard.
 
 
Supporting OS subroutines required: <<_exit>>.
Supporting OS subroutines required: <<_exit>>.
*/
*/
 
 
#include <stdlib.h>
#include <stdlib.h>
#include <unistd.h>     /* for _exit() declaration */
#include <unistd.h>     /* for _exit() declaration */
#include <reent.h>
#include <reent.h>
 
 
void
void
_DEFUN (_Exit, (code),
_DEFUN (_Exit, (code),
        int code)
        int code)
{
{
  _exit (code);
  _exit (code);
}
}
 
 

powered by: WebSVN 2.1.0

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