7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
24
25
26 /*
27 * Copyright (c) 1998-1999, by Sun Microsystems, Inc.
28 * All rights reserved.
29 */
30
31 /*
32 * An application should not include this header directly. Instead it
33 * should be included only through the inclusion of other Sun headers.
34 *
35 * The contents of this header is limited to identifiers specified in the
36 * C Standard. Any new identifiers specified in future amendments to the
37 * C Standard must be placed in this header. If these new identifiers
38 * are required to also be in the C++ Standard "std" namespace, then for
39 * anything other than macro definitions, corresponding "using" directives
40 * must also be added to <signal.h>.
41 */
42
43 #ifndef _ISO_SIGNAL_ISO_H
44 #define _ISO_SIGNAL_ISO_H
45
46 #pragma ident "%Z%%M% %I% %E% SMI"
47 /* SVr4.0 1.5.3.4 */
48
49 #include <sys/iso/signal_iso.h>
50
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54
55 #if __cplusplus >= 199711L
56 namespace std {
57 #endif
58
59 typedef int sig_atomic_t;
60
61 #if defined(__STDC__)
62
63 #ifdef __cplusplus
64 extern "C" SIG_PF signal(int, SIG_PF);
65 #else
66 extern void (*signal(int, void (*)(int)))(int);
67 #endif
68 extern int raise(int);
69
70 #else /* __STDC__ */
71
72 extern void(*signal())();
73 extern int raise();
74
75 #endif /* __STDC__ */
76
77 #if __cplusplus >= 199711L
78 }
79 #endif /* end of namespace std */
80
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif /* _ISO_SIGNAL_ISO_H */
|
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
24
25
26 /*
27 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
28 *
29 * Copyright (c) 1998-1999, by Sun Microsystems, Inc.
30 * All rights reserved.
31 */
32
33 /*
34 * An application should not include this header directly. Instead it
35 * should be included only through the inclusion of other Sun headers.
36 *
37 * The contents of this header is limited to identifiers specified in the
38 * C Standard. Any new identifiers specified in future amendments to the
39 * C Standard must be placed in this header. If these new identifiers
40 * are required to also be in the C++ Standard "std" namespace, then for
41 * anything other than macro definitions, corresponding "using" directives
42 * must also be added to <signal.h>.
43 */
44
45 #ifndef _ISO_SIGNAL_ISO_H
46 #define _ISO_SIGNAL_ISO_H
47
48 #include <sys/iso/signal_iso.h>
49
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53
54 #if __cplusplus >= 199711L
55 namespace std {
56 #endif
57
58 typedef int sig_atomic_t;
59
60 #ifdef __cplusplus
61 extern "C" SIG_PF signal(int, SIG_PF);
62 #else
63 extern void (*signal(int, void (*)(int)))(int);
64 #endif
65 extern int raise(int);
66
67 #if __cplusplus >= 199711L
68 }
69 #endif /* end of namespace std */
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 #endif /* _ISO_SIGNAL_ISO_H */
|