annotate docs/ccguide/dup.refentry @ 541:7a7bf9925e42

All "See Also" implemented
author roug
date Mon, 14 Oct 2002 19:08:28 +0000
parents 60b821f18853
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="dup">
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>Dup</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
4 <refpurpose>duplicate an open path number</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>dup</function></funcdef>
541
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
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
541
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
17 <refsect1><title>Assembler Equivalent</title>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
18 <para>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
19 os9 I$DUP
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
20 </para>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
21 </refsect1>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
22 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
23 <para>
541
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
24 Dup takes the path number, "pn", as returned from "open()" or
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
25 "creat()" and returns another path number associated with the
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
26 same file.
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
27 </para>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
28 </refsect1>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
29 <refsect1><title>Diagnostics</title>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
30 <para>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
31 A -1 is returned is the call fails because there are too many
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
32 files open or the path nmber is invalid.
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
33 </para>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
34 </refsect1>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
35 <refsect1><title>See Also</title>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
36 <para>
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
37 <link linkend="open">open()</link>,
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
38 <link linkend="creat">creat()</link>,
7a7bf9925e42 All "See Also" implemented
roug
parents: 468
diff changeset
39 <link linkend="close">close()</link>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
40 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
41 </refsect1>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
42 </refentry>