NetBSD/lib/libc/arch
martin 2ed5a47025 Pull over rev. 1.5 of the i386 version (../../i386/resumecontext.S),
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.
2006-12-13 10:48:02 +00:00
..
alpha if setcontext(2) returns, _exit(2) with a return code of -1 instead 2006-11-08 21:16:40 +00:00
arm Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
hppa Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
i386 if setcontext(2) returns, _exit(2) with a return code of -1 instead 2006-11-08 21:16:40 +00:00
ia64 Towards ia64 libc. Round #2 2006-09-23 17:39:34 +00:00
m68k Pull over rev. 1.5 of the i386 version (../../i386/resumecontext.S), 2006-12-13 10:48:02 +00:00
mips Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
ns32k Rename these functions to the __<name>14 names. 2006-09-04 01:08:11 +00:00
powerpc Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
powerpc64 Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
sh3 Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
sh5 Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
sparc Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
sparc64 Pull over rev. 1.5 of the i386 version (../../i386/resumecontext.S), 2006-12-08 15:51:45 +00:00
vax Sync all resumecontext.c versions with the changes originally made 2006-12-08 16:09:02 +00:00
x86_64 if setcontext(2) returns, _exit(2) with a return code of -1 instead 2006-11-08 21:16:40 +00:00