musl/arch/x86_64/bits
Rich Felker feee98903c overhaul pthread cancellation
this patch improves the correctness, simplicity, and size of
cancellation-related code. modulo any small errors, it should now be
completely conformant, safe, and resource-leak free.

the notion of entering and exiting cancellation-point context has been
completely eliminated and replaced with alternative syscall assembly
code for cancellable syscalls. the assembly is responsible for setting
up execution context information (stack pointer and address of the
syscall instruction) which the cancellation signal handler can use to
determine whether the interrupted code was in a cancellable state.

these changes eliminate race conditions in the previous generation of
cancellation handling code (whereby a cancellation request received
just prior to the syscall would not be processed, leaving the syscall
to block, potentially indefinitely), and remedy an issue where
non-cancellable syscalls made from signal handlers became cancellable
if the signal handler interrupted a cancellation point.

x86_64 asm is untested and may need a second try to get it right.
2011-04-17 11:43:03 -04:00
..
alltypes.h.sh fix and cleanup suseconds_t/timeval stuff (broken on 64-bit) 2011-04-13 13:16:49 -04:00
endian.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
errno.h fix missing ENOTSUP error code 2011-03-11 09:50:54 -05:00
fcntl.h fix O_SYNC definition, cleanup fcntl.h 2011-04-14 22:06:30 -04:00
fenv.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
float.h add missing float.h macros 2011-04-10 18:27:47 -04:00
in.h add ip6 pktinfo stuff for x86_64 2011-04-05 17:27:28 -04:00
ioctl.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
ipc.h numerous fixes to sysv ipc 2011-04-13 16:45:43 -04:00
limits.h protect some limit constants with feature test macros on x86_64 2011-02-15 19:16:37 -05:00
mman.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
msg.h numerous fixes to sysv ipc 2011-04-13 16:45:43 -04:00
posix.h fix x86_64 wrongly reporting itself as ILP32 instead of LP64 2011-02-15 15:56:58 -05:00
pthread.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
reg.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
setjmp.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
shm.h numerous fixes to sysv ipc 2011-04-13 16:45:43 -04:00
signal.h make sigaltstack work (missing macros in signal.h, error conditions) 2011-03-10 10:17:29 -05:00
socket.h workaround broken msghdr struct on 64bit linux 2011-04-08 09:24:19 -04:00
stat.h Update x86_64 bits to mirror (modulo platform differences) the latest changes 2011-02-15 08:02:33 -05:00
statfs.h fix statvfs syscalls (missing size argument) 2011-04-03 15:42:31 -04:00
stdarg.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
stdint.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
syscall.h overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
sysmacros.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
tcp.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
termios.h various legacy and linux-specific stuff 2011-03-18 21:52:26 -04:00
user.h Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
wait.h Update x86_64 bits to mirror (modulo platform differences) the latest changes 2011-02-15 08:02:33 -05:00
wexitstatus.h add missing WIFCONTINUED macro and improve WIFSIGNALED 2011-02-19 02:23:29 -05:00