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