NEST  2.6.0,not_revisioned_source_dir@0
psignal.h
Go to the documentation of this file.
1 /*
2  * psignal.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef PSIGNAL_H
24 #define PSIGNAL_H
25 
26 /* Implement Posix Conforming signal function
27  using Posix.1 sigaction
28 */
29 /*
30  The following is a POSIX.1 conforming implementation of
31  the ISO C signal() funtion.
32  Since Solaris 7 still sticks to the unreliable Signal mechanism
33  of Unix SVR4, we decide to implement a new version, using
34  the POSIX.1 sigaction function.
35  The implementation is taken from
36  Stevens, Richard W. (1993) "Advanced Programming in the UNIX Environment",
37  Addison Wesley Longman, Reading, MA
38 */
39 #ifndef _POSIX_SOURCE
40 #define _SYNOD__SET_POSIX_SOURCE
41 #define _POSIX_SOURCE
42 #endif
43 
44 
45 #include "config.h"
46 
47 
48 #ifdef HAVE_SIGUSR_IGNORED
49 #undef __PURE_CNAME
50 #include <signal.h>
51 #define __PURE_CNAME
52 #else
53 #include <signal.h>
54 #endif
55 
56 
57 
58 typedef void Sigfunc(int);
59 
60 
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64 
65 
66 
67 
68 extern int SLIsignalflag;
69 
71 
72 
73 void SLISignalHandler(int);
74 
75 #ifdef _SYNOD__SET_POSIX_SOURCE
76 #undef _SYNOD__SET_POSIX_SOURCE
77 #undef _POSIX_SOURCE
78 #endif
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif
void Sigfunc(int)
Definition: psignal.h:58
Sigfunc * posix_signal(int, Sigfunc *)
Definition: psignal.c:48
void SLISignalHandler(int)
Definition: psignal.c:78
int SLIsignalflag
Definition: psignal.c:33