quoting Matthias Drochner:
> -check for a NULL uc_link before calling setcontext(2); do a real exit(3)
> instead with exit handlers and all that
> -If setcontext(2) returns (which it shouldn't), do an _exit(-1) rather
> than relying on a sensible return value to use as exit code. Makes
> it less likely that an ucontext corruption goes unnoticed.
This fixes regress/lib/libc/context for m68k.
Thanks to Steve Woodford for optimization hints.
by Matthias Drochner to i386 and alpha:
-check for a NULL uc_link before calling setcontext(2); do a real exit(3)
instead with exit handlers and all that
-If setcontext(2) returns (which it shouldn't), do an _exit(-1) rather
than relying on a sensible return value to use as exit code. Makes
it less likely that an ucontext corruption goes unnoticed.
quoting Matthias Drochner:
> -check for a NULL uc_link before calling setcontext(2); do a real exit(3)
> instead with exit handlers and all that
> -If setcontext(2) returns (which it shouldn't), do an _exit(-1) rather
> than relying on a sensible return value to use as exit code. Makes
> it less likely that an ucontext corruption goes unnoticed.
This also fixes regress/lib/libc/context for sparc64.
instead with exit handlers and all that
-If setcontext(2) returns (which it shouldn't), do an _exit(-1) rather
than relying on a sensible return value to use as exit code. Makes
it less likely that an ucontext corruption goes unnoticed.
signal handler, by deriving the context pointer from the stack pointer
instead of trying to read it from where the sigaction function may have
overwritten it with arbitrary bits.
Fix provided by Matthias Drochner in the PR.
(Drop the modf assembler version. We have the same code in libm.)
(Drop the ldexp inline-assembler version. The same code is in libm as
scalbn; the ldexp there is just a wrapper providing error handling.)