annotate docs/ccguide/close.refentry @ 2314:5f76d1a611f6

term signal sending for serread port status responses
author aaronwolfe
date Sun, 03 Jan 2010 22:09:41 +0000
parents 3339ee2e58bc
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="close">
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>Close</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
4 <refpurpose>close a file</refpurpose>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
5 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
6
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
8 <funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
9 <funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
10 <funcdef><function>close</function></funcdef>
566
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
11 <paramdef>int <parameter>pn</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
12 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
13 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
14
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
15 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
16
540
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
17 <refsect1><title>Assembler Equivalent</title>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
18 <para>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
19 os9 I$CLOSE
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
20 </para>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
21 </refsect1>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
22
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
23 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
24 <para>
566
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
25 Close takes a path number, "pn", as returned from system calls
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
26 "open()", "creat()", or "dup()", and closes the associated
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
27 file.
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
28 </para>
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
29 <para>
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
30 Termination of a task always closes all open files
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
31 automatically, but it is necessary to close files where
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
32 multiple files are opened by the task, and it is desired to
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
33 re-use path numbers to avoid going over the system or process
3339ee2e58bc Several functions ready.
roug
parents: 540
diff changeset
34 path number limit.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
35 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
36 </refsect1>
540
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
37
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
38 <refsect1><title>See Also</title>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
39 <para>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
40 <link linkend="creat">creat()</link>,
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
41 <link linkend="open">open()</link>,
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
42 <link linkend="dup">dup()</link>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
43 </para>
395a58bae72e All "See Also" implemented
roug
parents: 468
diff changeset
44 </refsect1>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
45 </refentry>