1// SPDX-License-Identifier: GPL-3.0-or-later
2// Syscall number definitions
3// This file was generated by scripts/gen_syscall.py
4
5#pragma once
6
7// expand to 1 if syscall is defined, 0 otherwise
8#define SYSCALL_DEFINED(name) (SYSCALL_##name > 0)
9
10#define SYSCALL_vfs_openat 1
11#define SYSCALL_NAME_1 vfs_openat
12
13#define SYSCALL_vfs_fstatat 2
14#define SYSCALL_NAME_2 vfs_fstatat
15
16#define SYSCALL_io_read 3
17#define SYSCALL_NAME_3 io_read
18
19#define SYSCALL_io_write 4
20#define SYSCALL_NAME_4 io_write
21
22#define SYSCALL_io_close 5
23#define SYSCALL_NAME_5 io_close
24
25#define SYSCALL_exit 6
26#define SYSCALL_NAME_6 exit
27
28#define SYSCALL_yield_cpu 7
29#define SYSCALL_NAME_7 yield_cpu
30
31#define SYSCALL_fork 8
32#define SYSCALL_NAME_8 fork
33
34#define SYSCALL_get_pid 10
35#define SYSCALL_NAME_10 get_pid
36
37#define SYSCALL_get_parent_pid 11
38#define SYSCALL_NAME_11 get_parent_pid
39
40#define SYSCALL_spawn 12
41#define SYSCALL_NAME_12 spawn
42
43#define SYSCALL_create_thread 13
44#define SYSCALL_NAME_13 create_thread
45
46#define SYSCALL_get_tid 14
47#define SYSCALL_NAME_14 get_tid
48
49#define SYSCALL_thread_exit 15
50#define SYSCALL_NAME_15 thread_exit
51
52#define SYSCALL_wait_for_thread 17
53#define SYSCALL_NAME_17 wait_for_thread
54
55#define SYSCALL_futex_wait 18
56#define SYSCALL_NAME_18 futex_wait
57
58#define SYSCALL_futex_wake 19
59#define SYSCALL_NAME_19 futex_wake
60
61#define SYSCALL_ipc_create 20
62#define SYSCALL_NAME_20 ipc_create
63
64#define SYSCALL_ipc_accept 21
65#define SYSCALL_NAME_21 ipc_accept
66
67#define SYSCALL_ipc_connect 22
68#define SYSCALL_NAME_22 ipc_connect
69
70#define SYSCALL_arch_syscall 23
71#define SYSCALL_NAME_23 arch_syscall
72
73#define SYSCALL_vfs_mount 24
74#define SYSCALL_NAME_24 vfs_mount
75
76#define SYSCALL_vfs_readlinkat 25
77#define SYSCALL_NAME_25 vfs_readlinkat
78
79#define SYSCALL_vfs_unlinkat 26
80#define SYSCALL_NAME_26 vfs_unlinkat
81
82#define SYSCALL_vfs_symlink 27
83#define SYSCALL_NAME_27 vfs_symlink
84
85#define SYSCALL_vfs_mkdir 28
86#define SYSCALL_NAME_28 vfs_mkdir
87
88#define SYSCALL_vfs_list_dir 29
89#define SYSCALL_NAME_29 vfs_list_dir
90
91#define SYSCALL_fd_manipulate 30
92#define SYSCALL_NAME_30 fd_manipulate
93
94#define SYSCALL_mmap_anonymous 31
95#define SYSCALL_NAME_31 mmap_anonymous
96
97#define SYSCALL_mmap_file 32
98#define SYSCALL_NAME_32 mmap_file
99
100#define SYSCALL_wait_for_process 33
101#define SYSCALL_NAME_33 wait_for_process
102
103#define SYSCALL_munmap 34
104#define SYSCALL_NAME_34 munmap
105
106#define SYSCALL_vfs_chdirat 35
107#define SYSCALL_NAME_35 vfs_chdirat
108
109#define SYSCALL_vfs_getcwd 36
110#define SYSCALL_NAME_36 vfs_getcwd
111
112#define SYSCALL_io_seek 37
113#define SYSCALL_NAME_37 io_seek
114
115#define SYSCALL_io_tell 38
116#define SYSCALL_NAME_38 io_tell
117
118#define SYSCALL_signal_register 39
119#define SYSCALL_NAME_39 signal_register
120
121#define SYSCALL_signal_process 40
122#define SYSCALL_NAME_40 signal_process
123
124#define SYSCALL_signal_thread 41
125#define SYSCALL_NAME_41 signal_thread
126
127#define SYSCALL_poweroff 42
128#define SYSCALL_NAME_42 poweroff
129
130#define SYSCALL_signal_return 43
131#define SYSCALL_NAME_43 signal_return
132
133#define SYSCALL_vm_protect 44
134#define SYSCALL_NAME_44 vm_protect
135
136#define SYSCALL_io_poll 45
137#define SYSCALL_NAME_45 io_poll
138
139#define SYSCALL_io_pselect 46
140#define SYSCALL_NAME_46 io_pselect
141
142#define SYSCALL_execveat 47
143#define SYSCALL_NAME_47 execveat
144
145#define SYSCALL_clock_msleep 48
146#define SYSCALL_NAME_48 clock_msleep
147
148#define SYSCALL_io_dup 49
149#define SYSCALL_NAME_49 io_dup
150
151#define SYSCALL_io_dup2 50
152#define SYSCALL_NAME_50 io_dup2
153
154#define SYSCALL_dmabuf_alloc 51
155#define SYSCALL_NAME_51 dmabuf_alloc
156
157#define SYSCALL_dmabuf_free 52
158#define SYSCALL_NAME_52 dmabuf_free
159
160#define SYSCALL_dmabuf_share 53
161#define SYSCALL_NAME_53 dmabuf_share
162
163#define SYSCALL_dmabuf_unshare 54
164#define SYSCALL_NAME_54 dmabuf_unshare
165
166#define SYSCALL_pipe 55
167#define SYSCALL_NAME_55 pipe
168
169#define SYSCALL_io_readv 56
170#define SYSCALL_NAME_56 io_readv
171
172#define SYSCALL_vfs_unmount 57
173#define SYSCALL_NAME_57 vfs_unmount
174
175#define SYSCALL_clock_gettimeofday 58
176#define SYSCALL_NAME_58 clock_gettimeofday
177
178#define SYSCALL_thread_setname 59
179#define SYSCALL_NAME_59 thread_setname
180
181#define SYSCALL_thread_getname 60
182#define SYSCALL_NAME_60 thread_getname
183
184#define SYSCALL_vfs_fchmodat 61
185#define SYSCALL_NAME_61 vfs_fchmodat
186
187#define SYSCALL_io_pread 62
188#define SYSCALL_NAME_62 io_pread
189
190#define SYSCALL_memfd_create 63
191#define SYSCALL_NAME_63 memfd_create
192
193#define SYSCALL_signal_mask_op 64
194#define SYSCALL_NAME_64 signal_mask_op
195
196#define SYSCALL_vfs_fsync 65
197#define SYSCALL_NAME_65 vfs_fsync
198
199