466
|
1 <refentry id="creat">
|
|
2 <refnamediv>
|
468
|
3 <refname>Creat</refname>
|
|
4 <refpurpose>create a file</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
468
|
9 <funcsynopsisinfo>
|
|
10 #include <modes.h>
|
|
11 </funcsynopsisinfo>
|
466
|
12 <funcprototype>
|
|
13 <funcdef><function>creat</function></funcdef>
|
570
|
14 <paramdef>char *<parameter>fname</parameter></paramdef>
|
|
15 <paramdef>int <parameter>perm</parameter></paramdef>
|
466
|
16 </funcprototype>
|
|
17 </funcsynopsis>
|
|
18
|
|
19 </refsynopsisdiv>
|
|
20
|
540
|
21 <refsect1><title>Assembler Equivalent</title>
|
|
22 <para>
|
|
23 os9 I$CREATE
|
|
24 </para>
|
|
25 </refsect1>
|
|
26
|
466
|
27 <refsect1><title>Description</title>
|
|
28 <para>
|
|
29 Placeholder
|
|
30 </para>
|
|
31 </refsect1>
|
540
|
32
|
552
|
33 <refsect1><title>Diagnostics</title>
|
|
34 <para>
|
|
35 This call returns -1 if there are too many files open. If the
|
|
36 pathname cannot be searched, if permission to write is denied,
|
|
37 or if the file exists and is a directory.
|
|
38 </para>
|
|
39 </refsect1>
|
|
40
|
540
|
41 <refsect1><title>See Also</title>
|
|
42 <para>
|
|
43 <link linkend="write">write()</link>,
|
|
44 <link linkend="close">close()</link>,
|
|
45 <link linkend="chmod">chmod()</link>
|
|
46 </para>
|
|
47 </refsect1>
|
466
|
48 </refentry>
|