标准库头文件 <csignal>
来自 cppreference.cn
此头文件最初在 C 标准库中为 <signal.h>。
此头文件是程序支持库的一部分。
类型 | ||
可以从异步信号处理程序中作为原子实体访问的整数类型 (typedef) | ||
宏 | ||
定义信号类型 (宏常量) | ||
定义信号处理策略 (宏常量) | ||
signal 的返回值,指定遇到错误 (宏常量) | ||
函数 | ||
为特定信号设置信号处理程序 (函数) | ||
为特定信号运行信号处理程序 (函数) |
[编辑] 概要
namespace std { using sig_atomic_t = /*see description*/ ; extern "C" using /*signal-handler*/ = void(int); // exposition only /*signal-handler*/ * signal(int sig, /*signal-handler*/ * func); } #define SIG_DFL /* see description */ #define SIG_ERR /* see description */ #define SIG_IGN /* see description */ #define SIGABRT /* see description */ #define SIGFPE /* see description */ #define SIGILL /* see description */ #define SIGINT /* see description */ #define SIGSEGV /* see description */ #define SIGTERM /* see description */