> Linux Reviews > man >

exit

exit


  1. exit.2.man
  2. exit.3.man
  3. exit.9.man


1. exit.2.man

Invalid Manpage

Invalid Manpage

The requested file (stdin) is not a valid (unformatted) man page.

2. exit.3.man

Manpage of EXIT

EXIT

Section: Bibliotheksfunktionen (3)
Updated: 12. September 1996
Index Return to Main Contents
 

BEZEICHNUNG

exit - bewirkt eine normale Programmbeendigung  

ÜBERSICHT

#include <stdlib.h>

void exit(int status);
 

BESCHREIBUNG

Die exit() Funktion bewirkt eine normale Programmbeendigung und der Wert von status wird an den Elternprozess zurückgegeben. Alle Funktionen, die durch atexit() und on_exit() registriert wurden, werden in der umgekehrten Reihenfolge ihrer Registrierung aufgerufen. Außerdem werden alle offenen Dateipuffer in die Dateien geschrieben und alle offenen Dateien geschlossen.  

RÜCKGABEWERT

Die exit() Funktion gibt nichts zurück (wegen Programmbeendigung).  

KONFORM ZU

SVID 3, POSIX, BSD 4.3, ISO 9899  

SIEHE AUCH

_exit(2), atexit(3), on_exit(3).


 

Index

BEZEICHNUNG
ÜBERSICHT
BESCHREIBUNG
RÜCKGABEWERT
KONFORM ZU
SIEHE AUCH

This document was created by man2html using the manual pages.
Time: 00:23:21 GMT, November 20, 2008

3. exit.9.man

Manpage of exit

exit

Section: Tcl Built-In Commands (n)
Updated:
Index Return to Main Contents



 

NAME

exit - End the application  

SYNOPSIS

exit ?returnCode?



 

DESCRIPTION

Terminate the process, returning returnCode to the system as the exit status. If returnCode isn't specified then it defaults to 0.  

EXAMPLE

Since non-zero exit codes are usually interpreted as error cases by the calling process, the exit command is an important part of signalling that something fatal has gone wrong. This code fragment is useful in scripts to act as a general problem trap:

proc main {} {
    # ... put the real main code in here ...
}

if {[catch {main} msg]} {
    puts stderr "unexpected script error: $msg"
    if {[info exist env(DEBUG)]} {
        puts stderr "---- BEGIN TRACE ----"
        puts stderr $errorInfo
        puts stderr "---- END TRACE ----"
    }

    # Reserve code 1 for "expected" error exits...
    exit 2
}

 

SEE ALSO

exec(n), tclvars(n)

 

KEYWORDS

exit, process


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO
KEYWORDS

This document was created by man2html using the manual pages.
Time: 00:23:21 GMT, November 20, 2008

NORSK BOKMÅL - NORSK BOKMÅL - NORSK BOKMÅL - NORSK BOKMÅL - da - nl - NORSK BOKMÅL - pl