BSD 4_4 development
[unix-history] / usr / share / man / cat3 / exit.0
CommitLineData
8bb980a3
C
1EXIT(3) BSD Programmer's Manual EXIT(3)
2
3N\bNA\bAM\bME\bE
4 e\bex\bxi\bit\bt - perform normal program termination
5
6S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
7 #\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<s\bst\btd\bdl\bli\bib\bb.\b.h\bh>\b>
8
9 _\bv_\bo_\bi_\bd
10 e\bex\bxi\bit\bt(_\bi_\bn_\bt _\bs_\bt_\ba_\bt_\bu_\bs);
11
12D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
13 E\bEx\bxi\bit\bt() terminates a process.
14
15 Before termination it performs the following functions in the order list-
16 ed:
17
18 1. Call the functions registered with the atexit(3) function, in
19 the reverse order of their registration.
20
21 2. Flush all open output streams.
22
23 3. Close all open streams.
24
25 4. Unlink all files created with the tmpfile(3) function.
26
27R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bES\bS
28 The e\bex\bxi\bit\bt() function never returns.
29
30S\bSE\bEE\bE A\bAL\bLS\bSO\bO
31 _exit(2), atexit(3), intro(3), tmpfile(3)
32
33S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS
34 The e\bex\bxi\bit\bt() function conforms to ANSI C X3.159-1989 (``ANSI C '').
35
364.4BSD June 4, 1993 1