2022-10-02 15:02:15 +00:00
|
|
|
#ifndef _SYS_SYSCALL_H
|
|
|
|
#define _SYS_SYSCALL_H
|
|
|
|
|
2022-10-19 15:49:55 +00:00
|
|
|
#define SYS_exit 0
|
|
|
|
#define SYS_yield 1
|
|
|
|
#define SYS_sleep 2
|
|
|
|
#define SYS_write 3
|
|
|
|
#define SYS_paint 4
|
|
|
|
#define SYS_getprocid 5
|
|
|
|
#define SYS_mmap 6
|
|
|
|
#define SYS_munmap 7
|
|
|
|
#define SYS_open 8
|
|
|
|
#define SYS_read 9
|
|
|
|
#define SYS_close 10
|
|
|
|
#define SYS_seek 11
|
2022-10-26 16:57:06 +00:00
|
|
|
#define SYS_execv 12
|
2022-10-19 15:49:55 +00:00
|
|
|
#define SYS_fcntl 13
|
|
|
|
#define SYS_mprotect 14
|
2022-10-30 08:08:29 +00:00
|
|
|
#define SYS_clock_gettime 15
|
2022-10-19 15:49:55 +00:00
|
|
|
#define SYS_mkdir 16
|
|
|
|
#define SYS_fork 17
|
|
|
|
#define SYS_waitpid 18
|
2022-10-20 17:03:24 +00:00
|
|
|
#define SYS_access 19
|
2022-10-21 16:31:09 +00:00
|
|
|
#define SYS_fstat 20
|
2022-10-22 12:26:42 +00:00
|
|
|
#define SYS_pstat 21
|
2022-10-23 12:03:46 +00:00
|
|
|
#define SYS_getdents 22
|
2022-10-23 16:35:32 +00:00
|
|
|
#define SYS_stat 23
|
2022-10-25 16:58:06 +00:00
|
|
|
#define SYS_dup2 24
|
2022-10-28 15:19:26 +00:00
|
|
|
#define SYS_setuid 25
|
|
|
|
#define SYS_setgid 26
|
2022-10-30 18:55:38 +00:00
|
|
|
#define SYS_umask 27
|
2022-10-02 15:02:15 +00:00
|
|
|
|
|
|
|
#endif
|