NetBSD/sys/kern
thorpej 68723a995b * Shuffle some data structures so, and add a flags word to ksiginfo_t.
Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.

As discussed on tech-kern.  Reviewed and OK's by Christos.
2003-10-08 00:28:40 +00:00
..
cnmagic.c TNF & remove trailing spaces. 2003-08-22 02:01:32 +00:00
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
exec_ecoff.c
exec_elf32.c
exec_elf64.c
exec_macho.c Correctly check Mach-O fat header so that fat binaries get launched. 2003-09-07 11:16:59 +00:00
exec_script.c
exec_subr.c Expand NEW_VMCMD() macro to a real function new_vmcmd() for the 2003-08-29 01:44:02 +00:00
genassym.awk
genassym.sh
genlintstub.awk
init_main.c
init_sysent.c Regen 2003-09-30 20:36:40 +00:00
kern_acct.c
kern_allocsys.c
kern_clock.c
kern_descrip.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
kern_event.c
kern_exec.c include opt_compat_netbsd.h, otherwise we don't get the right signal 2003-09-15 00:33:35 +00:00
kern_exit.c fix SA/pthread pagefault failure: 2003-09-16 13:46:24 +00:00
kern_fork.c add siginfo lock and siginfo queue initialization. 2003-09-16 12:06:07 +00:00
kern_ksyms.c long -> unsigned long. 2003-09-03 10:55:22 +00:00
kern_kthread.c
kern_ktrace.c * Shuffle some data structures so, and add a flags word to ksiginfo_t. 2003-10-08 00:28:40 +00:00
kern_lkm.c Embed information about kernel version and some of used kernel options 2003-09-06 19:08:53 +00:00
kern_lock.c
kern_lwp.c
kern_malloc_debug.c
kern_malloc.c A nit I ran into while copying this code for something else... 2003-09-27 23:10:47 +00:00
kern_microtime.c
kern_ntptime.c
kern_physio.c
kern_proc.c add initialization of siginfo lock and queue. 2003-09-16 12:05:49 +00:00
kern_prot.c
kern_ras.c
kern_resource.c add support for non-executable mappings (where the hardware allows this) 2003-08-24 17:52:28 +00:00
kern_sa.c make sa_vp_donate update p_nrlwps when it retires an LWP 2003-10-01 14:50:06 +00:00
kern_sig.c * Shuffle some data structures so, and add a flags word to ksiginfo_t. 2003-10-08 00:28:40 +00:00
kern_subr.c assert that uio passed to uiomove() has valid uio_iovcnt. 2003-09-14 11:12:14 +00:00
kern_synch.c truncated output from pty problem. fix by enami 2003-09-08 11:14:18 +00:00
kern_sysctl.c If the user passes enough space, output the per cpu states instead of 2003-10-03 15:33:42 +00:00
kern_systrace.c move dupfd from struct proc to struct lwp - it's per-LWP, not per-process; we 2003-09-13 08:32:10 +00:00
kern_time.c * Shuffle some data structures so, and add a flags word to ksiginfo_t. 2003-10-08 00:28:40 +00:00
kern_timeout.c Fix for PR kern/22933 2003-09-25 10:44:11 +00:00
kern_verifiedexec.c
kern_xxx.c
kgdb_stub.c
Make.tags.inc
Makefile
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
subr_devsw.c
subr_disk_mbr.c When writing the disklabel: 2003-08-19 11:49:24 +00:00
subr_disk.c
subr_extent.c
subr_log.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
subr_pool.c
subr_prf.c
subr_prof.c
subr_prop.c
subr_userconf.c
subr_xxx.c
sys_generic.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
sys_pipe.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
sys_pmc.c
sys_process.c
sys_socket.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
syscalls.c Regen 2003-09-30 20:36:40 +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 #ifdef _LIBC the semid_t syscalls since we don't define semid_t in userland 2003-09-30 20:36:10 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c Fix the "COW" case if a process does a detach() between fork() 2003-09-10 17:01:04 +00:00
tty_conf.c
tty_pty.c
tty_subr.c
tty_tb.c
tty_tty.c
tty.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
uipc_domain.c
uipc_mbuf2.c
uipc_mbuf.c when dropping M_PKTHDR, need to free m_tag associated with it. 2003-10-03 20:56:11 +00:00
uipc_proto.c
uipc_sem.c
uipc_socket2.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
uipc_socket.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
uipc_syscalls.c Adapt to the new calling conventions of unp_connect2 2003-09-04 04:33:49 +00:00
uipc_usrreq.c Fix typo. 2003-09-03 22:20:34 +00:00
vfs_bio.c in getblk(), don't call allocbuf() for B_LOCKED buffers. 2003-09-24 10:44:44 +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
vfs_lookup.c PR/15397: Jason Thorpe: directory operations on pathnames that refer to 2003-09-11 17:33:42 +00:00
vfs_subr.c when allocating a new vnode, 2003-09-14 11:09:48 +00:00
vfs_syscalls.c move dupfd from struct proc to struct lwp - it's per-LWP, not per-process; we 2003-09-13 08:32:10 +00:00
vfs_vnops.c fix O_NOFOLLOW for non-O_CREAT case. 2003-09-29 10:04:03 +00:00
vnode_if.c
vnode_if.sh
vnode_if.src