123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #pragma once
- #include <libc/src/include/stdint.h>
- #define SYS_NOT_EXISTS 0
- #define SYS_PUT_STRING 1
- #define SYS_OPEN 2
- #define SYS_CLOSE 3
- #define SYS_READ 4
- #define SYS_WRITE 5
- #define SYS_LSEEK 6
- #define SYS_FORK 7
- #define SYS_VFORK 8
- #define SYS_BRK 9
- #define SYS_SBRK 10
- #define SYS_REBOOT 11
- #define SYS_CHDIR 12
- #define SYS_GET_DENTS 13
- #define SYS_EXECVE 14
- #define SYS_WAIT4 15
- #define SYS_EXIT 16
- #define SYS_MKDIR 17
- #define SYS_NANOSLEEP 18
- #define SYS_CLOCK 19
- #define SYS_PIPE 20
- #define SYS_MSTAT 21
- #define SYS_UNLINK_AT 22
- #define SYS_KILL 23
- #define SYS_SIGACTION 24
- #define SYS_RT_SIGRETURN 25
- #define SYS_GETPID 26
- long syscall_invoke(uint64_t syscall_id, uint64_t arg0, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4,
- uint64_t arg5, uint64_t arg6, uint64_t arg7);
|