HP C/iX Library Reference Manual (30026-90004)

Chapter 5 175
HP C/iX Library Function Descriptions
freopen
Bu
n
The Bu option specifies the number of buffers to be allocated to this file. If
the Bu option is not specified, the default is 2.
C If the C option is specified, then the file accepts carriage control
information. The default is to not have carriage control.
Df
n
The Df option specifies the final disposition of the file after the file is
closed. The affect of each value of
n
is defined as follows:
If the Df option is not specified and the file is a new file, then the default is
to save the file as a permanent file. If the file is old, the default is not to
change the disposition.
Ds
n
The Ds option specifies the disk space disposition of the file after the file is
closed for fixed, undefined, and variable format files. The affect of each
value of
n
is defined as follows:
If the Ds option is not specified, the default is not to return any disk space
allocated beyond the end-of-file indicator.
E
n
The E option specifies the maximum number of extents that is allocated to
the file. The maximum value is 32. The default value, if the E option is not
specified, is 8 extents.
F
n
The F option indicates the value used as the file code if this call to
freopen() creates the file. If the F option is not specified, the file code is
zero.
L If specified, the L option indicates that dynamic locking should be allowed
on this file.
M
n
The M option controls multi-access. The option character is followed by an
integer that indicates the level of multi-access for this open request. The
levels are specified in the MPE Intrinsics Reference Manual under the
FOPEN specification.
Q If the Q option is specified, file equations are disallowed. The default is to
allow file equations.
0 Don't change the disposition.
1 Save the file as a permanent file.
2 Save the file as a temporary file.
3 Don't rewind on close.
4 Purge the file on close.
0 Don't return any disk space allocated beyond the end-of-file indicator.
1 Return to the system any disk space allocated beyond the end-of-file indicator. The EOF
becomes the file limit. No records may be added to the file beyond this new limit.
2 Return to the system any disk space allocated beyond the end-of-file indicator, but do not set
the file limit to EOF, and allow records to be added to the file up to the file limit.