raise

Triggers an interrupt.

int raise (int s);

Required Header
<signal.h>

Return Value

This function returns 0 on success. -1 indicates an error.

Parameters

s

  The signal constant to be raised

Remarks

The raise function causes the signal handler function specified by s to be executed. The following constants for s are defined:

#define SIGINT  2  /* CTRL+C interrupt       */
#define SIGILL  4  /* Illegal instruction    */
#define SIGABRT 6  /* Abnormal Termination   */
#define SIGFPE  8  /* Floating-point error   */
#define SIGSEGV 11 /* Illegal storage access */
#define SIGTERM 15 /* Termination request    */
In JCC no hardware signals are captured or signalled by the library, these routines have been added for compatability only.

By default, all signals have been set to exit the running program, or terminate the running thread.

Signal Processing

See Also    signal