Guardian Procedure Calls Reference Manual
type-info
output
INT .EXT:ref:5
returns an array of INT values that contain information about the file. The meanings of the
words are:
Device type[0]
Device subtype[1]
The meanings of these words depend on the device type. When the device type is 3 (disk) the meanings
are:
[2:4]
Object type. For disk files, a value greater than 0 indicates an SQL object; 0 indicates a
nonSQL file. -1 is returned for nondisk files.
[2]
File type. For disk files, indicates the file type:[3]
Unstructured0
Relative1
Entry-sequenced2
Key-sequenced3
is returned for nondisk files.-1
File code. For disk files, gives the application-defined file code (file codes 100-999 are reserved
for use by HP). -1 is returned for nondisk files.
[4]
If an error value of 11 (file not found) is returned, the device type and subtype values correctly
reflect the device portion of the supplied file name, but the other fields in type-info do not
contain valid information.
physical-recordlen
output
INT .EXT:ref:1
returns the physical record length associated with the file:
• nondisk
physical-recordlen is the configured device record length.
• disk files
physical-recordlen is the maximum possible transfer length. Transfer length is equal
to the configured buffer size for the device (either 2048 or 4096 bytes). (For an Enscribe
disk file, the logical record length can be obtained by a call to
FILE_GETINFOLIST[BYNAME]_.)
• processes and $RECEIVE file
A length of 132 is returned in physical-recordlen. This is the system convention for
interprocess files.
408 Guardian Procedure Calls (F)