summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4/svr4_sysvec.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-02-25 19:34:10 +0000
committersam <sam@FreeBSD.org>2005-02-25 19:34:10 +0000
commitb3f1395f0dd0fa285d4af6993d6562c37844fb6f (patch)
tree1414f006edb67b0a5a98932d3f06cec41ac0138b /sys/compat/svr4/svr4_sysvec.c
parent8f01899557c43fb2b2d963963a95655a67defff1 (diff)
downloadFreeBSD-src-b3f1395f0dd0fa285d4af6993d6562c37844fb6f.zip
FreeBSD-src-b3f1395f0dd0fa285d4af6993d6562c37844fb6f.tar.gz
fixup signal mapping:
o change the mapping arrays to have a zero offset rather than base 1; this eliminates lots of signo adjustments and brings the code back inline with the original netbsd code o purge use of SVR4_SIGTBLZ; SVR4_NSIG is the only definition for how big a mapping array is o change the mapping loops to explicitly ignore signal 0 o purge some bogus code from bsd_to_svr4_sigset o adjust svr4_sysentvec to deal with the mapping table change Enticed into fixing by: Coverity Prevent analysis tool Glanced at by: marcel, jhb
Diffstat (limited to 'sys/compat/svr4/svr4_sysvec.c')
-rw-r--r--sys/compat/svr4/svr4_sysvec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_sysvec.c b/sys/compat/svr4/svr4_sysvec.c
index bcf27b2..9bfbd47 100644
--- a/sys/compat/svr4/svr4_sysvec.c
+++ b/sys/compat/svr4/svr4_sysvec.c
@@ -169,8 +169,8 @@ struct sysentvec svr4_sysvec = {
SVR4_SYS_MAXSYSCALL,
svr4_sysent,
0xff,
- SVR4_SIGTBLSZ,
- bsd_to_svr4_sig,
+ SVR4_NSIG-1, /* NB: signal trans table indexed with signno-1 */
+ bsd_to_svr4_sig+1,
ELAST, /* ELAST */
bsd_to_svr4_errno,
NULL,
OpenPOWER on IntegriCloud