]> pd.if.org Git - pdclib/blob - includes/signal.h
Re-import from Subversion.
[pdclib] / includes / signal.h
1 /* ----------------------------------------------------------------------------
2  * $Id$
3  * ----------------------------------------------------------------------------
4  * Public Domain C Library - http://pdclib.sourceforge.net
5  * This code is Public Domain. Use, modify, and redistribute at will.
6  * ----------------------------------------------------------------------------
7  * Signal handling
8  * --------------------------------------------------------------------------*/
9
10 #ifndef _SIGNAL_H
11 #define _SIGNAL_H _SIGNAL_H
12
13 #ifndef _NULL
14 #include "__intern.h"
15 #endif
16
17 /* TODO: Documentation */
18
19 /* ----------------------------------------------------------------------------
20  * MACROS
21  * --------------------------------------------------------------------------*/
22
23 #define SIGABRT _SIGABRT
24 #define SIGFPE  _SIGFPE
25 #define SIGILL  _SIGILL
26 #define SIGINT  _SIGINT
27 #define SIGSEGV _SIGSEGV
28 #define SIGTERM _SIGTERM
29 #define SIG_DFL _SIG_DFL
30 #define SIG_ERR _SIG_ERR
31 #define SIG_IGN _SIG_IGN
32
33 /* ----------------------------------------------------------------------------
34  * TYPEDEFS
35  * --------------------------------------------------------------------------*/
36
37 #ifndef _SIG_ATOMIC_T
38 #define _SIG_ATOMIC_T _SIG_ATOMIC_T
39 typedef __sig_atomic_t sig_atomic_t;
40 #endif /* _SIG_ATOMIC_T
41
42 /* ----------------------------------------------------------------------------
43  * FUNCTIONS
44  * --------------------------------------------------------------------------*/
45
46 int raise( int sig );                                        /* TODO */
47 void ( * signal( int sig, void ( *func )( int ) ) ) ( int ); /* TODO */
48
49 #endif /* _SIGNAL_H */