Implement support for POSIX thread cancellations

This change makes some miracle modifications to the System Five system
call support, which lets us have safe, correct, and atomic handling of
thread cancellations. It all turned out to be cheaper than anticipated
because it wasn't necessary to modify the system call veneers. We were
able to encode the cancellability of each system call into the magnums
found in libc/sysv/syscalls.sh. Since cancellations are so waq, we are
also supporting a lovely Musl Libc mask feature for raising ECANCELED.
This commit is contained in:
Justine Tunney 2022-11-04 01:04:43 -07:00
parent 37d40e087f
commit 2278327eba
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
145 changed files with 715 additions and 265 deletions

View file

@ -34,6 +34,5 @@ TEST(strsignal, test) {
TEST(strsignal, realtime) {
if (!SIGRTMIN) return;
ASSERT_STREQ("SIGRTMIN", strsignal(SIGRTMIN));
ASSERT_STREQ("SIGRTMIN+1", strsignal(SIGRTMIN + 1));
}