4 Error and Signal Handling

Table 4-1 lists and describes all the error- and signal-handling functions found in the DEC C Run-Time Library (RTL). For more detailed information on each function, see the Reference Section.

Table 4-1 Error- and Signal-Handling Functions

Function  Description 
abort  Raises the signal SIGABRT that terminates the execution of the program. 
assert  Puts diagnostics into programs. 
atexit  Registers a function to be called at program termination. 
exit, _ exit  Terminates the current program. 
perror  Writes a short error message to stderr describing the current errno value. 
strerror  Maps the error code in errno to an error message string. 
alarm  Sends the signal SIGALARM to the invoking process after the number of seconds indicated by its argument has elapsed. 
gsignal  Generates a specified software signal. 
kill  Sends a SIGKILL signal to the process specified by a process ID. 
longjmp  Transfers control from a nested series of function invocations back to a predefined point without returning normally. 
pause  Causes the process to wait until it receives a signal. 
raise  Generates a specified signal. 
setjmp  Establishes the context for a later transfer of control from a nested series of function invocations, without returning normally. 
sigaction  Specifies the action to take upon delivery of a signal. 
sigaddset  Adds the specified individual signal. 
sigblock  Causes the signals in its argument to be added to the current set of signals being blocked from delivery. 
sigdelset  Deletes a specified individual signal. 
sigemptyset  Initializes the signal set to exclude all signals. 
sigfillset  Initializes the signal set to include all signals. 
sigismember  Tests whether a specified signal is a member of the signal set. 
siglongjmp  Nonlocal goto with signal handling. 
sigmask  Constructs the mask for a given signal number. 
signal  Catches or ignores a signal. 
sigpause  Blocks a specified set of signals and then waits for a signal that was not blocked. 
sigpending  Examines pending signals. 
sigprocmask  Sets the current signal mask. 
sigsetjmp  Sets jump point for a nonlocal goto. 
sigsetmask  Establishes the signals that are blocked from delivery. 
sigstack  Defines an alternate stack on which to process signals. 
sigsuspend  Atomically changes the set of blocked signals and waits for a signal.  
sigvec  Permanently assigns a handler for a specific signal. 
ssignal  Allows you to specify the action to be taken when a particular signal is raised. 
VAXC$ESTABLISH  Establishes an application exception handler in a way that is compatible with DEC C RTL exception handling.  


Previous Page | Next Page | Table of Contents | Index