Export bsd_to_svr4_sig[], and use it.

This commit is contained in:
mycroft 1995-08-14 02:07:57 +00:00
parent c7602440ba
commit 1e69f23205
4 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_machdep.c,v 1.11 1995/08/14 01:17:02 mycroft Exp $ */
/* $NetBSD: svr4_machdep.c,v 1.12 1995/08/14 02:08:43 mycroft Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -212,7 +212,7 @@ svr4_getsiginfo(si, sig, code, addr)
u_long code;
caddr_t addr;
{
si->si_signo = bsd_to_svr4_signum(sig);
si->si_signo = bsd_to_svr4_sig[sig];
si->si_errno = 0;
si->si_addr = addr;

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_machdep.c,v 1.6 1995/08/14 01:17:34 mycroft Exp $ */
/* $NetBSD: svr4_machdep.c,v 1.7 1995/08/14 02:11:24 mycroft Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -221,7 +221,7 @@ svr4_getsiginfo(si, sig, code, addr)
u_long code;
caddr_t addr;
{
si->si_signo = bsd_to_svr4_signum(sig);
si->si_signo = bsd_to_svr4_sig[sig];
si->si_errno = 0;
si->si_addr = addr;
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_misc.c,v 1.24 1995/07/02 06:16:09 christos Exp $ */
/* $NetBSD: svr4_misc.c,v 1.25 1995/08/14 02:07:57 mycroft Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -881,14 +881,14 @@ svr4_setinfo(p, st, s)
i.si_code = SVR4_CLD_EXITED;
}
else if (WIFSTOPPED(st)) {
i.si_status = bsd_to_svr4_signum(WSTOPSIG(st));
i.si_status = bsd_to_svr4_sig[WSTOPSIG(st)];
if (i.si_status == SVR4_SIGCONT)
i.si_code = SVR4_CLD_CONTINUED;
else
i.si_code = SVR4_CLD_STOPPED;
} else {
i.si_status = bsd_to_svr4_signum(WTERMSIG(st));
i.si_status = bsd_to_svr4_sig[WTERMSIG(st)];
if (WCOREDUMP(st))
i.si_code = SVR4_CLD_DUMPED;

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_signal.h,v 1.11 1995/08/14 01:12:49 mycroft Exp $ */
/* $NetBSD: svr4_signal.h,v 1.12 1995/08/14 02:08:00 mycroft Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -119,4 +119,6 @@ struct svr4_sigaltstack {
#define SVR4_SS_ONSTACK 0x00000001
#define SVR4_SS_DISABLE 0x00000002
extern int bsd_to_svr4_sig[];
#endif /* !_SVR4_SIGNAL_H_ */