HP 3000 Manuals

raise [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

raise 

Causes a signal to be raised.

Syntax 

     #include <signal.h>
     int raise (int sig);

Parameters 

sig           A signal number specifying the signal to be raised.

Return Values 

0             The signal was successfully raised.

!=0           The signal was not raised.

Description 

The raise function causes the signal specified in sig to be raised to the
calling process.

The name and meaning of each signal is given below:

Name          Description 
SIGABRT       Abnormal termination, (for example, by the abort function).
SIGFPE        An erroneous arithmetic operation, (for example, divide by
              0).
SIGILL        An illegal instruction was executed (possibly after a
              jump).
SIGINT        An interactive interrupt signal was received.
SIGSEGV       An invalid access to storage.
SIGTERM       A termination request was sent to the program.


NOTE Signals are provided for conformance with ANSI C. However, the only way to generate a signal on MPE/iX is by an explicit call to the raise function. For information on a more comprehensive facility for handling exceptions, see the Trap Handling Programmer's Guide.
Examples Refer to the example located in the signal function description. See Also signal(), ANSI C 4.7.2.1


MPE/iX 5.0 Documentation