HardenedBSD/sys/kern
Marcel Moolenaar 2c42a14602 sigset_t change (part 2 of 5)
-----------------------------

The core of the signalling code has been rewritten to operate
on the new sigset_t. No methodological changes have been made.
Most references to a sigset_t object are through macros (see
signalvar.h) to create a level of abstraction and to provide
a basis for further improvements.

The NSIG constant has not been changed to reflect the maximum
number of signals possible. The reason is that it breaks
programs (especially shells) which assume that all signals
have a non-null name in sys_signame. See src/bin/sh/trap.c
for an example. Instead _SIG_MAXSIG has been introduced to
hold the maximum signal possible with the new sigset_t.

struct sigprop has been moved from signalvar.h to kern_sig.c
because a) it is only used there, and b) access must be done
though function sigprop(). The latter because the table doesn't
holds properties for all signals, but only for the first NSIG
signals.

signal.h has been reorganized to make reading easier and to
add the new and/or modified structures. The "old" structures
are moved to signalvar.h to prevent namespace polution.

Especially the coda filesystem suffers from the change, because
it contained lines like (p->p_sigmask == SIGIO), which is easy
to do for integral types, but not for compound types.

NOTE: kdump (and port linux_kdump) must be recompiled.

Thanks to Garrett Wollman and Daniel Eischen for pressing the
importance of changing sigreturn as well.
1999-09-29 15:03:48 +00:00
..
bus_if.m
device_if.m
imgact_aout.c
imgact_elf.c
imgact_gzip.c
imgact_shell.c
inflate.c
init_main.c Moved the definition of `boottime' and its sysctl to the correct file. 1999-09-13 14:22:27 +00:00
init_sysent.c sigset_t change (part 2 of 5) 1999-09-29 15:03:48 +00:00
kern_acct.c
kern_clock.c Moved the definition of `boottime' and its sysctl to the correct file. 1999-09-13 14:22:27 +00:00
kern_conf.c Const'ify devtoname() and d_name. This exposes some errors (2 non-benign). 1999-09-13 12:29:32 +00:00
kern_descrip.c Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
kern_environment.c
kern_exec.c
kern_exit.c sigset_t change (part 2 of 5) 1999-09-29 15:03:48 +00:00
kern_fork.c
kern_intr.c
kern_jail.c Add a version number field to the jail(2) argument so that future changes 1999-09-19 08:36:03 +00:00
kern_kthread.c
kern_ktrace.c sigset_t change (part 2 of 5) 1999-09-29 15:03:48 +00:00
kern_linker.c
kern_lock.c Fix process p_locks accounting. Conversions of the owner to LK_KERNPROC 1999-09-27 00:21:43 +00:00
kern_lockf.c
kern_malloc.c KASSERT that we cannot use M_WAITOK in interrupt context. 1999-09-19 08:40:11 +00:00
kern_mib.c
kern_module.c
kern_ntptime.c
kern_physio.c Kill the cdevsw->d_maxio field. 1999-09-22 19:56:14 +00:00
kern_proc.c
kern_prot.c
kern_random.c
kern_resource.c
kern_shutdown.c
kern_sig.c sigset_t change (part 2 of 5) 1999-09-29 15:03:48 +00:00
kern_subr.c
kern_switch.c
kern_synch.c sigset_t change (part 2 of 5) 1999-09-29 15:03:48 +00:00
kern_syscalls.c
kern_sysctl.c
kern_tc.c Moved the definition of `boottime' and its sysctl to the correct file. 1999-09-13 14:22:27 +00:00
kern_threads.c
kern_time.c
kern_timeout.c
kern_xxx.c
ksched.c
link_aout.c
link_elf_obj.c
link_elf.c
Make.tags.inc
makedevops.pl
Makefile
makesyscalls.sh
md5c.c
p1003_1b.c
posix4_mib.c
subr_autoconf.c Change explicit use of the queue fields into use of the definitions 1999-09-26 18:48:53 +00:00
subr_blist.c
subr_bus.c
subr_clist.c
subr_devstat.c Stylistic cleanup. 1999-09-22 20:21:28 +00:00
subr_disk.c Register the right cdevsw on the master device. 1999-09-13 18:20:21 +00:00
subr_disklabel.c Removed diskerr()'s unused d_name arg and updated callers. This fixes 1999-09-13 12:59:41 +00:00
subr_diskmbr.c Removed diskerr()'s unused d_name arg and updated callers. This fixes 1999-09-13 12:59:41 +00:00
subr_diskslice.c Add missing 't' in printf message. 1999-09-25 14:43:40 +00:00
subr_dkbad.c
subr_eventhandler.c
subr_log.c Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
subr_module.c
subr_param.c
subr_prf.c
subr_prof.c
subr_rman.c
subr_scanf.c
subr_smp.c
subr_trap.c
subr_xxx.c Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
sys_generic.c This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
sys_pipe.c Fix bug in pipe code relating to writes of mmap'd but illegal address 1999-09-20 19:08:48 +00:00
sys_process.c
sys_socket.c This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
syscalls.c sigset_t change (part 2 of 5) 1999-09-29 15:03:48 +00:00
syscalls.master sigset_t change (part 1 of 5) 1999-09-29 15:01:21 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c
tty_compat.c
tty_conf.c
tty_cons.c Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
tty_pty.c sigset_t change (part 2 of 5) 1999-09-29 15:03:48 +00:00
tty_snoop.c Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
tty_subr.c
tty_tb.c
tty_tty.c Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
tty.c sigset_t change (part 2 of 5) 1999-09-29 15:03:48 +00:00
uipc_domain.c
uipc_mbuf.c
uipc_proto.c
uipc_sockbuf.c In sbflush(), don't exit the while loop too early: this can cause 1999-09-28 12:59:18 +00:00
uipc_socket2.c In sbflush(), don't exit the while loop too early: this can cause 1999-09-28 12:59:18 +00:00
uipc_socket.c Change so_cred's type to a ucred, not a pcred. THis makes more sense, actually. 1999-09-19 02:17:02 +00:00
uipc_syscalls.c This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
uipc_usrreq.c Change so_cred's type to a ucred, not a pcred. THis makes more sense, actually. 1999-09-19 02:17:02 +00:00
vfs_aio.c This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
vfs_bio.c Fix bug in brelse() regarding redirtying buffers on B_ERROR. brelse() 1999-09-20 16:19:24 +00:00
vfs_cache.c
vfs_cluster.c Initialize vp->v_maxio to its default in getnetvnode() rather than 1999-09-20 19:53:23 +00:00
vfs_conf.c Fix BOOTP root FS mounts. Also cleanup vfs_getnewfsid() and collapse 1999-09-19 06:24:21 +00:00
vfs_default.c
vfs_export.c Final commit to remove vnode->v_lastr. vm_fault now handles read 1999-09-21 00:36:16 +00:00
vfs_extattr.c Fix a hole in jail(2). 1999-09-25 14:14:21 +00:00
vfs_init.c
vfs_lookup.c Fix a hole in jail(2). 1999-09-25 14:14:21 +00:00
vfs_mount.c Fix BOOTP root FS mounts. Also cleanup vfs_getnewfsid() and collapse 1999-09-19 06:24:21 +00:00
vfs_subr.c Final commit to remove vnode->v_lastr. vm_fault now handles read 1999-09-21 00:36:16 +00:00
vfs_syscalls.c Fix a hole in jail(2). 1999-09-25 14:14:21 +00:00
vfs_vnops.c This is what was "fdfix2.patch," a fix for fd sharing. It's pretty 1999-09-19 17:00:25 +00:00
vnode_if.pl Update this to be able to output ASSERT_VOP_(UN)LOCKED() based on the 1999-09-26 18:31:51 +00:00
vnode_if.sh Update this to be able to output ASSERT_VOP_(UN)LOCKED() based on the 1999-09-26 18:31:51 +00:00
vnode_if.src Move the vop_islocked declaration to the top, in preparation for committing 1999-09-26 18:10:59 +00:00