[llvm] r270280 - Switch from the linux-specific 'struct sigaltstack' to POSIX's 'stack_t'. This
Richard Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri May 20 14:38:16 PDT 2016
Author: rsmith
Date: Fri May 20 16:38:15 2016
New Revision: 270280
URL: http://llvm.org/viewvc/llvm-project?rev=270280&view=rev
Log:
Switch from the linux-specific 'struct sigaltstack' to POSIX's 'stack_t'. This
is what I get for trusting my system's man pages I suppose.
Modified:
llvm/trunk/lib/Support/Unix/Signals.inc
Modified: llvm/trunk/lib/Support/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Signals.inc?rev=270280&r1=270279&r2=270280&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Signals.inc (original)
+++ llvm/trunk/lib/Support/Unix/Signals.inc Fri May 20 16:38:15 2016
@@ -122,7 +122,7 @@ static void RegisterHandler(int Signal)
// We don't make any attempt to remove our alt signal stack if we remove our
// signal handlers; that can't be done reliably if someone else is also trying
// to do the same thing.
-static struct sigaltstack OldAltStack;
+static stack_t OldAltStack;
static void CreateSigAltStack() {
const size_t AltStackSize = MINSIGSTKSZ + 8192;
@@ -136,7 +136,7 @@ static void CreateSigAltStack() {
(OldAltStack.ss_sp && OldAltStack.ss_size >= AltStackSize))
return;
- struct sigaltstack AltStack = {};
+ stack_t AltStack = {};
AltStack.ss_sp = malloc(AltStackSize);
AltStack.ss_size = AltStackSize;
if (sigaltstack(&AltStack, &OldAltStack) != 0)
More information about the llvm-commits
mailing list