Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: source-changes
Date: 12/03/2003 20:24:52
Module Name:	src
Committed By:	manu
Date:		Wed Dec  3 20:24:52 UTC 2003

Modified Files:
	src/sys/compat/aout: aout_exec.c
	src/sys/compat/aoutm68k: aoutm68k_exec.c
	src/sys/compat/darwin: darwin_exec.c
	src/sys/compat/freebsd: freebsd_exec.c
	src/sys/compat/hpux: hpux_exec.c
	src/sys/compat/ibcs2: ibcs2_exec.c
	src/sys/compat/irix: irix_exec.c
	src/sys/compat/linux/common: linux_exec.c
	src/sys/compat/mach: mach_exec.c
	src/sys/compat/netbsd32: netbsd32_netbsd.c
	src/sys/compat/osf1: osf1_exec.c
	src/sys/compat/pecoff: pecoff_emul.c
	src/sys/compat/sunos: sunos_exec.c
	src/sys/compat/sunos32: sunos32_exec.c
	src/sys/compat/svr4: svr4_exec.c
	src/sys/compat/svr4_32: svr4_32_exec.c
	src/sys/compat/ultrix: ultrix_misc.c
	src/sys/kern: kern_exec.c kern_sig.c
	src/sys/sys: proc.h

Log Message:
Add a sigfilter emulation hook. It is used at the beginning of kpsignal2()
so that a specific emulation has the oportunity to filter out some signals.

if sigfilter returns 0, then no signal is sent by kpsignal2().

There is another place where signals can be generated: trapsignal. Since this
function is already an emulation hook, no call to the sigfilter hook was
introduced in trapsignal.

This is needed to emulate the softsignal feature in COMPAT_DARWIN (signals
sent as Mach exception messages)


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/sys/compat/aout/aout_exec.c
cvs rdiff -r1.13 -r1.14 src/sys/compat/aoutm68k/aoutm68k_exec.c
cvs rdiff -r1.25 -r1.26 src/sys/compat/darwin/darwin_exec.c
cvs rdiff -r1.21 -r1.22 src/sys/compat/freebsd/freebsd_exec.c
cvs rdiff -r1.38 -r1.39 src/sys/compat/hpux/hpux_exec.c
cvs rdiff -r1.54 -r1.55 src/sys/compat/ibcs2/ibcs2_exec.c
cvs rdiff -r1.32 -r1.33 src/sys/compat/irix/irix_exec.c
cvs rdiff -r1.65 -r1.66 src/sys/compat/linux/common/linux_exec.c
cvs rdiff -r1.40 -r1.41 src/sys/compat/mach/mach_exec.c
cvs rdiff -r1.75 -r1.76 src/sys/compat/netbsd32/netbsd32_netbsd.c
cvs rdiff -r1.32 -r1.33 src/sys/compat/osf1/osf1_exec.c
cvs rdiff -r1.6 -r1.7 src/sys/compat/pecoff/pecoff_emul.c
cvs rdiff -r1.41 -r1.42 src/sys/compat/sunos/sunos_exec.c
cvs rdiff -r1.15 -r1.16 src/sys/compat/sunos32/sunos32_exec.c
cvs rdiff -r1.50 -r1.51 src/sys/compat/svr4/svr4_exec.c
cvs rdiff -r1.10 -r1.11 src/sys/compat/svr4_32/svr4_32_exec.c
cvs rdiff -r1.88 -r1.89 src/sys/compat/ultrix/ultrix_misc.c
cvs rdiff -r1.176 -r1.177 src/sys/kern/kern_exec.c
cvs rdiff -r1.180 -r1.181 src/sys/kern/kern_sig.c
cvs rdiff -r1.178 -r1.179 src/sys/sys/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.