Searched refs:AltStack (Results 1 – 5 of 5) sorted by relevance
86 void setSignalAlternateStack(void *AltStack) { in setSignalAlternateStack() argument87 sigaltstack((stack_t const *)AltStack, nullptr); in setSignalAlternateStack()105 void *threadFun(void *AltStack) { in threadFun() argument109 setSignalAlternateStack(AltStack); in threadFun()156 stack_t AltStack = {}; in main() local157 AltStack.ss_sp = (char *)Mapping + DefaultStackSize; in main()158 AltStack.ss_flags = 0; in main()159 AltStack.ss_size = AltStackSize; in main()165 pthread_create(&Thread, &ThreadAttr, &threadFun, (void *)&AltStack); in main()
140 stack_t AltStack = {};141 AltStack.ss_sp = reinterpret_cast<char *>(malloc(AltStackSize));142 NewAltStackPointer = AltStack.ss_sp; // Save to avoid reporting a leak.143 AltStack.ss_size = AltStackSize;144 if (sigaltstack(&AltStack, &OldAltStack) != 0)145 free(AltStack.ss_sp);
141 stack_t AltStack = {};142 AltStack.ss_sp = reinterpret_cast<char *>(malloc(AltStackSize));143 AltStack.ss_size = AltStackSize;144 if (sigaltstack(&AltStack, &OldAltStack) != 0)145 free(AltStack.ss_sp);
272 stack_t AltStack = {};273 AltStack.ss_sp = static_cast<char *>(safe_malloc(AltStackSize));274 NewAltStackPointer = AltStack.ss_sp; // Save to avoid reporting a leak.275 AltStack.ss_size = AltStackSize;276 if (sigaltstack(&AltStack, &OldAltStack) != 0)277 free(AltStack.ss_sp);