Guardian Procedure Calls Reference Manual
last-error
output
INT .EXT:ref:1
returns the file-system error number resulting from the last operation performed on the specified
file.
filename:maxlen
output:input
STRING .EXT:ref:*, INT:value
returns the fully-qualified name under which the specified file was opened. If a DEFINE name
was supplied when opening the file, filename is the file name, not the DEFINE name. maxlen
gives the length in bytes of the string variable filename.
filename-length
output
INT .EXT:ref:1
is the length in bytes of the name returned in filename.
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]
flags
output
INT .EXT:ref:1
returns additional information about the file. The bits, when set to 1, indicate:
Reserved and undefined.<0:14>
File is an OSS file.<15>
FILE_GETINFO_ Procedure 405