From owner-cvs-all Mon Oct 4 12:34:39 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 8D15515522; Mon, 4 Oct 1999 12:34:02 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: (from marcel@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA05951; Mon, 4 Oct 1999 12:34:01 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Message-Id: <199910041934.MAA05951@freefall.freebsd.org> From: Marcel Moolenaar Date: Mon, 4 Oct 1999 12:34:01 -0700 (PDT) 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 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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