Guardian Procedure Calls Reference Manual

RESETSYNC Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameter
Condition Code Settings
Considerations
Example
Summary
The RESETSYNC procedure is used by the backup process of a process pair after a failure of the
primary process. With this procedure, a different series of operations might be performed from
those performed by the primary before its failure.
The RESETSYNC procedure clears a process pair's file synchronization block so that the operations
performed by the backup are not erroneously related to the operations just completed by the
primary process. It is typically used for open files whose file synchronization blocks are not
checkpointed after the most recent stack checkpoint.
NOTE: Typically, RESETSYNC is not called directly by application programs. Instead, it is called
indirectly by CHECKMONITOR.
Syntax for C Programmers
#include <cextdecs(RESETSYNC)>
_cc_status RESETSYNC ( short filenum );
The function value returned by RESETSYNC, which indicates the condition code, can be
interpreted by _status_lt() ,_status_eq(), or _status_gt() (defined in the file
tal.h).
Syntax for TAL Programmers
CALL RESETSYNC ( filenum ); ! i
Parameter
filenum
input
INT:value
is the number of an open file whose synchronization block is to be cleared.
Condition Code Settings
indicates that an error occurred (call FILE_GETINFO_ or FILEINFO).< (CCL)
indicates that RESETSYNC is successful.= (CCE)
indicates that the file is not a disk file.> (CCG)
1248 Guardian Procedure Calls (R)