Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual522629-013
3-16
CHECK^FILE Procedure
CHECK^FILE Procedure
Summary
Syntax for Native C Programs
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
The CHECK^FILE procedure checks the file characteristics of a specified file.
CHECK^FILE is a sequential I/O (SIO) procedure and can be used only with files that
have been opened by OPEN^FILE.
Syntax for Native C Programs
Syntax for TNS C Programs
Syntax for TAL Programmers
For pTAL callers, the procedure definition is:
For other callers, the procedure definition is:
#include <cextdecs(CHECK_FILE)>
short CHECK_FILE ( short { _near *common-fcb }
{ _near *file-fcb }
,short operation
,[ short _near *ret-addr ] );
#include <cextdecs(CHECK_FILE)>
short CHECK_FILE ( short { _near *common-fcb }
{ _near *file-fcb }
,short operation );
retval := CHECK^FILE ( { common-fcb } ! i
{ file-fcb } ! i
,operation ! i
,[ ret-addr ] ); ! o
retval := CHECK^FILE ( { common-fcb } ! i
{ file-fcb } ! i
,operation ); ! i