Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual—522629-013
3-20
CHECK^FILE Procedure
FILE^FILEINFO Open <file-info>, where
<file-info>.<0:3> = File type:
0 = Unstructured
1=Relative
2 = Entry-sequenced
3 = Key-sequenced
4=EDIT
8 = Odd unstructured
.<4:9> = Device type
.<10:15>= Device subtype
The device type and subtype are described
in
Appendix A, Device Types and Subtypes.
File types 0-3 are described in the
Enscribe Programmer’s Guide.
FILE^FNUM Open Returns the file number. If the file is not
open, the file number is -1.
FILE^LEVEL3^SPOOLING Open 0 if level-3 spooling is disabled.
1 if level-3 spooling is enabled.
See OPEN^FILE for details.
FILE^LOGIOOUT Open 0 if there is no logical I/O outstanding.
1 if a logical read is outstanding.
2 if a logical write is outstanding.
FILE^OPENACCESS Any Returns the open access for the file. See
SET^FILE for the format.
FILE^OPENEXCLUSION Open Returns the open exclusion for the file.
See SET^FILE for format.
FILE^PHYSIOOUT Open 0 to indicate that there is no outstanding
physical I/O operation.
1 if a physical I/O operation is
outstanding.
FILE^PRIEXT Any
Returns the file's primary extent size in
pages. The
primary extent size cannot
be greater than 65,535 pages.
Otherwise, error 538 is returned.
Table 3-2. CHECK^FILE Operations That Return Values (page 3 of 5)
operation
State
of File
retval