2 * D header file for C99.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: ISO/IEC 9899:1999 (E)
9 module core.stdc.signal;
13 // this should be volatile
14 alias int sig_atomic_t;
16 private alias void function(int) sigfn_t;
20 const SIG_ERR = cast(sigfn_t) -1;
21 const SIG_DFL = cast(sigfn_t) 0;
22 const SIG_IGN = cast(sigfn_t) 1;
25 const SIGABRT = 6; // Abnormal termination
26 const SIGFPE = 8; // Floating-point error
27 const SIGILL = 4; // Illegal hardware instruction
28 const SIGINT = 2; // Terminal interrupt character
29 const SIGSEGV = 11; // Invalid memory reference
30 const SIGTERM = 15; // Termination
34 const SIG_ERR = cast(sigfn_t) -1;
35 const SIG_DFL = cast(sigfn_t) 0;
36 const SIG_IGN = cast(sigfn_t) 1;
39 const SIGABRT = 22; // Abnormal termination
40 const SIGFPE = 8; // Floating-point error
41 const SIGILL = 4; // Illegal hardware instruction
42 const SIGINT = 2; // Terminal interrupt character
43 const SIGSEGV = 11; // Invalid memory reference
44 const SIGTERM = 15; // Termination
47 sigfn_t signal(int sig, sigfn_t func);