annotate docs/ccguide/open.refentry @ 572:e43a77fddcbd

All function prototypes are added.
author roug
date Fri, 01 Nov 2002 10:02:34 +0000
parents fcb97f0ba24b
children 42b2c775f05f
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="open">
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>Open</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
4 <refpurpose>open a file for read/write access</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>open</function></funcdef>
572
e43a77fddcbd All function prototypes are added.
roug
parents: 552
diff changeset
11 <paramdef>char *<parameter>fname</parameter></paramdef>
e43a77fddcbd All function prototypes are added.
roug
parents: 552
diff changeset
12 <paramdef>int <parameter>mode</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
13 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
14 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
15
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
16 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
17
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
18 <refsect1><title>Assembler Equivalent</title>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
19 <para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
20 os9 I$OPEN
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
21 </para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
22 </refsect1>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
23
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
24 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
25 <para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
26 Placeholder
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
27 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
28 </refsect1>
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
29
552
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
30 <refsect1><title>Diagnostics</title>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
31 <para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
32 -1 is returned if the file does not exist, if the pathname
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
33 cannot be searched, if too many files are already open, or if
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
34 the file permissions deny the requested mode.
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
35 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
36 </refsect1>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
37
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
38 <refsect1><title>See Also</title>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
39 <para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
40 <link linkend="creat">creat()</link>,
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
41 <link linkend="read">read()</link>,
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
42 <link linkend="write">write()</link>,
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
43 <link linkend="dup">dup()</link>,
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
44 <link linkend="close">close()</link>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
45 </para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
46 </refsect1>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
47
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
48 </refentry>