466
|
1 <refentry id="setstat">
|
|
2 <refnamediv>
|
468
|
3 <refname>Setstat</refname>
|
|
4 <refpurpose>set file status</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
468
|
9 <funcsynopsisinfo>
|
|
10 #include <sgstat.h>
|
|
11 </funcsynopsisinfo>
|
576
|
12
|
|
13 <funcsynopsisinfo>
|
|
14 /* code 0 */
|
|
15 </funcsynopsisinfo>
|
466
|
16 <funcprototype>
|
|
17 <funcdef><function>setstat</function></funcdef>
|
576
|
18 <paramdef>int <parameter>code</parameter></paramdef>
|
|
19 <paramdef>int <parameter>filenum</parameter></paramdef>
|
|
20 <paramdef>char *<parameter>buffer</parameter></paramdef>
|
|
21 </funcprototype>
|
|
22
|
|
23 <funcsynopsisinfo>
|
|
24 /* code 2 */
|
|
25 </funcsynopsisinfo>
|
|
26 <funcprototype>
|
|
27 <funcdef><function>setstat</function></funcdef>
|
|
28 <paramdef>int <parameter>code</parameter></paramdef>
|
|
29 <paramdef>int <parameter>filenum</parameter></paramdef>
|
|
30 <paramdef>long <parameter>size</parameter></paramdef>
|
466
|
31 </funcprototype>
|
|
32 </funcsynopsis>
|
|
33
|
|
34 </refsynopsisdiv>
|
|
35
|
544
|
36 <refsect1><title>Assembler Equivalent</title>
|
|
37 <para>
|
|
38 os9 F$SETSTT
|
|
39 </para>
|
|
40 </refsect1>
|
|
41
|
466
|
42 <refsect1><title>Description</title>
|
|
43 <para>
|
606
|
44 For a detailed explanation of this call, see the OS-9 System
|
|
45 Programmer's Manual.
|
|
46 </para>
|
|
47 <para>
|
|
48 "Filenum" must be the path number of a currently open file.
|
|
49 The only values for code at this time are 0 and 2. When "code"
|
|
50 is 0, "buffer" should be the address of a 32 byte structure
|
|
51 which is written to the option section of the path descriptor
|
|
52 of the file. The header file contains definitions of various
|
|
53 structures maintained by OS-9 for use by the programmer. When
|
|
54 code is 2, "size" should be a long integer specifying the new
|
|
55 file size.
|
466
|
56 </para>
|
|
57 </refsect1>
|
|
58 </refentry>
|