名稱空間
變體
操作

標準庫標頭檔案 <signal.h>

來自 cppreference.com

此標頭檔案是程式支援庫的一部分。

目錄

型別

可以從非同步訊號處理程式以原子實體形式訪問的整數型別
(typedef)

定義訊號型別
(宏常量) [編輯]
定義訊號處理策略
(宏常量) [編輯]
遇到錯誤
(宏常量) [編輯]

函式

為特定訊號設定訊號處理程式
(函式) [編輯]
為特定訊號執行訊號處理程式
(函式) [編輯]

[編輯] 概要

typedef sig_atomic_t /* see description */;
 
void (*signal(int sig, void (*func)(int)))(int);
int raise(int sig);
 
#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 */