annotate docs/ccguide/mknod.refentry @ 3285:345ff5806dd7

Correct coco.d filename in shipped Defsfile files It seems that 8 years ago in commit 2624:b8c7b7fbf3c9 the coco defs were put into a new "coco.d" (from "systype"), and the various level*/<port>/defsfile were updated. However, the level*/<port>/defs/Defsfile (that are copied to the disk images under DEFS) were apparently wrongly updated.
author hpmachining <aur@hpminc.com>
date Thu, 18 Jun 2020 20:29:32 +0200
parents 42b2c775f05f
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="mknod">
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>Mknod</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
4 <refpurpose>create a directory</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>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
9 <funcsynopsisinfo>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
10 #include &lt;modes.h&gt;
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
11 </funcsynopsisinfo>
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 <funcdef><function>mknod</function></funcdef>
570
253b6096ee01 All function prototypes are added.
roug
parents: 552
diff changeset
14 <paramdef>char *<parameter>fname</parameter></paramdef>
253b6096ee01 All function prototypes are added.
roug
parents: 552
diff changeset
15 <paramdef>int <parameter>desc</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
16 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
17 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
18
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
19 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
20
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
21 <refsect1><title>Assembler Equivalent</title>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
22 <para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
23 os9 I$MAKDIR
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
24 </para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
25 </refsect1>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
26
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
27 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
28 <para>
602
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
29 This call may be used to create a new directory. "Fname"
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
30 should point to a string containing the desired name of the
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
31 directory. "Desc" is a descriptor specifying the desired mode
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
32 (file type) and permissions of the new file.
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
33 </para>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
34 <para>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
35 The include file defines the possible values for "desc" as
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
36 follows:
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
37 </para>
602
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
38 <programlisting>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
39 #define S_IREAD 0x01 /* owner read */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
40 #define S_IWRITE 0x02 /* owner write */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
41 #define S_IEXEC 0x04 /* owner execute */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
42 #define S_IOREAD 0x08 /* public read */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
43 #define S_IOWRITE 0x10 /* public write */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
44 #define S_IOEXEC 0x20 /* public execute */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
45 #define S_ISHARE 0x40 /* sharable */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
46 </programlisting>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
47 </refsect1>
602
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
48
552
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
49 <refsect1><title>Diagnostics</title>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
50 <para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
51 Zero is returned if the directory has been successfully made;
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
52 -1 if the file already exists.
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
53 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
54 </refsect1>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
55
602
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
56 <refsect1><title>See Also</title>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
57 <para>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
58 OS-9 command "makdir"
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
59 </para>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
60 </refsect1>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
61 </refentry>