228 #endif /* defined(__EXTENSIONS__) || defined(_KERNEL) ... */
229
230 /* Added as per XPG4v2 */
231 #if defined(__EXTENSIONS__) || defined(_KERNEL) || \
232 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
233 defined(_XPG4_2)
234 struct sigstack {
235 void *ss_sp;
236 int ss_onstack;
237 };
238 #endif /* defined(__EXTENSIONS__) || defined(_KERNEL) ... */
239
240 /*
241 * For definition of ucontext_t; must follow struct definition
242 * for sigset_t
243 */
244 #if defined(_XPG4_2)
245 #include <sys/ucontext.h>
246 #endif /* defined(_XPG4_2) */
247
248 #ifdef _KERNEL
249 #include <sys/t_lock.h>
250
251 extern const k_sigset_t nullsmask; /* a null signal mask */
252 extern const k_sigset_t fillset; /* all signals, guaranteed contiguous */
253 extern const k_sigset_t cantmask; /* cannot be caught or ignored */
254 extern const k_sigset_t cantreset; /* cannot be reset after catching */
255 extern const k_sigset_t ignoredefault; /* ignored by default */
256 extern const k_sigset_t stopdefault; /* stop by default */
257 extern const k_sigset_t coredefault; /* dumps core by default */
258 extern const k_sigset_t holdvfork; /* held while doing vfork */
259
260 #define sigmask(n) ((unsigned int)1 << (((n) - 1) & (32 - 1)))
261 #define sigword(n) (((unsigned int)((n) - 1))>>5)
262
263 #if ((MAXSIG > (2 * 32)) && (MAXSIG <= (3 * 32)))
264 #define FILLSET0 0xffffffffu
265 #define FILLSET1 0xffffffffu
266 #define FILLSET2 ((1u << (MAXSIG - 64)) - 1)
267 #else
268 #error "fix me: MAXSIG out of bounds"
|
228 #endif /* defined(__EXTENSIONS__) || defined(_KERNEL) ... */
229
230 /* Added as per XPG4v2 */
231 #if defined(__EXTENSIONS__) || defined(_KERNEL) || \
232 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
233 defined(_XPG4_2)
234 struct sigstack {
235 void *ss_sp;
236 int ss_onstack;
237 };
238 #endif /* defined(__EXTENSIONS__) || defined(_KERNEL) ... */
239
240 /*
241 * For definition of ucontext_t; must follow struct definition
242 * for sigset_t
243 */
244 #if defined(_XPG4_2)
245 #include <sys/ucontext.h>
246 #endif /* defined(_XPG4_2) */
247
248 #if defined(_KERNEL) || defined(_FAKE_KERNEL)
249 #include <sys/t_lock.h>
250
251 extern const k_sigset_t nullsmask; /* a null signal mask */
252 extern const k_sigset_t fillset; /* all signals, guaranteed contiguous */
253 extern const k_sigset_t cantmask; /* cannot be caught or ignored */
254 extern const k_sigset_t cantreset; /* cannot be reset after catching */
255 extern const k_sigset_t ignoredefault; /* ignored by default */
256 extern const k_sigset_t stopdefault; /* stop by default */
257 extern const k_sigset_t coredefault; /* dumps core by default */
258 extern const k_sigset_t holdvfork; /* held while doing vfork */
259
260 #define sigmask(n) ((unsigned int)1 << (((n) - 1) & (32 - 1)))
261 #define sigword(n) (((unsigned int)((n) - 1))>>5)
262
263 #if ((MAXSIG > (2 * 32)) && (MAXSIG <= (3 * 32)))
264 #define FILLSET0 0xffffffffu
265 #define FILLSET1 0xffffffffu
266 #define FILLSET2 ((1u << (MAXSIG - 64)) - 1)
267 #else
268 #error "fix me: MAXSIG out of bounds"
|