MPE/iX Intrinsics Reference Manual (32650-90875)
396 Chapter7
Command Definitions (HP32208-HPLOACNMPROC)
HPFOPEN
attached to a new file. The byte array has a length of 1 to 279 bytes. Unlike
other HPFOPEN options that expect a delimiter at both the beginning and
the end of the byte array, this option only expects a trailing carriage return
character as a delimiter, for example,
(X:@.@;R,W:MGR.SYS;RACD:JOHN.SMITH)<cr>
Where, the <cr> is the carriage return character (13, 0x0D).
The ACD assigned to a newly created file or directory may be different
from the ACD specified as the value of this
itemnum
. If a process' file mode
creation mask (cmask) is initialized, it modifies the ACD.
65-76
Reserved for the operating system
77/I32 Data format
Allows the caller to select a different format to view the data in the file.
The current valid values for this item are:
0 Use the standard record based view of accessing the file.
This is the default value for all opens. For conventional
files, the file is record based. For directories, the standard
non-privileged directory information is returned when the
HPDIRREAD intrinsic is called. When this value is specified
with a byte stream file, access to the file is emulated to
appear like a buffered variable record file. This is the
default.
1 When this value is specified, calls to HPDIRREAD returns
privileged directory information including the UFID and
link ID of the entry. Note that this value is only applicable
to directory files. This value is ignored for all other file
types. In order to specify this value, the caller must be
executing in system code.
2 When this value is specified, the system attempts to let
the caller access the file as a native byte stream file. Byte
stream emulation is supported for ordinary fixed and
variable length record files as well as for files with the byte
stream record type. If this value is requested against a file
type that does not support byte stream access, an error is
returned.
Specifying any value other than the values described above will result in
an error.
79/I32 POSIX Non-Block Mode
Specifying this itemnum allows the caller to open a file with the POSIX
Non-Block mode. This item is useful for a subset of files (including pipes
and FIFO's) and is ignored for all other files. The behavior of the
HPFOPEN call with this option is dependent on the type of file being
opened.
The current valid values for this item are: