466
|
1 <refentry id="exit">
|
|
2 <refnamediv>
|
468
|
3 <refname>Exit</refname>
|
|
4 <refname>_Exit</refname>
|
|
5 <refpurpose>task termination</refpurpose>
|
466
|
6 </refnamediv>
|
|
7
|
|
8 <refsynopsisdiv>
|
|
9 <funcsynopsis>
|
|
10 <funcprototype>
|
|
11 <funcdef><function>exit</function></funcdef>
|
570
|
12 <paramdef>int <parameter>status</parameter></paramdef>
|
|
13 </funcprototype>
|
|
14
|
|
15 <funcprototype>
|
|
16 <funcdef><function>_exit</function></funcdef>
|
|
17 <paramdef>int <parameter>status</parameter></paramdef>
|
466
|
18 </funcprototype>
|
|
19 </funcsynopsis>
|
|
20
|
|
21 </refsynopsisdiv>
|
|
22
|
542
|
23 <refsect1><title>Assembler Equivalent</title>
|
|
24 <para>
|
|
25 os9 F$EXIT
|
|
26 </para>
|
|
27 </refsect1>
|
|
28
|
466
|
29 <refsect1><title>Description</title>
|
|
30 <para>
|
594
|
31 Exit is the normal means of terminating a task. Exit does any
|
|
32 cleaning up operations required before terminating, such as
|
|
33 flushing out any file buffers (see Standard i/o), but _exit
|
|
34 does not.
|
|
35 </para>
|
|
36 <para>
|
|
37 A task finishing normally, that is returning from "main()",
|
|
38 is equivalent to a call - "exit(0)".
|
|
39 </para>
|
|
40 <para>
|
|
41 The status passed to exit is available to the parent task if it
|
|
42 is executing a "wait".
|
466
|
43 </para>
|
|
44 </refsect1>
|
542
|
45
|
|
46 <refsect1><title>See Also</title>
|
|
47 <para>
|
|
48 <link linkend="wait">wait()</link>
|
|
49 </para>
|
|
50 </refsect1>
|
466
|
51 </refentry>
|