Create a fake syscall() function due to Python

This commit is contained in:
Justine Tunney 2023-06-09 05:18:38 -07:00
parent 4b2023ffab
commit 2eb7148474
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
8 changed files with 74 additions and 8 deletions

13
libc/stdio/syscall.h Normal file
View file

@ -0,0 +1,13 @@
#ifndef COSMOPOLITAN_LIBC_STDIO_SYSCALL_H_
#define COSMOPOLITAN_LIBC_STDIO_SYSCALL_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define SYS_gettid 186
#define SYS_getrandom 318
long syscall(long, ...);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_STDIO_SYSCALL_H_ */