sortix--sortix/libc
Jonas 'Sortie' Termansen 5e7605fad2 Implement threading primitives that truly sleep.
The idle thread is now actually run when the system is idle because it
truly goes idle. The idle thread is made power efficient by using the hlt
instruction rather than a busy loop.

The new futex(2) system call is used to implement fast user-space mutexes,
condition variables, and semaphores. The same backend and design is used as
kutexes for truly sleeping kernel mutexes and condition variables.

The new exit_thread(2) flag EXIT_THREAD_FUTEX_WAKE wakes a futex.

Sleeping on clocks in the kernel now uses timers for true sleep.

The interrupt worker thread now truly sleeps when idle.

Kernel threads are now named.

This is a compatible ABI change.
2021-06-23 22:10:47 +02:00
..
arpa/inet Fix inet_pton(3) parsing 1:: and ::1.2.3.4 cases. 2020-08-01 14:23:44 +02:00
assert
blf
c++
ctype
dirent
dlfcn
err
errno
error
fcntl
fnmatch
fsmarshall
fstab
getopt
grp Remove ENOUSER and ENOGROUP. 2021-05-10 23:26:31 +02:00
include Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
init
inttypes
ioleast
langinfo
libgen
locale
malloc
msr
netdb Add getnameinfo(3). 2017-02-14 20:43:30 +01:00
netinet/in
poll
psctl
pthread Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
pty Add openpty(3). 2016-11-23 22:31:05 +01:00
pwd Remove ENOUSER and ENOGROUP. 2021-05-10 23:26:31 +02:00
regex
sched
scram Document scram(2). 2017-02-12 13:59:07 +01:00
semaphore Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
sha2 Add <sha2.h>. 2020-04-13 22:15:04 +02:00
signal
ssp
stdio Fix printf(3) handling of negative precision. 2021-02-13 22:33:03 +01:00
stdio_ext
stdlib Don't unblock SIGABRT in abort(3) before calling raise(SIGABRT). 2018-09-01 12:56:07 +02:00
string Abort on overlapping memcpy. 2021-05-30 23:48:19 +02:00
sys Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00
syslog
termios Add pseudo terminals. 2016-11-23 22:31:05 +01:00
time Fix strftime(3) error handling and add %F, %z, and %Z support. 2021-04-06 23:22:22 +02:00
timespec Fix handling of overflow and non-canonical values in timespec APIs. 2021-06-22 21:48:27 +02:00
ubsan
unistd Fix usleep(2) sleeping 1000x too much regression. 2021-06-23 22:09:57 +02:00
utime
wchar
wctype
x64
x86
.gitignore Add <sha2.h>. 2020-04-13 22:15:04 +02:00
Makefile Implement threading primitives that truly sleep. 2021-06-23 22:10:47 +02:00