MPE/iX Intrinsics Reference Manual (32650-90875)
178 Chapter5
Command Definitions (FCONTROL - FLOCK)
FFILEINFO
94 I32 MPE/iX device type:
This item returns the following values for the following types of devices:
0 Disk device
1 Tape device
2 Terminal device
3 Printer device
4 Remote device
5 Ports device
6 Reserved
7 Streams device
8 Sockets device
95 I32 Close-on-Exec
This item returns a value indication whether or not this
filenum
is closed if one
the POSIX.1 exec() family of functions if called. A value of 1 means that the
file is closed on an exec() call, while a value of 0 indicates the file will survive
across exec() calls.
96 I32 POSIX Append mode
This item returns a value indicating whether or not this
filenum
has the
POSIX.1 append mode flag set. When the append mode flag is set on files that
support this feature, all writes occur at the end of the file, although reads may
occur anywhere in the file. A value of 1 indicates that the POSIX.1 append mode
is on, while a value of 0 indicates the append mode is off.
The only time that the POSIX.1 append mode is valid is when a file has been
oepned for byte stream access (HPFOPEN option 77 with a value of 2).
97 I32 POSIX non-block mode
This item returns a value indicating whether or not this
filenum
has the
POSIX.1 non-block flag set. When the non-block flag is set, on files that support
this feature, reads, writes, and opens can be affected in a file dependent manner.
In general, operations that would otherwise have impeded the caller results in
immediate return when this flag is set. A value of 1 indicates the non-block flag
is set, while a value of zero indicates the flag is not set.
The only time the non-block flag is valid is for pipes and FIFO's.
98 I32 Carriage Control
This item returns a value indicating whether or not the carriage control option
is in effect for this file. If carriage control is on, a value of 1 is returned.
Otherwise, a value of 0 is returned.
Table 5-2. FFILEINFO Itemnum/Item Values
Itemnu
m
Item
Type
Item Description