annotate docs/ccguide/exit.refentry @ 1892:77d83b367eba

reduced labeltab size so os9boot would link
author robert
date Fri, 14 Oct 2005 01:56:25 +0000
parents c0da1728ed5b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
1 <refentry id="exit">
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <refnamediv>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
3 <refname>Exit</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
4 <refname>_Exit</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
5 <refpurpose>task termination</refpurpose>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
6 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
8 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
9 <funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
10 <funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
11 <funcdef><function>exit</function></funcdef>
570
253b6096ee01 All function prototypes are added.
roug
parents: 542
diff changeset
12 <paramdef>int <parameter>status</parameter></paramdef>
253b6096ee01 All function prototypes are added.
roug
parents: 542
diff changeset
13 </funcprototype>
253b6096ee01 All function prototypes are added.
roug
parents: 542
diff changeset
14
253b6096ee01 All function prototypes are added.
roug
parents: 542
diff changeset
15 <funcprototype>
253b6096ee01 All function prototypes are added.
roug
parents: 542
diff changeset
16 <funcdef><function>_exit</function></funcdef>
253b6096ee01 All function prototypes are added.
roug
parents: 542
diff changeset
17 <paramdef>int <parameter>status</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
18 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
19 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
20
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
21 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
22
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
23 <refsect1><title>Assembler Equivalent</title>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
24 <para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
25 os9 F$EXIT
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
26 </para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
27 </refsect1>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
28
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
29 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
30 <para>
594
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
31 Exit is the normal means of terminating a task. Exit does any
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
32 cleaning up operations required before terminating, such as
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
33 flushing out any file buffers (see Standard i/o), but _exit
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
34 does not.
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
35 </para>
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
36 <para>
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
37 A task finishing normally, that is returning from "main()",
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
38 is equivalent to a call - "exit(0)".
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
39 </para>
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
40 <para>
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
41 The status passed to exit is available to the parent task if it
c0da1728ed5b All refentries finished.
roug
parents: 570
diff changeset
42 is executing a "wait".
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
43 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
44 </refsect1>
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
45
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
46 <refsect1><title>See Also</title>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
47 <para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
48 <link linkend="wait">wait()</link>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
49 </para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
50 </refsect1>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
51 </refentry>