Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
_csignal.h
Go to the documentation of this file.
1// -*- C++ -*-
2
30#ifndef _RWSTD_CSIGNAL_H_INCLUDED
31#define _RWSTD_CSIGNAL_H_INCLUDED
32
33
34#include <rw/_defs.h>
35
36
38
39#ifndef SIGABRT
40# define SIGABRT _RWSTD_SIGABRT
41#endif // SIGABRT
42
43#ifndef SIGFPE
44# define SIGFPE _RWSTD_SIGFPE
45#endif // SIGFPE
46
47#ifndef SIGILL
48# define SIGILL _RWSTD_SIGILL
49#endif // SIGILL
50
51#ifndef SIGINT
52# define SIGINT _RWSTD_SIGINT
53#endif // SIGINT
54
55#ifndef SIGSEGV
56# define SIGSEGV _RWSTD_SIGSEGV
57#endif // SIGSEGV
58
59#ifndef SIGTERM
60# define SIGTERM _RWSTD_SIGTERM
61#endif // SIGTERM
62
63
64extern "C" {
65
66#ifdef _RWSTD_SIG_ATOMIC_T
67typedef _RWSTD_SIG_ATOMIC_T sig_atomic_t;
68#else
69typedef long sig_atomic_t;
70#endif // _RWSTD_SIG_ATOMIC_T
71
72
73// helper type (necessary in order to be extern "C")
74typedef void __rw_sighandler_t (int);
75
76#ifndef SIG_DFL
77# define SIG_DFL \
78 _RWSTD_REINTERPRET_CAST (_STD::__rw_sighandler_t*, _RWSTD_SIG_DFL)
79#endif // SIG_DFL
80
81#ifndef SIG_ERR
82# define SIG_ERR \
83 _RWSTD_REINTERPRET_CAST (_STD::__rw_sighandler_t*, _RWSTD_SIG_ERR)
84#endif // SIG_ERR
85
86#ifndef SIG_IGN
87# define SIG_IGN \
88 _RWSTD_REINTERPRET_CAST (_STD::__rw_sighandler_t*, _RWSTD_SIG_IGN)
89#endif // SIG_IGN
90
91
92void (*signal(int, void (*)(int))) (int);
93int raise (int);
94
95} // extern "C"
96
97
98} // namespace std
99
100
101#endif // _RWSTD_CSIGNAL_H_INCLUDED
#define _RWSTD_NAMESPACE(name)
Definition _defs.h:567
Definition json.h:5363