Debian Codegraph @

headers/csignal

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_CSIGNAL_H
17 #define CPPREFERENCE_CSIGNAL_H
18
19 // impl defined
20 #define SIG_DFL 0
21 #define SIG_IGN 0
22 #define SIG_ERR 0
23 #define SIGTERM 0
24 #define SIGSEGV 0
25 #define SIGINT 0
26 #define SIGILL 0
27 #define SIGABRT 0
28 #define SIGFPE 0
29
30 namespace std {
31
32 typedef int sig_atomic_t; // actually unspecified
33
34 void (*signal(int sig, void (*handler)(int)))(int);
35 int raise(int sig);
36
37 } // namespace std
38
39 #endif // CPPREFERENCE_CSIGNAL_H
40
41