Using KSAM/XL and KSAM 64 (32650-90886)

Chapter 9 91
KSAM Intrinsics
FFILEINFO
94 32-bit signed integer by reference. 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 32-bit signed integer by reference. 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 32-bit signed integer by reference. 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 32-bit signed integer by reference. 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.
Table 9-2. FFILEINFO Itemnum/Item Values
Item
num
Item
Type
Item Description