Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual522629-013
3-23
CHECK^FILE Procedure
Table 3-3. CHECK^FILE Operations That Return Addresses (page1of2)
operation
State
of File
ret-addr (for native callers) retval (for other
callers)
FILE^BWDLINKFCB Any Returns the address of the FCB pointed to
by the backward link pointer within the
FCB. This indicates the linked-to FCBs that
need to be checkpointed after an
OPEN^FILE or CLOSE^FILE call.
FILE^DUPFILE Open Returns the word address of the duplicate
file FCB. 0 is returned if there is no
duplicate file.
FILE^ERROR^ADDR Any Returns the word address within the FCB
where the error code is stored.
FILE^ERRORFILE Any Returns the word address within the FCB
of the reporting error file. 0 is returned if
there is none.
FILE^FCB^ADDR Any Returns the address of the FCB.
FILE^FILENAME^ADDR Any Returns the word address within the FCB
of the physical file name.
FILE^FNUM^ADDR Any Returns the word address within the FCB
of the file number.
FILE^FWDLINKFCB Any Returns the address of the FCB pointed to
by the forward link pointer within the FCB.
This value indicates the linked-to FCBs
that need to be checkpointed after an
OPEN^FILE or CLOSE^FILE call.
FILE^LOGICALFILENAME^A
DDR
Any Returns the word address within the FCB
of the logical file name. The logical file
name is encoded as follows:
Byte Number Contents
[0] <len> is the
length of the
logical file name
in bytes {0:8}
[1] through [8] <logical file
name>