名稱空間
變體
操作

標準庫標頭檔案 <csignal>

來自 cppreference.com
 
 
標準庫標頭檔案
演算法
<algorithm>
<numeric>
字串
<cctype>
<cstring>
<cuchar> (C++11)
<cwchar>
<cwctype>
<string_view> (C++17)
<string>
文字處理
<clocale>
<codecvt> (C++11/17/26*)
<locale>
<regex> (C++11)
<text_encoding> (C++26)   
數值
<cfenv> (C++11)
<cmath>
<complex>
<linalg> (C++26)
<numbers> (C++20)
<random> (C++11)
<simd> (C++26)
<valarray>
時間
<chrono> (C++11)
<ctime>
C 相容性
<ccomplex> (C++11/17/20*)
<ciso646> (直到 C++20)
<cstdalign> (C++11/17/20*)
<cstdbool> (C++11/17/20*)
<ctgmath> (C++11/17/20*)
 

此標頭檔案最初是 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 */