Date: Mon, 4 Oct 1999 12:34:01 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha machdep.c src/sys/alpha/include reg.h signal.h ucontext.h src/sys/i386/i386 genassym.c machdep.c src/sys/i386/include signal.h ucontext.h src/sys/pc98/i386 machdep.c src/sys/sys signal.h ucontext.h Message-ID: <199910041934.MAA05951@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 1999/10/04 12:34:01 PDT
Modified files:
sys/alpha/alpha machdep.c
sys/alpha/include reg.h signal.h ucontext.h
sys/i386/i386 genassym.c machdep.c
sys/i386/include signal.h ucontext.h
sys/pc98/i386 machdep.c
sys/sys signal.h ucontext.h
Log:
Re-introduction of sigcontext.
struct sigcontext and ucontext_t/mcontext_t are defined in such
a way that both (ie struct sigcontext and ucontext_t) can be
passed on to sigreturn. The signal handler is still given a
ucontext_t for maximum flexibility.
For backward compatibility sigreturn restores the state for the
alternate signal stack from sigcontext.sc_onstack and not from
ucontext_t.uc_stack. A good way to determine which value the
application has set and thus which value to use, is still open
for discussion.
NOTE: This change should only affect those binaries that use
sigcontext and/or ucontext_t. In the source tree itself
this is only doscmd. Recompilation is required for those
applications.
This commit also fixes a lot of style bugs without hopefully
adding new ones.
NOTE: struct sigaltstack.ss_size now has type size_t again. For
some reason I changed that into unsigned int.
Parts submitted by: bde
sigaltstack bug found by: bde
Revision Changes Path
1.56 +33 -13 src/sys/alpha/alpha/machdep.c
1.6 +10 -1 src/sys/alpha/include/reg.h
1.5 +26 -2 src/sys/alpha/include/signal.h
1.2 +17 -11 src/sys/alpha/include/ucontext.h
1.80 +4 -4 src/sys/i386/i386/genassym.c
1.366 +11 -8 src/sys/i386/i386/machdep.c
1.11 +52 -23 src/sys/i386/include/signal.h
1.2 +15 -8 src/sys/i386/include/ucontext.h
1.135 +11 -8 src/sys/pc98/i386/machdep.c
1.18 +59 -49 src/sys/sys/signal.h
1.2 +17 -8 src/sys/sys/ucontext.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910041934.MAA05951>
