Commit | Line | Data |
---|---|---|
8bb980a3 C |
1 | EXIT(3) BSD Programmer's Manual EXIT(3) |
2 | ||
3 | N\bNA\bAM\bME\bE | |
4 | e\bex\bxi\bit\bt - perform normal program termination | |
5 | ||
6 | S\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 | ||
12 | D\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 | ||
27 | R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bES\bS | |
28 | The e\bex\bxi\bit\bt() function never returns. | |
29 | ||
30 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
31 | _exit(2), atexit(3), intro(3), tmpfile(3) | |
32 | ||
33 | S\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 | ||
36 | 4.4BSD June 4, 1993 1 |