在线文档教程
C++
应用 | Utilities

SIGILL

SIGTERM,SIGSEGV,SIGINT,SIGILL,SIGABRT,SIGFPE

Defined in header
#define SIGTERM /*implementation defined*/
#define SIGSEGV /*implementation defined*/
#define SIGINT /*implementation defined*/
#define SIGILL /*implementation defined*/
#define SIGABRT /*implementation defined*/
#define SIGFPE /*implementation defined*/

上述宏常量中的每一个扩展为具有不同值的整数常量表达式,表示发送给程序的不同信号。

ConstantExplanation
SIGTERMtermination request, sent to the program
SIGSEGVinvalid memory access (segmentation fault)
SIGINTexternal interrupt, usually initiated by the user
SIGILLinvalid program image, such as invalid instruction
SIGABRTabnormal termination condition, as is e.g. initiated by std::abort()
SIGFPEerroneous arithmetic operation such as divide by zero

注记

附加信号名称由POSIX指定...

另见

signalsets a signal handler for particular signal (function)
raiseruns the signal handler for particular signal (function)

C信号类型文档

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/实用工具/Program/SIG[医]类型