http://zh.cppreference.com/w/c/program/SIG_types
|
定义于头文件
<signal.h> | ||
|
#define SIGTERM /*implementation defined*/
| ||
|
#define SIGSEGV /*implementation defined*/
| ||
|
#define SIGINT /*implementation defined*/
| ||
|
#define SIGILL /*implementation defined*/
| ||
|
#define SIGABRT /*implementation defined*/
| ||
|
#define SIGFPE /*implementation defined*/
| ||
上述每一个宏常量都展开成各不相同值的整数常量表达式,表示发送给程序的不同信号。
| 常量 | 解释 |
SIGTERM | 发送给程序的终止请求 |
SIGSEGV | 非法内存访问(段错误) |
SIGINT | 外部中断,通常为用户所发动 |
SIGILL | 非法程序映像,例如非法指令 |
SIGABRT | 异常终止条件,例如abort()所发动者 |
SIGFPE | 错误的算术运算,例如除以零 |
本文介绍了在<signal.h>头文件中定义的一系列信号处理宏常量,包括SIGTERM(终止请求)、SIGSEGV(非法内存访问)、SIGINT(外部中断)、SIGILL(非法程序映像)、SIGABRT(异常终止)和SIGFPE(错误的算术运算)等,并解释了这些信号的含义。
1541

被折叠的 条评论
为什么被折叠?



