標準庫標頭檔案 <csignal>
來自 cppreference.com
此標頭檔案最初是 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 */