NetBSD/sys/kern
manu ffb3de5522 Move the sigfilter hook to a more adequate location, and rename it to better
fit what it does.

The softsignal feature is used in Darwin to trace processes. When the
traced process gets a signal, this raises an exception. The debugger will
receive the exception message, use ptrace with PT_THUPDATE to pass the
signal to the child or discard it, and then it will send a reply to the
exception message, to resume the child.

With the hook at the beginnng of kpsignal2, we are in the context of the
signal sender, which can be the kill(1) command, for instance. We cannot
afford to sleep until the debugger tells us if the signal should be
delivered or not.

Therefore, the hook to generate the Mach exception must be in the traced
process context. That was we can sleep awaiting for the debugger opinion
about the signal, this is not a problem. The hook is hence located into
issignal, at the place where normally SIGCHILD is sent to the debugger,
whereas the traced process is stopped. If the hook returns 0, we bypass
thoses operations, the Mach exception mecanism will take care of notifying
the debugger (through a Mach exception), and stop the faulting thread.
2003-12-24 22:53:59 +00:00
..
Make.tags.inc
Makefile We have CVS; there is no reason to make .bak files when generating the 2003-11-15 20:26:02 +00:00
cnmagic.c
core_elf32.c handle siginfo for deferred signals. Allocate a ksiginfo pool, and store 2003-09-14 06:59:13 +00:00
core_elf64.c
core_netbsd.c handle siginfo for deferred signals. Allocate a ksiginfo pool, and store 2003-09-14 06:59:13 +00:00
exec_aout.c
exec_conf.c Support Darwin static binaries (I should say: support the only Darwin 2003-10-19 07:52:22 +00:00
exec_ecoff.c
exec_elf32.c add support for more than 2 PT_LOAD sections. from OpenBSD. 2003-12-07 02:18:53 +00:00
exec_elf64.c
exec_macho.c One more section type in the Mach-O format. Now /usr/X11R6/bin/quartz-wm links 2003-10-20 22:42:40 +00:00
exec_script.c
exec_subr.c
genassym.awk
genassym.sh
genlintstub.awk
init_main.c include <sys/mbuf.h> before FAST_IPSEC-dependent headers. 2003-11-14 07:13:25 +00:00
init_sysctl.c update a comment to match with the previous change (rev.1.12). 2003-12-20 07:33:03 +00:00
init_sysent.c Regen: fsync_range(2) system call. 2003-11-15 01:20:48 +00:00
kern_acct.c
kern_allocsys.c move ALLOCSYS() macro from <sys/systm.h> to kern_alloc.c - it's the 2003-10-26 10:45:03 +00:00
kern_clock.c Dynamic sysctl. 2003-12-04 19:38:21 +00:00
kern_descrip.c fix off by one in find_last_set(); triggered for processes that have no 2003-11-30 18:16:45 +00:00
kern_event.c
kern_exec.c Put back Emmanuel's sigfilter hooks, as decided by Core. 2003-12-20 19:01:29 +00:00
kern_exit.c The missing pieces of PROC_PID_STOPEXIT/P_STOPEXIT, a sysctl tweakable 2003-12-06 04:16:33 +00:00
kern_fork.c - Count number of zombies and stopped children and requeue them at the top 2003-11-12 21:07:37 +00:00
kern_ksyms.c o Fix a bug in ksyms that changed the real meaning of st_name entries for 2003-11-17 10:16:18 +00:00
kern_kthread.c
kern_ktrace.c Defer writing of KTR_EMUL entry until first trace done by target process. 2003-12-14 22:56:45 +00:00
kern_lkm.c o Fix a bug in ksyms that changed the real meaning of st_name entries for 2003-11-17 10:16:18 +00:00
kern_lock.c Fix last commit. The current spl was an implicit argument to the ACQUIRE 2003-12-08 14:21:25 +00:00
kern_lwp.c Split sys_lwp_suspend, just like sys_lwp_unsuspend is split. We get 2003-12-24 22:42:11 +00:00
kern_malloc.c Remove some assigned-to but otherwise unused variables. 2003-10-30 01:58:17 +00:00
kern_malloc_debug.c don't use NULL as vaddr_t. 2003-10-24 00:53:43 +00:00
kern_microtime.c
kern_ntptime.c Dynamic sysctl. 2003-12-04 19:38:21 +00:00
kern_physio.c
kern_proc.c - use list to keep track of free stacks. 2003-11-17 22:52:09 +00:00
kern_prot.c
kern_ras.c Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead. 2003-11-04 10:33:15 +00:00
kern_resource.c Don't need those any more 2003-12-06 04:25:57 +00:00
kern_sa.c Cast to pointer via intptr_t. 2003-11-28 08:18:03 +00:00
kern_sig.c Move the sigfilter hook to a more adequate location, and rename it to better 2003-12-24 22:53:59 +00:00
kern_subr.c Don't pass the (unused) return value args to the 2003-10-31 03:28:12 +00:00
kern_synch.c Cleanup signal delivery for SA processes: 2003-11-02 16:26:10 +00:00
kern_sysctl.c Resurrect include of opt_insecure.h to get the INSECURE definition. 2003-12-05 16:19:09 +00:00
kern_systrace.c Fix two typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 09:49:20 +00:00
kern_time.c PR/23613: Christian Biere: Bogus bounds check in nanosleep. 2003-12-02 01:34:30 +00:00
kern_timeout.c Make callout_setfunc() a CPP macro. Suggested by enami. 2003-10-30 04:32:56 +00:00
kern_verifiedexec.c Remove spurious space accidently introduced in last. 2003-11-18 13:13:03 +00:00
kern_xxx.c
kgdb_stub.c
makesyscalls.sh Keep track of which prototypes we declared already so that we don't 2003-09-30 20:34:28 +00:00
subr_autoconf.c www.netbsd.org -> www.NetBSD.org 2003-11-17 10:07:58 +00:00
subr_devsw.c
subr_disk.c rev.1.55 didn't handle BUFQ_SORT_CYLINDER case correctly. 2003-12-06 17:23:22 +00:00
subr_disk_mbr.c Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
subr_extent.c
subr_log.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
subr_pool.c two changes in improve scalability: 2003-11-13 02:44:01 +00:00
subr_prf.c
subr_prof.c Dynamic sysctl. 2003-12-04 19:38:21 +00:00
subr_prop.c Remove trailing blank line. 2003-12-21 11:54:16 +00:00
subr_userconf.c
subr_xxx.c
sys_generic.c use "poll" as the wmesg for poll. 2003-10-10 15:24:28 +00:00
sys_pipe.c Dynamic sysctl. 2003-12-04 19:38:21 +00:00
sys_pmc.c
sys_process.c Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead. 2003-11-04 10:33:15 +00:00
sys_socket.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
syscalls.c Regen: fsync_range(2) system call. 2003-11-15 01:20:48 +00:00
syscalls.conf we don't need sigreturn and sigcode glue if we are not compat_16 anymore. 2003-09-10 16:43:34 +00:00
syscalls.master Kernel portion of the fsync_range(2) system call. Written by Bill 2003-11-15 01:19:38 +00:00
sysv_ipc.c
sysv_msg.c allocate virtual memory for SYSV shm, msg and semaphore structures 2003-10-26 10:32:24 +00:00
sysv_sem.c fix semaphore ID bound checking 2003-11-29 11:43:25 +00:00
sysv_shm.c Wrap long line. 2003-12-06 01:53:14 +00:00
tty.c Dynamic sysctl. 2003-12-04 19:38:21 +00:00
tty_conf.c
tty_pty.c
tty_subr.c Modify the licences of code written by Theo De Raadt from a 4-clause 2003-12-10 12:06:25 +00:00
tty_tb.c
tty_tty.c Add the gating of system calls that cause modifications to the underlying 2003-10-15 11:28:59 +00:00
uipc_domain.c Dynamic sysctl. 2003-12-04 19:38:21 +00:00
uipc_mbuf.c Dynamic sysctl. 2003-12-04 19:38:21 +00:00
uipc_mbuf2.c Add m_tag_delete_nonpesrsistent(), for deleting all packet tags on 2003-11-13 01:48:12 +00:00
uipc_proto.c
uipc_sem.c
uipc_socket.c Cache the "adjusted" value of sb_max when sb_max is changed, in order 2003-10-21 22:55:47 +00:00
uipc_socket2.c Cache the "adjusted" value of sb_max when sb_max is changed, in order 2003-10-21 22:55:47 +00:00
uipc_syscalls.c Restore a change that made AF_LOCAL sockets block on connect(2) until 2003-11-29 10:02:42 +00:00
uipc_usrreq.c Restore a change that made AF_LOCAL sockets block on connect(2) until 2003-11-29 10:02:42 +00:00
vfs_bio.c when ifdef DEBUG and debug_verify_freelist != 0 2003-12-02 04:18:19 +00:00
vfs_cache.c remove an obsolete comment. pointed by enami@ 2003-09-01 12:13:55 +00:00
vfs_getcwd.c
vfs_init.c
vfs_lockf.c fix uninitialized variable 2003-10-25 09:06:51 +00:00
vfs_lookup.c Fix the last commit(s). On machines with sizeof(long) != sizeof(int) 2003-12-08 14:23:33 +00:00
vfs_subr.c Dynamic sysctl. 2003-12-04 19:38:21 +00:00
vfs_syscalls.c The file system snapshot pseudo driver. 2003-12-10 11:40:11 +00:00
vfs_vnops.c Add the gating of system calls that cause modifications to the underlying 2003-10-15 11:28:59 +00:00
vnode_if.c
vnode_if.sh
vnode_if.src Various typo fixes from Jonathon Gray via jmc@openbsd. 2003-11-17 11:16:10 +00:00