|
MOS Source Code
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
8#define SYSCALL_DEFINED(name) (SYSCALL_##name > 0)
10#define SYSCALL_vfs_openat 1
11#define SYSCALL_NAME_1 vfs_openat
13#define SYSCALL_vfs_fstatat 2
14#define SYSCALL_NAME_2 vfs_fstatat
16#define SYSCALL_io_read 3
17#define SYSCALL_NAME_3 io_read
19#define SYSCALL_io_write 4
20#define SYSCALL_NAME_4 io_write
22#define SYSCALL_io_close 5
23#define SYSCALL_NAME_5 io_close
26#define SYSCALL_NAME_6 exit
28#define SYSCALL_yield_cpu 7
29#define SYSCALL_NAME_7 yield_cpu
32#define SYSCALL_NAME_8 fork
34#define SYSCALL_get_pid 10
35#define SYSCALL_NAME_10 get_pid
37#define SYSCALL_get_parent_pid 11
38#define SYSCALL_NAME_11 get_parent_pid
40#define SYSCALL_spawn 12
41#define SYSCALL_NAME_12 spawn
43#define SYSCALL_create_thread 13
44#define SYSCALL_NAME_13 create_thread
46#define SYSCALL_get_tid 14
47#define SYSCALL_NAME_14 get_tid
49#define SYSCALL_thread_exit 15
50#define SYSCALL_NAME_15 thread_exit
52#define SYSCALL_wait_for_thread 17
53#define SYSCALL_NAME_17 wait_for_thread
55#define SYSCALL_futex_wait 18
56#define SYSCALL_NAME_18 futex_wait
58#define SYSCALL_futex_wake 19
59#define SYSCALL_NAME_19 futex_wake
61#define SYSCALL_ipc_create 20
62#define SYSCALL_NAME_20 ipc_create
64#define SYSCALL_ipc_accept 21
65#define SYSCALL_NAME_21 ipc_accept
67#define SYSCALL_ipc_connect 22
68#define SYSCALL_NAME_22 ipc_connect
70#define SYSCALL_arch_syscall 23
71#define SYSCALL_NAME_23 arch_syscall
73#define SYSCALL_vfs_mount 24
74#define SYSCALL_NAME_24 vfs_mount
76#define SYSCALL_vfs_readlinkat 25
77#define SYSCALL_NAME_25 vfs_readlinkat
79#define SYSCALL_vfs_unlinkat 26
80#define SYSCALL_NAME_26 vfs_unlinkat
82#define SYSCALL_vfs_symlink 27
83#define SYSCALL_NAME_27 vfs_symlink
85#define SYSCALL_vfs_mkdir 28
86#define SYSCALL_NAME_28 vfs_mkdir
88#define SYSCALL_vfs_list_dir 29
89#define SYSCALL_NAME_29 vfs_list_dir
91#define SYSCALL_fd_manipulate 30
92#define SYSCALL_NAME_30 fd_manipulate
94#define SYSCALL_mmap_anonymous 31
95#define SYSCALL_NAME_31 mmap_anonymous
97#define SYSCALL_mmap_file 32
98#define SYSCALL_NAME_32 mmap_file
100#define SYSCALL_wait_for_process 33
101#define SYSCALL_NAME_33 wait_for_process
103#define SYSCALL_munmap 34
104#define SYSCALL_NAME_34 munmap
106#define SYSCALL_vfs_chdirat 35
107#define SYSCALL_NAME_35 vfs_chdirat
109#define SYSCALL_vfs_getcwd 36
110#define SYSCALL_NAME_36 vfs_getcwd
112#define SYSCALL_io_seek 37
113#define SYSCALL_NAME_37 io_seek
115#define SYSCALL_io_tell 38
116#define SYSCALL_NAME_38 io_tell
118#define SYSCALL_signal_register 39
119#define SYSCALL_NAME_39 signal_register
121#define SYSCALL_signal_process 40
122#define SYSCALL_NAME_40 signal_process
124#define SYSCALL_signal_thread 41
125#define SYSCALL_NAME_41 signal_thread
127#define SYSCALL_poweroff 42
128#define SYSCALL_NAME_42 poweroff
130#define SYSCALL_signal_return 43
131#define SYSCALL_NAME_43 signal_return
133#define SYSCALL_vm_protect 44
134#define SYSCALL_NAME_44 vm_protect
136#define SYSCALL_io_poll 45
137#define SYSCALL_NAME_45 io_poll
139#define SYSCALL_io_pselect 46
140#define SYSCALL_NAME_46 io_pselect
142#define SYSCALL_execveat 47
143#define SYSCALL_NAME_47 execveat
145#define SYSCALL_clock_msleep 48
146#define SYSCALL_NAME_48 clock_msleep
148#define SYSCALL_io_dup 49
149#define SYSCALL_NAME_49 io_dup
151#define SYSCALL_io_dup2 50
152#define SYSCALL_NAME_50 io_dup2
154#define SYSCALL_dmabuf_alloc 51
155#define SYSCALL_NAME_51 dmabuf_alloc
157#define SYSCALL_dmabuf_free 52
158#define SYSCALL_NAME_52 dmabuf_free
160#define SYSCALL_dmabuf_share 53
161#define SYSCALL_NAME_53 dmabuf_share
163#define SYSCALL_dmabuf_unshare 54
164#define SYSCALL_NAME_54 dmabuf_unshare
166#define SYSCALL_pipe 55
167#define SYSCALL_NAME_55 pipe
169#define SYSCALL_io_readv 56
170#define SYSCALL_NAME_56 io_readv
172#define SYSCALL_vfs_unmount 57
173#define SYSCALL_NAME_57 vfs_unmount
175#define SYSCALL_clock_gettimeofday 58
176#define SYSCALL_NAME_58 clock_gettimeofday
178#define SYSCALL_thread_setname 59
179#define SYSCALL_NAME_59 thread_setname
181#define SYSCALL_thread_getname 60
182#define SYSCALL_NAME_60 thread_getname
184#define SYSCALL_vfs_fchmodat 61
185#define SYSCALL_NAME_61 vfs_fchmodat
187#define SYSCALL_io_pread 62
188#define SYSCALL_NAME_62 io_pread
190#define SYSCALL_memfd_create 63
191#define SYSCALL_NAME_63 memfd_create
193#define SYSCALL_signal_mask_op 64
194#define SYSCALL_NAME_64 signal_mask_op
196#define SYSCALL_vfs_fsync 65
197#define SYSCALL_NAME_65 vfs_fsync