Guardian C Library Calls Reference Manual

<memoryh>
2-10 128833Guardian TNS C Library Calls Reference Manual
Summary of Library Header Files
<memoryh>
The header memoryh declares three memory-management functions:
movmem repmem setmem
<nonstoph>
The header nonstoph declares six functions that support fault tolerant programming in
Cprograms:
__ns_fget_file_state __ns_fset_file_state
__ns_fget_file_open_state __ns_backup_fopen
__ns_fopen_special __ns_start_backup
The header also declares two structures:
__ns_std_io_file_open_state __ns_std_io_file_state
The nonstoph header file is a Tandem extension. Refer to the Guardian Programmer’s
Guide for details on using these library calls for fault tolerant programming in C.
<setjmph>
The header setjmph declares the functions setjmp and longjmp, and the type jmp_buf.
Together, these entities enable you to bypass normal control flow and make nonlocal
jumps.
<signalh>
The header signalh declares the type sig_atomic_t, declares three functions, and defines
several macros for handling various “signals” that are exception conditions that are
generated by abnormal events.
The functions declared in signalh are:
signal raise _is_system_trap
The signal and raise functions are standard C functions. The _is_system_trap function is
a Tandem supplementary function. All three functions are described in Section 3,
“Reference to Library Calls.
The standard C signal handlers that are defined as macros in signalh are:
SIG_DFL SIG_IGN SIG_ERR
The ISO/ANSI standard signals that are defined in signalh are:
SIGABRT SIGINT SIGTERM SIGFPE SIGILL SIGSEGV
The Tandem defined signals that are defined in signalh are:
SIGSTK SIGTIMEOUT SIGMEMMGR
SIGNOMEM SIGMEMERR SIGLIMIT