17c478bdstevel@tonic-gate/*
27c478bdstevel@tonic-gate * CDDL HEADER START
37c478bdstevel@tonic-gate *
47c478bdstevel@tonic-gate * The contents of this file are subject to the terms of the
5f841f6araf * Common Development and Distribution License (the "License").
6f841f6araf * You may not use this file except in compliance with the License.
77c478bdstevel@tonic-gate *
87c478bdstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bdstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
107c478bdstevel@tonic-gate * See the License for the specific language governing permissions
117c478bdstevel@tonic-gate * and limitations under the License.
127c478bdstevel@tonic-gate *
137c478bdstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
147c478bdstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bdstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
167c478bdstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
177c478bdstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bdstevel@tonic-gate *
197c478bdstevel@tonic-gate * CDDL HEADER END
207c478bdstevel@tonic-gate */
21f841f6araf
227c478bdstevel@tonic-gate/*
23bdf0047Roger A. Faulkner * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
247c478bdstevel@tonic-gate * Use is subject to license terms.
257c478bdstevel@tonic-gate */
267c478bdstevel@tonic-gate
277c478bdstevel@tonic-gate/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28b4203d7Marcel Telka/*	  All Rights Reserved	*/
297c478bdstevel@tonic-gate
307c478bdstevel@tonic-gate/*
317c478bdstevel@tonic-gate * University Copyright- Copyright (c) 1982, 1986, 1988
327c478bdstevel@tonic-gate * The Regents of the University of California
337c478bdstevel@tonic-gate * All Rights Reserved
347c478bdstevel@tonic-gate *
357c478bdstevel@tonic-gate * University Acknowledgment- Portions of this document are derived from
367c478bdstevel@tonic-gate * software developed by the University of California, Berkeley, and its
377c478bdstevel@tonic-gate * contributors.
387c478bdstevel@tonic-gate */
397c478bdstevel@tonic-gate
407c478bdstevel@tonic-gate#ifndef _SYS_SIGNAL_H
417c478bdstevel@tonic-gate#define	_SYS_SIGNAL_H
427c478bdstevel@tonic-gate
437c478bdstevel@tonic-gate#include <sys/feature_tests.h>
447c478bdstevel@tonic-gate#include <sys/iso/signal_iso.h>
457c478bdstevel@tonic-gate
467c478bdstevel@tonic-gate#ifdef	__cplusplus
477c478bdstevel@tonic-gateextern "C" {
487c478bdstevel@tonic-gate#endif
497c478bdstevel@tonic-gate
507c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || defined(_KERNEL) || !defined(_STRICT_STDC) || \
517c478bdstevel@tonic-gate	defined(__XOPEN_OR_POSIX)
527c478bdstevel@tonic-gate
537c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || defined(_KERNEL) || \
547c478bdstevel@tonic-gate	(!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
557c478bdstevel@tonic-gate	(_POSIX_C_SOURCE > 2) || defined(_XPG4_2)
567c478bdstevel@tonic-gate/*
577c478bdstevel@tonic-gate * We need <sys/siginfo.h> for the declaration of siginfo_t.
587c478bdstevel@tonic-gate */
597c478bdstevel@tonic-gate#include <sys/siginfo.h>
607c478bdstevel@tonic-gate#endif
617c478bdstevel@tonic-gate
627c478bdstevel@tonic-gate/* Duplicated in <sys/ucontext.h> as a result of XPG4v2 requirements */
637c478bdstevel@tonic-gate#ifndef	_SIGSET_T
647c478bdstevel@tonic-gate#define	_SIGSET_T
657c478bdstevel@tonic-gatetypedef struct {		/* signal set type */
667c478bdstevel@tonic-gate	unsigned int	__sigbits[4];
677c478bdstevel@tonic-gate} sigset_t;
687c478bdstevel@tonic-gate#endif	/* _SIGSET_T */
697c478bdstevel@tonic-gate
707c478bdstevel@tonic-gatetypedef	struct {
71bdf0047Roger A. Faulkner	unsigned int	__sigbits[3];
727c478bdstevel@tonic-gate} k_sigset_t;
737c478bdstevel@tonic-gate
747c478bdstevel@tonic-gate/*
757c478bdstevel@tonic-gate * The signal handler routine can have either one or three arguments.
767c478bdstevel@tonic-gate * Existing C code has used either form so not specifing the arguments
777c478bdstevel@tonic-gate * neatly finesses the problem.  C++ doesn't accept this.  To C++
787c478bdstevel@tonic-gate * "(*sa_handler)()" indicates a routine with no arguments (ANSI C would
797c478bdstevel@tonic-gate * specify this as "(*sa_handler)(void)").  One or the other form must be
807c478bdstevel@tonic-gate * used for C++ and the only logical choice is "(*sa_handler)(int)" to allow
817c478bdstevel@tonic-gate * the SIG_* defines to work.  "(*sa_sigaction)(int, siginfo_t *, void *)"
827c478bdstevel@tonic-gate * can be used for the three argument form.
837c478bdstevel@tonic-gate */
847c478bdstevel@tonic-gate
857c478bdstevel@tonic-gate/*
867c478bdstevel@tonic-gate * Note: storage overlap by sa_handler and sa_sigaction
877c478bdstevel@tonic-gate */
887c478bdstevel@tonic-gatestruct sigaction {
897c478bdstevel@tonic-gate	int sa_flags;
907c478bdstevel@tonic-gate	union {
917c478bdstevel@tonic-gate#ifdef	__cplusplus
927c478bdstevel@tonic-gate		void (*_handler)(int);
937c478bdstevel@tonic-gate#else
947c478bdstevel@tonic-gate		void (*_handler)();
957c478bdstevel@tonic-gate#endif
967c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || defined(_KERNEL) || \
977c478bdstevel@tonic-gate	(!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
987c478bdstevel@tonic-gate	(_POSIX_C_SOURCE > 2) || defined(_XPG4_2)
997c478bdstevel@tonic-gate		void (*_sigaction)(int, siginfo_t *, void *);
1007c478bdstevel@tonic-gate#endif
1017c478bdstevel@tonic-gate	}	_funcptr;
1027c478bdstevel@tonic-gate	sigset_t sa_mask;
1037c478bdstevel@tonic-gate#ifndef _LP64
1047c478bdstevel@tonic-gate	int sa_resv[2];
1057c478bdstevel@tonic-gate#endif
1067c478bdstevel@tonic-gate};
1077c478bdstevel@tonic-gate#define	sa_handler	_funcptr._handler
1087c478bdstevel@tonic-gate#define	sa_sigaction	_funcptr._sigaction
1097c478bdstevel@tonic-gate
1107c478bdstevel@tonic-gate#if defined(_SYSCALL32)
1117c478bdstevel@tonic-gate
1127c478bdstevel@tonic-gate/* Kernel view of the ILP32 user sigaction structure */
1137c478bdstevel@tonic-gate
1147c478bdstevel@tonic-gatestruct sigaction32 {
1157c478bdstevel@tonic-gate	int32_t		sa_flags;
1167c478bdstevel@tonic-gate	union {
1177c478bdstevel@tonic-gate		caddr32_t	_handler;
1187c478bdstevel@tonic-gate		caddr32_t	_sigaction;
1197c478bdstevel@tonic-gate	}	_funcptr;
120bdf0047Roger A. Faulkner	sigset_t	sa_mask;
1217c478bdstevel@tonic-gate	int32_t		sa_resv[2];
1227c478bdstevel@tonic-gate};
1237c478bdstevel@tonic-gate
1247c478bdstevel@tonic-gate#endif	/* _SYSCALL32 */
1257c478bdstevel@tonic-gate
1267c478bdstevel@tonic-gate/* this is only valid for SIGCLD */
1277c478bdstevel@tonic-gate#define	SA_NOCLDSTOP	0x00020000	/* don't send job control SIGCLD's */
1287c478bdstevel@tonic-gate#endif
1297c478bdstevel@tonic-gate
1307c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || defined(_KERNEL) || \
1317c478bdstevel@tonic-gate	(!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
1327c478bdstevel@tonic-gate	defined(_XPG4_2)
1337c478bdstevel@tonic-gate
1347c478bdstevel@tonic-gate			/* non-conformant ANSI compilation	*/
1357c478bdstevel@tonic-gate
1367c478bdstevel@tonic-gate/* definitions for the sa_flags field */
1377c478bdstevel@tonic-gate#define	SA_ONSTACK	0x00000001
1387c478bdstevel@tonic-gate#define	SA_RESETHAND	0x00000002
1397c478bdstevel@tonic-gate#define	SA_RESTART	0x00000004
1407c478bdstevel@tonic-gate#endif
1417c478bdstevel@tonic-gate
1427c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || defined(_KERNEL) || \
1437c478bdstevel@tonic-gate	(!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
1447c478bdstevel@tonic-gate	(_POSIX_C_SOURCE > 2) || defined(_XPG4_2)
1457c478bdstevel@tonic-gate#define	SA_SIGINFO	0x00000008
1467c478bdstevel@tonic-gate#endif
1477c478bdstevel@tonic-gate
1487c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || defined(_KERNEL) || \
1497c478bdstevel@tonic-gate	(!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
1507c478bdstevel@tonic-gate	defined(_XPG4_2)
1517c478bdstevel@tonic-gate#define	SA_NODEFER	0x00000010
1527c478bdstevel@tonic-gate
1537c478bdstevel@tonic-gate/* this is only valid for SIGCLD */
1547c478bdstevel@tonic-gate#define	SA_NOCLDWAIT	0x00010000	/* don't save zombie children	 */
1557c478bdstevel@tonic-gate
1567c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || !defined(_XPG4_2)
1577c478bdstevel@tonic-gate/*
1587c478bdstevel@tonic-gate * use of these symbols by applications is injurious
1597c478bdstevel@tonic-gate *	to binary compatibility
1607c478bdstevel@tonic-gate */
16119d32b9Robert Mustacchi#define	NSIG	74	/* valid signals range from 1 to NSIG-1 */
16219d32b9Robert Mustacchi#define	MAXSIG	73	/* size of u_signal[], NSIG-1 <= MAXSIG */
1637c478bdstevel@tonic-gate#endif /* defined(__EXTENSIONS__) || !defined(_XPG4_2) */
1647c478bdstevel@tonic-gate
1657c478bdstevel@tonic-gate#define	MINSIGSTKSZ	2048
1667c478bdstevel@tonic-gate#define	SIGSTKSZ	8192
1677c478bdstevel@tonic-gate
1687c478bdstevel@tonic-gate#define	SS_ONSTACK	0x00000001
1697c478bdstevel@tonic-gate#define	SS_DISABLE	0x00000002
1707c478bdstevel@tonic-gate
1717c478bdstevel@tonic-gate/* Duplicated in <sys/ucontext.h> as a result of XPG4v2 requirements. */
1727c478bdstevel@tonic-gate#ifndef	_STACK_T
1737c478bdstevel@tonic-gate#define	_STACK_T
1747c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || !defined(_XPG4_2)
1757c478bdstevel@tonic-gatetypedef struct sigaltstack {
1767c478bdstevel@tonic-gate#else
1777c478bdstevel@tonic-gatetypedef struct {
1787c478bdstevel@tonic-gate#endif
1797c478bdstevel@tonic-gate	void	*ss_sp;
1807c478bdstevel@tonic-gate	size_t	ss_size;
1817c478bdstevel@tonic-gate	int	ss_flags;
1827c478bdstevel@tonic-gate} stack_t;
1837c478bdstevel@tonic-gate
1847c478bdstevel@tonic-gate#if defined(_SYSCALL32)
1857c478bdstevel@tonic-gate
1867c478bdstevel@tonic-gate/* Kernel view of the ILP32 user sigaltstack structure */
1877c478bdstevel@tonic-gate
1887c478bdstevel@tonic-gatetypedef struct sigaltstack32 {
1897c478bdstevel@tonic-gate	caddr32_t	ss_sp;
1907c478bdstevel@tonic-gate	size32_t	ss_size;
1917c478bdstevel@tonic-gate	int32_t		ss_flags;
1927c478bdstevel@tonic-gate} stack32_t;
1937c478bdstevel@tonic-gate
1947c478bdstevel@tonic-gate#endif /* _SYSCALL32 */
1957c478bdstevel@tonic-gate
1967c478bdstevel@tonic-gate#endif /* _STACK_T */
1977c478bdstevel@tonic-gate
1987c478bdstevel@tonic-gate#endif /* defined(__EXTENSIONS__) || defined(_KERNEL) ... */
1997c478bdstevel@tonic-gate
2007c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || defined(_KERNEL) || \
2017c478bdstevel@tonic-gate	(!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
2027c478bdstevel@tonic-gate
203f841f6araf/* signotify id used only by libc for mq_notify()/aio_notify() */
2047c478bdstevel@tonic-gatetypedef struct signotify_id {		/* signotify id struct		*/
2057c478bdstevel@tonic-gate	pid_t	sn_pid;			/* pid of proc to be notified	*/
2067c478bdstevel@tonic-gate	int	sn_index;		/* index in preallocated pool	*/
2077c478bdstevel@tonic-gate	int	sn_pad;			/* reserved			*/
2087c478bdstevel@tonic-gate} signotify_id_t;
2097c478bdstevel@tonic-gate
2107c478bdstevel@tonic-gate#if defined(_SYSCALL32)
2117c478bdstevel@tonic-gate
2127c478bdstevel@tonic-gate/* Kernel view of the ILP32 user signotify_id structure */
2137c478bdstevel@tonic-gate
2147c478bdstevel@tonic-gatetypedef struct signotify32_id {
2157c478bdstevel@tonic-gate	pid32_t	sn_pid;			/* pid of proc to be notified */
2167c478bdstevel@tonic-gate	int32_t	sn_index;		/* index in preallocated pool */
2177c478bdstevel@tonic-gate	int32_t	sn_pad;			/* reserved */
2187c478bdstevel@tonic-gate} signotify32_id_t;
2197c478bdstevel@tonic-gate
2207c478bdstevel@tonic-gate#endif	/* _SYSCALL32 */
2217c478bdstevel@tonic-gate
2227c478bdstevel@tonic-gate/* Command codes for sig_notify call */
2237c478bdstevel@tonic-gate
2247c478bdstevel@tonic-gate#define	SN_PROC		1		/* queue signotify for process	*/
2257c478bdstevel@tonic-gate#define	SN_CANCEL	2		/* cancel the queued signotify	*/
2267c478bdstevel@tonic-gate#define	SN_SEND		3		/* send the notified signal	*/
2277c478bdstevel@tonic-gate
2287c478bdstevel@tonic-gate#endif /* defined(__EXTENSIONS__) || defined(_KERNEL) ... */
2297c478bdstevel@tonic-gate
2307c478bdstevel@tonic-gate/* Added as per XPG4v2 */
2317c478bdstevel@tonic-gate#if defined(__EXTENSIONS__) || defined(_KERNEL) || \
2327c478bdstevel@tonic-gate	(!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
2337c478bdstevel@tonic-gate	defined(_XPG4_2)
2347c478bdstevel@tonic-gatestruct sigstack {
2357c478bdstevel@tonic-gate	void	*ss_sp;
2367c478bdstevel@tonic-gate	int	ss_onstack;
2377c478bdstevel@tonic-gate};
2387c478bdstevel@tonic-gate#endif /* defined(__EXTENSIONS__) || defined(_KERNEL) ... */
2397c478bdstevel@tonic-gate
2407c478bdstevel@tonic-gate/*
2417c478bdstevel@tonic-gate * For definition of ucontext_t; must follow struct definition
2427c478bdstevel@tonic-gate * for  sigset_t
2437c478bdstevel@tonic-gate */
2447c478bdstevel@tonic-gate#if defined(_XPG4_2)
2457c478bdstevel@tonic-gate#include <sys/ucontext.h>
2467c478bdstevel@tonic-gate#endif /* defined(_XPG4_2) */
2477c478bdstevel@tonic-gate
2488329232Gordon Ross#if defined(_KERNEL) || defined(_FAKE_KERNEL)
2497c478bdstevel@tonic-gate#include <sys/t_lock.h>
2507c478bdstevel@tonic-gate
251bdf0047Roger A. Faulknerextern const k_sigset_t nullsmask;	/* a null signal mask */
252bdf0047Roger A. Faulknerextern const k_sigset_t fillset;	/* all signals, guaranteed contiguous */
253bdf0047Roger A. Faulknerextern const k_sigset_t cantmask;	/* cannot be caught or ignored */
254bdf0047Roger A. Faulknerextern const k_sigset_t cantreset;	/* cannot be reset after catching */
255bdf0047Roger A. Faulknerextern const k_sigset_t ignoredefault;	/* ignored by default */
256bdf0047Roger A. Faulknerextern const k_sigset_t stopdefault;	/* stop by default */
257bdf0047Roger A. Faulknerextern const k_sigset_t coredefault;	/* dumps core by default */
258bdf0047Roger A. Faulknerextern const k_sigset_t holdvfork;	/* held while doing vfork */
2597c478bdstevel@tonic-gate
2607c478bdstevel@tonic-gate#define	sigmask(n)		((unsigned int)1 << (((n) - 1) & (32 - 1)))
2617c478bdstevel@tonic-gate#define	sigword(n)		(((unsigned int)((n) - 1))>>5)
2627c478bdstevel@tonic-gate
263bdf0047Roger A. Faulkner#if ((MAXSIG > (2 * 32)) && (MAXSIG <= (3 * 32)))
2647c478bdstevel@tonic-gate#define	FILLSET0	0xffffffffu
265bdf0047Roger A. Faulkner#define	FILLSET1	0xffffffffu
266bdf0047Roger A. Faulkner#define	FILLSET2	((1u << (MAXSIG - 64)) - 1)
2677c478bdstevel@tonic-gate#else
2687c478bdstevel@tonic-gate#error "fix me: MAXSIG out of bounds"
2697c478bdstevel@tonic-gate#endif
2707c478bdstevel@tonic-gate
2717c478bdstevel@tonic-gate#define	CANTMASK0	(sigmask(SIGKILL)|sigmask(SIGSTOP))
2727c478bdstevel@tonic-gate#define	CANTMASK1	0
273bdf0047Roger A. Faulkner#define	CANTMASK2	0
2747c478bdstevel@tonic-gate
2757c478bdstevel@tonic-gate#define	sigemptyset(s)		(*(s) = nullsmask)
2767c478bdstevel@tonic-gate#define	sigfillset(s)		(*(s) = fillset)
2777c478bdstevel@tonic-gate#define	sigaddset(s, n)		((s)->__sigbits[sigword(n)] |= sigmask(n))
2787c478bdstevel@tonic-gate#define	sigdelset(s, n)		((s)->__sigbits[sigword(n)] &= ~sigmask(n))
2797c478bdstevel@tonic-gate#define	sigismember(s, n)	(sigmask(n) & (s)->__sigbits[sigword(n)])
280bdf0047Roger A. Faulkner#define	sigisempty(s)		(!((s)->__sigbits[0] | (s)->__sigbits[1] | \
281bdf0047Roger A. Faulkner				(s)->__sigbits[2]))
2827c478bdstevel@tonic-gate#define	sigutok(us, ks)		\
2837c478bdstevel@tonic-gate	((ks)->__sigbits[0] = (us)->__sigbits[0] & (FILLSET0 & ~CANTMASK0), \
284bdf0047Roger A. Faulkner	(ks)->__sigbits[1] = (us)->__sigbits[1] & (FILLSET1 & ~CANTMASK1), \
285bdf0047Roger A. Faulkner	(ks)->__sigbits[2] = (us)->__sigbits[2] & (FILLSET2 & ~CANTMASK2))
2867c478bdstevel@tonic-gate#define	sigktou(ks, us)		((us)->__sigbits[0] = (ks)->__sigbits[0], \
287bdf0047Roger A. Faulkner				(us)->__sigbits[1] = (ks)->__sigbits[1], \
288bdf0047Roger A. Faulkner				(us)->__sigbits[2] = (ks)->__sigbits[2], \
289bdf0047Roger A. Faulkner				(us)->__sigbits[3] = 0)
2907c478bdstevel@tonic-gatetypedef struct {
2917c478bdstevel@tonic-gate	int	sig;				/* signal no.		*/
2927c478bdstevel@tonic-gate	int	perm;				/* flag for EPERM	*/
2937c478bdstevel@tonic-gate	int	checkperm;			/* check perm or not	*/
2947c478bdstevel@tonic-gate	int	sicode;				/* has siginfo.si_code	*/
2957c478bdstevel@tonic-gate	union sigval value;			/* user specified value	*/
2967c478bdstevel@tonic-gate} sigsend_t;
2977c478bdstevel@tonic-gate
2987c478bdstevel@tonic-gatetypedef struct {
2997c478bdstevel@tonic-gate	sigqueue_t	sn_sigq;	/* sigq struct for notification */
3007c478bdstevel@tonic-gate	u_longlong_t	sn_snid;	/* unique id for notification	*/
3017c478bdstevel@tonic-gate} signotifyq_t;
3027c478bdstevel@tonic-gate
3037c478bdstevel@tonic-gatetypedef struct sigqhdr {		/* sigqueue pool header		*/
3047c478bdstevel@tonic-gate	sigqueue_t	*sqb_free;	/* free sigq struct list	*/
3055e989a9David Höppner	int		sqb_count;	/* sigq free count		*/
3065e989a9David Höppner	uint_t		sqb_maxcount;	/* sigq max free count		*/
3075e989a9David Höppner	size_t		sqb_size;	/* size of header+free structs	*/
3087c478bdstevel@tonic-gate	uchar_t		sqb_pexited;	/* process has exited		*/
3095e989a9David Höppner	uint_t		sqb_sent;	/* number of sigq sent		*/
310f841f6araf	kcondvar_t	sqb_cv;		/* waiting for a sigq struct	*/
3117c478bdstevel@tonic-gate	kmutex_t	sqb_lock;	/* lock for sigq pool		*/
3127c478bdstevel@tonic-gate} sigqhdr_t;
3137c478bdstevel@tonic-gate
3145e989a9David Höppner#define	_SIGQUEUE_SIZE_BASIC		128	/* basic limit */
3155e989a9David Höppner#define	_SIGQUEUE_SIZE_PRIVILEGED	512	/* privileged limit */
3165e989a9David Höppner
3177c478bdstevel@tonic-gate#define	_SIGNOTIFY_MAX	32
3187c478bdstevel@tonic-gate
319bdf0047Roger A. Faulknerextern	void	setsigact(int, void (*)(int), const k_sigset_t *, int);
320bdf0047Roger A. Faulknerextern	void	sigorset(k_sigset_t *, const k_sigset_t *);
321bdf0047Roger A. Faulknerextern	void	sigandset(k_sigset_t *, const k_sigset_t *);
322bdf0047Roger A. Faulknerextern	void	sigdiffset(k_sigset_t *, const k_sigset_t *);
3237c478bdstevel@tonic-gateextern	void	sigintr(k_sigset_t *, int);
3247c478bdstevel@tonic-gateextern	void	sigunintr(k_sigset_t *);
3257c478bdstevel@tonic-gateextern	void	sigreplace(k_sigset_t *, k_sigset_t *);
3267c478bdstevel@tonic-gate
3277c478bdstevel@tonic-gateextern	int	kill(pid_t, int);
3287c478bdstevel@tonic-gate
3297c478bdstevel@tonic-gate#endif /* _KERNEL */
3307c478bdstevel@tonic-gate
3317c478bdstevel@tonic-gate#ifdef	__cplusplus
3327c478bdstevel@tonic-gate}
3337c478bdstevel@tonic-gate#endif
3347c478bdstevel@tonic-gate
3357c478bdstevel@tonic-gate#endif /* _SYS_SIGNAL_H */
336