C Programming on the IBM PC (C Programmers Reference Guide Series)
|
|
raise
#include <signal.h>int raise(int signal);
The raise( ) function sends the signal specified by signal to the executing program. It returns zero if successful and nonzero otherwise. Its uses the header <signal.h>, or <csignal> in a C++ program.
The following signals are defined by Standard C. Of course, your compiler is free to provide additional signals:
Macro | Meaning |
---|---|
SIGABRT | Termination error |
SIGFPE | Floating-point error |
SIGILL | Bad instruction |
SIGINT | User pressed CTRL-C |
SIGSEGV | Illegal memory access |
SIGTERM | Terminate program |
A related function is signal( ).
|
|