diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-09-29 15:12:18 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-09-29 15:12:18 +0000 |
commit | 956d3333cadea27513348a7718e9cfd5c26e9ba0 (patch) | |
tree | 6ebfb930dcce18e75361a254f7b3dbfa9e2c03d1 /sys/svr4/svr4_misc.c | |
parent | 91078fca0cb2bb1d02316eeb7d2dd5ab422f00e4 (diff) | |
download | src-test-956d3333cadea27513348a7718e9cfd5c26e9ba0.tar.gz src-test-956d3333cadea27513348a7718e9cfd5c26e9ba0.zip |
Notes
Diffstat (limited to 'sys/svr4/svr4_misc.c')
-rw-r--r-- | sys/svr4/svr4_misc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/svr4/svr4_misc.c b/sys/svr4/svr4_misc.c index 9535cba8972b7..9720abca1e587 100644 --- a/sys/svr4/svr4_misc.c +++ b/sys/svr4/svr4_misc.c @@ -100,7 +100,6 @@ #define BSD_DIRENT(cp) ((struct dirent *)(cp)) -extern int bsd_to_svr4_sig[]; static int svr4_mknod __P((struct proc *, register_t *, char *, svr4_mode_t, svr4_dev_t)); @@ -159,11 +158,11 @@ svr4_sys_wait(p, uap) if (WIFSIGNALED(st)) { sig = WTERMSIG(st); if (sig >= 0 && sig < NSIG) - st = (st & ~0177) | bsd_to_svr4_sig[sig]; + st = (st & ~0177) | SVR4_BSD2SVR4_SIG(sig); } else if (WIFSTOPPED(st)) { sig = WSTOPSIG(st); if (sig >= 0 && sig < NSIG) - st = (st & ~0xff00) | (bsd_to_svr4_sig[sig] << 8); + st = (st & ~0xff00) | (SVR4_BSD2SVR4_SIG(sig) << 8); } /* @@ -1119,7 +1118,7 @@ svr4_setinfo(p, st, s) } else if (WIFSTOPPED(st)) { sig = WSTOPSIG(st); if (sig >= 0 && sig < NSIG) - i.si_status = bsd_to_svr4_sig[sig]; + i.si_status = SVR4_BSD2SVR4_SIG(sig); if (i.si_status == SVR4_SIGCONT) i.si_code = SVR4_CLD_CONTINUED; @@ -1128,7 +1127,7 @@ svr4_setinfo(p, st, s) } else { sig = WTERMSIG(st); if (sig >= 0 && sig < NSIG) - i.si_status = bsd_to_svr4_sig[sig]; + i.si_status = SVR4_BSD2SVR4_SIG(sig); if (WCOREDUMP(st)) i.si_code = SVR4_CLD_DUMPED; |