Print this page
NEX-16818 Add fksmbcl development tool
NEX-17264 SMB client test tp_smbutil_013 fails after NEX-14666
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
and: (fix ref leaks)
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/head/signal.h
+++ new/usr/src/head/signal.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
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 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
27 27 *
28 28 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
29 29 * Use is subject to license terms.
30 30 */
31 31
32 32 #ifndef _SIGNAL_H
33 33 #define _SIGNAL_H
34 34
35 35 #include <sys/feature_tests.h>
36 36
37 37 #if defined(__EXTENSIONS__) || !defined(_STRICT_STDC) || \
38 38 defined(__XOPEN_OR_POSIX)
39 39 #include <sys/types.h> /* need pid_t/uid_t/size_t/clock_t/caddr_t/pthread_t */
40 40 #endif
41 41
42 42 #include <iso/signal_iso.h>
43 43 #include <sys/signal.h>
44 44
45 45 /*
46 46 * Allow global visibility for symbols defined in
47 47 * C++ "std" namespace in <iso/signal_iso.h>.
48 48 */
49 49 #if __cplusplus >= 199711L
50 50 using std::sig_atomic_t;
51 51 using std::signal;
52 52 using std::raise;
53 53 #endif
54 54
55 55 #ifdef __cplusplus
56 56 extern "C" {
57 57 #endif
58 58
59 59
60 60 extern const char **_sys_siglistp; /* signal descriptions */
61 61 extern const int _sys_siglistn; /* # of signal descriptions */
62 62
|
↓ open down ↓ |
62 lines elided |
↑ open up ↑ |
63 63 #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
64 64 #define _sys_siglist _sys_siglistp
65 65 #define _sys_nsig _sys_siglistn
66 66 #endif
67 67
68 68 #if defined(__EXTENSIONS__) || !defined(_STRICT_STDC) || \
69 69 defined(__XOPEN_OR_POSIX)
70 70 extern int kill(pid_t, int);
71 71 extern int sigaction(int, const struct sigaction *_RESTRICT_KYWD,
72 72 struct sigaction *_RESTRICT_KYWD);
73 -#ifndef _KERNEL
73 +#if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
74 74 extern int sigaddset(sigset_t *, int);
75 75 extern int sigdelset(sigset_t *, int);
76 76 extern int sigemptyset(sigset_t *);
77 77 extern int sigfillset(sigset_t *);
78 78 extern int sigismember(const sigset_t *, int);
79 79 #endif
80 80 extern int sigpending(sigset_t *);
81 81 extern int sigprocmask(int, const sigset_t *_RESTRICT_KYWD,
82 82 sigset_t *_RESTRICT_KYWD);
83 83 extern int sigsuspend(const sigset_t *);
84 84 #endif /* defined(__EXTENSIONS__) || !defined(_STRICT_STDC)... */
85 85
86 86 #if defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) && \
87 87 !defined(__XOPEN_OR_POSIX))
88 88 #include <sys/procset.h>
89 89 extern int gsignal(int);
90 90 extern int (*ssignal(int, int (*)(int)))(int);
91 91 extern int sigsend(idtype_t, id_t, int);
92 92 extern int sigsendset(const procset_t *, int);
93 93 extern int sig2str(int, char *);
94 94 extern int str2sig(const char *, int *);
95 95 #define SIG2STR_MAX 32
96 96 #endif /* defined(__EXTENSIONS__) || (!defined(_STRICT_STDC)... */
97 97
98 98 #if defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) && \
99 99 !defined(__XOPEN_OR_POSIX)) || defined(_XPG4_2)
100 100 extern void (*bsd_signal(int, void (*)(int)))(int);
101 101 extern int killpg(pid_t, int);
102 102 extern int siginterrupt(int, int);
103 103 extern int sigaltstack(const stack_t *_RESTRICT_KYWD, stack_t *_RESTRICT_KYWD);
104 104 extern int sighold(int);
105 105 extern int sigignore(int);
106 106 extern int sigpause(int);
107 107 extern int sigrelse(int);
108 108 extern void (*sigset(int, void (*)(int)))(int);
109 109 #endif /* defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) && ... */
110 110
111 111 /* Marked as LEGACY in SUSv2 and removed in SUSv3 */
112 112 #if defined(__EXTENSIONS__) || \
113 113 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
114 114 (defined(_XPG4_2) && !defined(_XPG6))
115 115 extern int sigstack(struct sigstack *, struct sigstack *);
116 116 #endif
117 117
118 118 #if defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) && \
119 119 !defined(__XOPEN_OR_POSIX)) || (_POSIX_C_SOURCE > 2)
120 120 #include <sys/siginfo.h>
121 121 #include <time.h>
122 122 extern int pthread_kill(pthread_t, int);
123 123 extern int pthread_sigmask(int, const sigset_t *_RESTRICT_KYWD,
124 124 sigset_t *_RESTRICT_KYWD);
125 125 extern int sigwaitinfo(const sigset_t *_RESTRICT_KYWD,
126 126 siginfo_t *_RESTRICT_KYWD);
127 127 extern int sigtimedwait(const sigset_t *_RESTRICT_KYWD,
128 128 siginfo_t *_RESTRICT_KYWD, const struct timespec *_RESTRICT_KYWD);
129 129 extern int sigqueue(pid_t, int, const union sigval);
130 130 #endif /* defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) && */
131 131
132 132 /*
133 133 * sigwait() prototype is defined here.
134 134 */
135 135
136 136 #if defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) && \
137 137 !defined(__XOPEN_OR_POSIX)) || (_POSIX_C_SOURCE - 0 >= 199506L) || \
138 138 defined(_POSIX_PTHREAD_SEMANTICS)
139 139
140 140 #if (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS)
141 141
142 142 #ifdef __PRAGMA_REDEFINE_EXTNAME
143 143 #pragma redefine_extname sigwait __posix_sigwait
144 144 extern int sigwait(const sigset_t *_RESTRICT_KYWD, int *_RESTRICT_KYWD);
145 145 #else /* __PRAGMA_REDEFINE_EXTNAME */
146 146
147 147 extern int __posix_sigwait(const sigset_t *_RESTRICT_KYWD,
148 148 int *_RESTRICT_KYWD);
149 149
150 150 #ifdef __lint
151 151 #define sigwait __posix_sigwait
152 152 #else /* !__lint */
153 153
154 154 static int
155 155 sigwait(const sigset_t *_RESTRICT_KYWD __setp, int *_RESTRICT_KYWD __signo)
156 156 {
157 157 return (__posix_sigwait(__setp, __signo));
158 158 }
159 159
160 160 #endif /* !__lint */
161 161 #endif /* __PRAGMA_REDEFINE_EXTNAME */
162 162
163 163 #else /* (_POSIX_C_SOURCE - 0 >= 199506L) || ... */
164 164
165 165 extern int sigwait(sigset_t *);
166 166
167 167 #endif /* (_POSIX_C_SOURCE - 0 >= 199506L) || ... */
168 168
169 169 #endif /* defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) ... */
170 170
171 171 #ifdef __cplusplus
172 172 }
173 173 #endif
174 174
175 175 #endif /* _SIGNAL_H */
|
↓ open down ↓ |
92 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX