466
|
1 <refentry id="mknod">
|
|
2 <refnamediv>
|
468
|
3 <refname>Mknod</refname>
|
|
4 <refpurpose>create a directory</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
468
|
9 <funcsynopsisinfo>
|
|
10 #include <modes.h>
|
|
11 </funcsynopsisinfo>
|
466
|
12 <funcprototype>
|
|
13 <funcdef><function>mknod</function></funcdef>
|
570
|
14 <paramdef>char *<parameter>fname</parameter></paramdef>
|
|
15 <paramdef>int <parameter>desc</parameter></paramdef>
|
466
|
16 </funcprototype>
|
|
17 </funcsynopsis>
|
|
18
|
|
19 </refsynopsisdiv>
|
|
20
|
542
|
21 <refsect1><title>Assembler Equivalent</title>
|
|
22 <para>
|
|
23 os9 I$MAKDIR
|
|
24 </para>
|
|
25 </refsect1>
|
|
26
|
466
|
27 <refsect1><title>Description</title>
|
|
28 <para>
|
602
|
29 This call may be used to create a new directory. "Fname"
|
|
30 should point to a string containing the desired name of the
|
|
31 directory. "Desc" is a descriptor specifying the desired mode
|
|
32 (file type) and permissions of the new file.
|
|
33 </para>
|
|
34 <para>
|
|
35 The include file defines the possible values for "desc" as
|
|
36 follows:
|
466
|
37 </para>
|
602
|
38 <programlisting>
|
|
39 #define S_IREAD 0x01 /* owner read */
|
|
40 #define S_IWRITE 0x02 /* owner write */
|
|
41 #define S_IEXEC 0x04 /* owner execute */
|
|
42 #define S_IOREAD 0x08 /* public read */
|
|
43 #define S_IOWRITE 0x10 /* public write */
|
|
44 #define S_IOEXEC 0x20 /* public execute */
|
|
45 #define S_ISHARE 0x40 /* sharable */
|
|
46 </programlisting>
|
466
|
47 </refsect1>
|
602
|
48
|
552
|
49 <refsect1><title>Diagnostics</title>
|
|
50 <para>
|
|
51 Zero is returned if the directory has been successfully made;
|
|
52 -1 if the file already exists.
|
|
53 </para>
|
|
54 </refsect1>
|
|
55
|
602
|
56 <refsect1><title>See Also</title>
|
|
57 <para>
|
|
58 OS-9 command "makdir"
|
|
59 </para>
|
|
60 </refsect1>
|
466
|
61 </refentry>
|