TNS/R Native Application Migration Guide
Guardian API Migration Tasks
TNS/R Native Application Migration Guide—523745-001
9-3
CHECKPOINT
•
HP signals extensions to the POSIX.1 standard.
These extensions are especially written for applications that focus on handling
signals indicating conditions known as traps in TNS processes (those applications
that call ARMTRAP). These procedures can be called in pTAL, C, and C++.
These procedures include sigactioninit(), sigactionrestore(), and
sigactionsupplant() in C and SIGACTION_INIT_, SIGACTION_RESTORE_,
and SIGACTION_SUPPLANT_ in pTAL.
The HP signals extensions are provided as migration and convenience tools that allow
native processes to catch signals corresponding to trap conditions in TNS processes.
The HP signals extensions provide shortcuts to the same base functions provided by
the standard signals API.
If you are concerned about conforming to the POSIX.1 standard and application
portability, use the standard functions. If you are mainly interested in the performance
gains of converting from TNS to native processes but want to focus on handling those
signals known as trap conditions in TNS processes, use the signals extensions.
See the Guardian Programmer’s Guide for information on writing signal handlers.
CHECKPOINT
The CHECKPOINT procedure is called by a primary process to send information about
its current executing state to its backup process.
Native processes cannot call the CHECKPOINT procedure. Replace calls to the
CHECKPOINT procedure with calls to the CHECKPOINTX procedure. CHECKPOINTX
is the same as CHECKPOINT, except for an additional optional parameter to allow
checkpointing data in extended data segments.
Because of differences between the TNS and native stack architecture, additional
changes might be required. See the CHECKPOINTX procedure in the Guardian
Procedure Calls Reference Manual for details.
CHECKPOINTMANY
The CHECKPOINTMANY procedure is called by a primary process to send information
about its current executing state to its backup process. The CHECKPOINTMANY
procedure is used in place of the CHECKPOINT procedure when there are more than
13 pieces of information to be sent.
Native processes cannot call the CHECKPOINTMANY procedure. Replace calls to the
CHECKPOINTMANY procedure with calls to the CHECKPOINTMANYX procedure.
CHECKPOINTMANYX is the same as CHECKPOINTMANY, except for an additional
optional parameter to allow checkpointing data in extended data segments.
Because of differences between the TNS and native stack architecture, additional
changes might be required. See the CHECKPOINTMANYX procedure in the Guardian
Procedure Calls Reference Manual for details.