raise

Generates a specified software signal. Generating a signal causes the action routine established by the signal, ssignal, or sigvec function to be invoked.

Format

#include  <signal.h>

int raise  (int sig); 
           (ANSI C)

int raise  (int sig[, int sigcode]); (DEC C Extension)

Arguments

sig
The signal to be generated.
sigcode
An optional signal code, available only when not compiling in strict ANSI C mode. For example, signal SIGFPE-the arithmetic trap signal-has 10 different codes, each representing a different type of arithmetic trap.

The signal codes can be represented by mnemonics or numbers. The arithmetic trap codes are represented by the numbers 1 to 10; the SIGILL codes are represented by the numbers 0 to 2. The code values are defined in the <signal.h> header file. See Tables 4-4 and 4-5 for a list of signal mnemonics, codes, and corresponding OpenVMS exceptions.

Description

Calling this function has one of the following results:

See Chapter 4 for more information on signal processing. See also gsignal, signal, ssignal, and sigvec in this section.

Return Values
If successful. 
nonzero  If unsuccessful. 


Previous Page | Next Page | Table of Contents | Index