diff options
author | marcel <marcel@FreeBSD.org> | 1999-09-29 15:03:48 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-09-29 15:03:48 +0000 |
commit | d5e8d714b93b1824409b762780bec45541995276 (patch) | |
tree | 6c8b2043aa3edb629a1ac31d0703f667667a8072 /sys/kern/init_sysent.c | |
parent | a77a86a32324d1cd4c2f1b3055c97e6bc066a6eb (diff) | |
download | FreeBSD-src-d5e8d714b93b1824409b762780bec45541995276.zip FreeBSD-src-d5e8d714b93b1824409b762780bec45541995276.tar.gz |
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.
Diffstat (limited to 'sys/kern/init_sysent.c')
-rw-r--r-- | sys/kern/init_sysent.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 05f81f7..e135090 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.64 1999/09/11 00:45:58 alfred Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.65 1999/09/29 15:01:21 marcel Exp */ #include "opt_compat.h" @@ -66,13 +66,13 @@ struct sysent sysent[] = { { 0, (sy_call_t *)getegid }, /* 43 = getegid */ { 4, (sy_call_t *)profil }, /* 44 = profil */ { 4, (sy_call_t *)ktrace }, /* 45 = ktrace */ - { 3, (sy_call_t *)sigaction }, /* 46 = sigaction */ + { 3, (sy_call_t *)osigaction }, /* 46 = osigaction */ { 0, (sy_call_t *)getgid }, /* 47 = getgid */ - { 2, (sy_call_t *)sigprocmask }, /* 48 = sigprocmask */ + { 2, (sy_call_t *)osigprocmask }, /* 48 = osigprocmask */ { 2, (sy_call_t *)getlogin }, /* 49 = getlogin */ { 1, (sy_call_t *)setlogin }, /* 50 = setlogin */ { 1, (sy_call_t *)acct }, /* 51 = acct */ - { 0, (sy_call_t *)sigpending }, /* 52 = sigpending */ + { 0, (sy_call_t *)osigpending }, /* 52 = osigpending */ { 2, (sy_call_t *)sigaltstack }, /* 53 = sigaltstack */ { 3, (sy_call_t *)ioctl }, /* 54 = ioctl */ { 1, (sy_call_t *)reboot }, /* 55 = reboot */ @@ -123,7 +123,7 @@ struct sysent sysent[] = { { 2, (sy_call_t *)getpriority }, /* 100 = getpriority */ { compat(4,send) }, /* 101 = old send */ { compat(4,recv) }, /* 102 = old recv */ - { 1, (sy_call_t *)sigreturn }, /* 103 = sigreturn */ + { 1, (sy_call_t *)osigreturn }, /* 103 = osigreturn */ { 3, (sy_call_t *)bind }, /* 104 = bind */ { 5, (sy_call_t *)setsockopt }, /* 105 = setsockopt */ { 2, (sy_call_t *)listen }, /* 106 = listen */ @@ -131,7 +131,7 @@ struct sysent sysent[] = { { compat(3,sigvec) }, /* 108 = old sigvec */ { compat(1,sigblock) }, /* 109 = old sigblock */ { compat(1,sigsetmask) }, /* 110 = old sigsetmask */ - { 1, (sy_call_t *)sigsuspend }, /* 111 = sigsuspend */ + { 1, (sy_call_t *)osigsuspend }, /* 111 = osigsuspend */ { compat(2,sigstack) }, /* 112 = old sigstack */ { compat(3,recvmsg) }, /* 113 = old recvmsg */ { compat(3,sendmsg) }, /* 114 = old sendmsg */ @@ -360,4 +360,11 @@ struct sysent sysent[] = { { 3, (sy_call_t *)kldsym }, /* 337 = kldsym */ { 1, (sy_call_t *)jail }, /* 338 = jail */ { 0, (sy_call_t *)nosys }, /* 339 = pioctl */ + { 3, (sy_call_t *)sigprocmask }, /* 340 = sigprocmask */ + { 1, (sy_call_t *)sigsuspend }, /* 341 = sigsuspend */ + { 3, (sy_call_t *)sigaction }, /* 342 = sigaction */ + { 1, (sy_call_t *)sigpending }, /* 343 = sigpending */ + { 1, (sy_call_t *)sigreturn }, /* 344 = sigreturn */ + { 0, (sy_call_t *)nosys }, /* 345 = sigtimedwait */ + { 0, (sy_call_t *)nosys }, /* 346 = sigwaitinfo */ }; |