Introduce getcpu() system call from glibc

This commit is contained in:
Justine Tunney 2024-02-21 18:13:30 -08:00
parent 3eb405e0e2
commit 77a92f517b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 111 additions and 4 deletions

View file

@ -2,8 +2,9 @@
#define COSMOPOLITAN_LIBC_STDIO_SYSCALL_H_
COSMOPOLITAN_C_START_
#define SYS_gettid 186
#define SYS_getrandom 318
#define SYS_gettid 1
#define SYS_getrandom 2
#define SYS_getcpu 3
long syscall(long, ...) libcesque;