This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
cosmopolitan
Watch
1
Star
0
Fork
You've already forked cosmopolitan
0
mirror of
https://github.com/jart/cosmopolitan.git
synced
2025-02-01 12:03:41 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
f7bccf5513
cosmopolitan
/
libc
/
sysv
/
consts
/
SIGTHR.s
3 lines
86 B
ArmAsm
Raw
Normal View
History
Unescape
Escape
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.
2022-11-04 08:04:43 +00:00
.include
"
o
/
l
i
b
c
/
s
y
s
v
/
c
o
n
s
t
s
/
s
y
s
c
o
n
.
i
n
t
e
r
n
a
l
.
i
n
c
"
Improve cancellations, randomness, and time - Exhaustively document cancellation points - Rename SIGCANCEL to SIGTHR just like BSDs - Further improve POSIX thread cancellations - Ensure asynchronous cancellations work correctly - Elevate the quality of getrandom() and getentropy() - Make futexes cancel correctly on OpenBSD 6.x and 7.x - Add reboot.com and shutdown.com to examples directory - Remove underscore prefix from awesome timespec_*() APIs - Create assertions that help verify our cancellation points - Remove bad timespec APIs (cmp generalizes eq/ne/gt/gte/lt/lte)
2022-11-06 02:49:41 +00:00
.syscon
sig,
S
I
G
T
H
R
,
3
2
,
7
,
3
2
,
3
2
,
3
3
,
3
2
Reference in a new issue
Copy permalink