diff options
author | cracauer <cracauer@FreeBSD.org> | 1999-07-06 06:55:29 +0000 |
---|---|---|
committer | cracauer <cracauer@FreeBSD.org> | 1999-07-06 06:55:29 +0000 |
commit | 0bb9e75fd21026c94438f2db514d21fd69b82377 (patch) | |
tree | 31559907ca4a8c7c416f4670ddc6cde39793568b /sys/svr4 | |
parent | 37964e09a91d005059b8094ac748eae8a0c50a22 (diff) | |
download | FreeBSD-src-0bb9e75fd21026c94438f2db514d21fd69b82377.zip FreeBSD-src-0bb9e75fd21026c94438f2db514d21fd69b82377.tar.gz |
Rename struct members sa_siginfo. POSIX reserves identifiers starting
with sa_ when <signal.h> is included. They would conflict with the
upcoming SA_SIGINFO implementation.
Reviewed by: BDE
Diffstat (limited to 'sys/svr4')
-rw-r--r-- | sys/svr4/svr4_signal.c | 36 | ||||
-rw-r--r-- | sys/svr4/svr4_signal.h | 8 |
2 files changed, 22 insertions, 22 deletions
diff --git a/sys/svr4/svr4_signal.c b/sys/svr4/svr4_signal.c index 47cc6fe..5b7d093 100644 --- a/sys/svr4/svr4_signal.c +++ b/sys/svr4/svr4_signal.c @@ -187,24 +187,24 @@ svr4_to_bsd_sigaction(ssa, bsa) struct sigaction *bsa; { - bsa->sa_handler = (sig_t) ssa->sa_handler; - svr4_to_bsd_sigset(&ssa->sa_mask, &bsa->sa_mask); + bsa->sa_handler = (sig_t) ssa->ssa_handler; + svr4_to_bsd_sigset(&ssa->ssa_mask, &bsa->sa_mask); bsa->sa_flags = 0; - if ((ssa->sa_flags & SVR4_SA_ONSTACK) != 0) + if ((ssa->ssa_flags & SVR4_SA_ONSTACK) != 0) bsa->sa_flags |= SA_ONSTACK; - if ((ssa->sa_flags & SVR4_SA_RESETHAND) != 0) + if ((ssa->ssa_flags & SVR4_SA_RESETHAND) != 0) bsa->sa_flags |= SA_RESETHAND; - if ((ssa->sa_flags & SVR4_SA_RESTART) != 0) + if ((ssa->ssa_flags & SVR4_SA_RESTART) != 0) bsa->sa_flags |= SA_RESTART; - if ((ssa->sa_flags & SVR4_SA_SIGINFO) != 0) + if ((ssa->ssa_flags & SVR4_SA_SIGINFO) != 0) DPRINTF(("svr4_to_bsd_sigaction: SA_SIGINFO ignored\n")); - if ((ssa->sa_flags & SVR4_SA_NOCLDSTOP) != 0) + if ((ssa->ssa_flags & SVR4_SA_NOCLDSTOP) != 0) bsa->sa_flags |= SA_NOCLDSTOP; - if ((ssa->sa_flags & SVR4_SA_NODEFER) != 0) + if ((ssa->ssa_flags & SVR4_SA_NODEFER) != 0) bsa->sa_flags |= SA_NODEFER; - if ((ssa->sa_flags & SVR4_SA_NOCLDWAIT) != 0) + if ((ssa->ssa_flags & SVR4_SA_NOCLDWAIT) != 0) bsa->sa_flags |= SA_NOCLDWAIT; - if ((ssa->sa_flags & ~SVR4_SA_ALLBITS) != 0) + if ((ssa->ssa_flags & ~SVR4_SA_ALLBITS) != 0) DPRINTF(("svr4_to_bsd_sigaction: extra bits ignored\n")); } @@ -214,19 +214,19 @@ bsd_to_svr4_sigaction(bsa, ssa) struct svr4_sigaction *ssa; { - ssa->sa_handler = (svr4_sig_t) bsa->sa_handler; - bsd_to_svr4_sigset(&bsa->sa_mask, &ssa->sa_mask); - ssa->sa_flags = 0; + ssa->ssa_handler = (svr4_sig_t) bsa->sa_handler; + bsd_to_svr4_sigset(&bsa->sa_mask, &ssa->ssa_mask); + ssa->ssa_flags = 0; if ((bsa->sa_flags & SA_ONSTACK) != 0) - ssa->sa_flags |= SVR4_SA_ONSTACK; + ssa->ssa_flags |= SVR4_SA_ONSTACK; if ((bsa->sa_flags & SA_RESETHAND) != 0) - ssa->sa_flags |= SVR4_SA_RESETHAND; + ssa->ssa_flags |= SVR4_SA_RESETHAND; if ((bsa->sa_flags & SA_RESTART) != 0) - ssa->sa_flags |= SVR4_SA_RESTART; + ssa->ssa_flags |= SVR4_SA_RESTART; if ((bsa->sa_flags & SA_NODEFER) != 0) - ssa->sa_flags |= SVR4_SA_NODEFER; + ssa->ssa_flags |= SVR4_SA_NODEFER; if ((bsa->sa_flags & SA_NOCLDSTOP) != 0) - ssa->sa_flags |= SVR4_SA_NOCLDSTOP; + ssa->ssa_flags |= SVR4_SA_NOCLDSTOP; } void diff --git a/sys/svr4/svr4_signal.h b/sys/svr4/svr4_signal.h index 39444a9..0bc3e2d 100644 --- a/sys/svr4/svr4_signal.h +++ b/sys/svr4/svr4_signal.h @@ -94,10 +94,10 @@ typedef struct { } svr4_sigset_t; struct svr4_sigaction { - int sa_flags; - svr4_sig_t sa_handler; - svr4_sigset_t sa_mask; - int sa_reserved[2]; + int ssa_flags; + svr4_sig_t ssa_handler; + svr4_sigset_t ssa_mask; + int ssa_reserved[2]; }; struct svr4_sigaltstack { |