mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Create a fake syscall() function due to Python
This commit is contained in:
parent
4b2023ffab
commit
2eb7148474
8 changed files with 74 additions and 8 deletions
13
libc/stdio/syscall.h
Normal file
13
libc/stdio/syscall.h
Normal 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_ */
|
Loading…
Add table
Add a link
Reference in a new issue