kconfig: use pkg-config for ncurses detection
[akaros.git] / user / vmm / include / vmm / linux_syscalls.h
1 #pragma once
2
3 enum syscall_names {
4 DUNE_SYS_READ,
5 DUNE_SYS_WRITE,
6 DUNE_SYS_OPEN,
7 DUNE_SYS_CLOSE,
8 DUNE_SYS_STAT,
9 DUNE_SYS_FSTAT,
10 DUNE_SYS_LSTAT,
11 DUNE_SYS_POLL,
12 DUNE_SYS_LSEEK,
13 DUNE_SYS_MMAP,
14 DUNE_SYS_MPROTECT,
15 DUNE_SYS_MUNMAP,
16 DUNE_SYS_BRK,
17 DUNE_SYS_RT_SIGACTION,
18 DUNE_SYS_RT_SIGPROCMASK,
19 DUNE_SYS_RT_SIGRETURN,
20 DUNE_SYS_IOCTL,
21 DUNE_SYS_PREAD64,
22 DUNE_SYS_PWRITE64,
23 DUNE_SYS_READV,
24 DUNE_SYS_WRITEV,
25 DUNE_SYS_ACCESS,
26 DUNE_SYS_PIPE,
27 DUNE_SYS_SELECT,
28 DUNE_SYS_SCHED_YIELD,
29 DUNE_SYS_MREMAP,
30 DUNE_SYS_MSYNC,
31 DUNE_SYS_MINCORE,
32 DUNE_SYS_MADVISE,
33 DUNE_SYS_SHMGET,
34 DUNE_SYS_SHMAT,
35 DUNE_SYS_SHMCTL,
36 DUNE_SYS_DUP,
37 DUNE_SYS_DUP2,
38 DUNE_SYS_PAUSE,
39 DUNE_SYS_NANOSLEEP,
40 DUNE_SYS_GETITIMER,
41 DUNE_SYS_ALARM,
42 DUNE_SYS_SETITIMER,
43 DUNE_SYS_GETPID,
44 DUNE_SYS_SENDFILE,
45 DUNE_SYS_SOCKET,
46 DUNE_SYS_CONNECT,
47 DUNE_SYS_ACCEPT,
48 DUNE_SYS_SENDTO,
49 DUNE_SYS_RECVFROM,
50 DUNE_SYS_SENDMSG,
51 DUNE_SYS_RECVMSG,
52 DUNE_SYS_SHUTDOWN,
53 DUNE_SYS_BIND,
54 DUNE_SYS_LISTEN,
55 DUNE_SYS_GETSOCKNAME,
56 DUNE_SYS_GETPEERNAME,
57 DUNE_SYS_SOCKETPAIR,
58 DUNE_SYS_SETSOCKOPT,
59 DUNE_SYS_GETSOCKOPT,
60 DUNE_SYS_CLONE,
61 DUNE_SYS_FORK,
62 DUNE_SYS_VFORK,
63 DUNE_SYS_EXECVE,
64 DUNE_SYS_EXIT,
65 DUNE_SYS_WAIT4,
66 DUNE_SYS_KILL,
67 DUNE_SYS_UNAME,
68 DUNE_SYS_SEMGET,
69 DUNE_SYS_SEMOP,
70 DUNE_SYS_SEMCTL,
71 DUNE_SYS_SHMDT,
72 DUNE_SYS_MSGGET,
73 DUNE_SYS_MSGSND,
74 DUNE_SYS_MSGRCV,
75 DUNE_SYS_MSGCTL,
76 DUNE_SYS_FCNTL,
77 DUNE_SYS_FLOCK,
78 DUNE_SYS_FSYNC,
79 DUNE_SYS_FDATASYNC,
80 DUNE_SYS_TRUNCATE,
81 DUNE_SYS_FTRUNCATE,
82 DUNE_SYS_GETDENTS,
83 DUNE_SYS_GETCWD,
84 DUNE_SYS_CHDIR,
85 DUNE_SYS_FCHDIR,
86 DUNE_SYS_RENAME,
87 DUNE_SYS_MKDIR,
88 DUNE_SYS_RMDIR,
89 DUNE_SYS_CREAT,
90 DUNE_SYS_LINK,
91 DUNE_SYS_UNLINK,
92 DUNE_SYS_SYMLINK,
93 DUNE_SYS_READLINK,
94 DUNE_SYS_CHMOD,
95 DUNE_SYS_FCHMOD,
96 DUNE_SYS_CHOWN,
97 DUNE_SYS_FCHOWN,
98 DUNE_SYS_LCHOWN,
99 DUNE_SYS_UMASK,
100 DUNE_SYS_GETTIMEOFDAY,
101 DUNE_SYS_GETRLIMIT,
102 DUNE_SYS_GETRUSAGE,
103 DUNE_SYS_SYSINFO,
104 DUNE_SYS_TIMES,
105 DUNE_SYS_PTRACE,
106 DUNE_SYS_GETUID,
107 DUNE_SYS_SYSLOG,
108 DUNE_SYS_GETGID,
109 DUNE_SYS_SETUID,
110 DUNE_SYS_SETGID,
111 DUNE_SYS_GETEUID,
112 DUNE_SYS_GETEGID,
113 DUNE_SYS_SETPGID,
114 DUNE_SYS_GETPPID,
115 DUNE_SYS_GETPGRP,
116 DUNE_SYS_SETSID,
117 DUNE_SYS_SETREUID,
118 DUNE_SYS_SETREGID,
119 DUNE_SYS_GETGROUPS,
120 DUNE_SYS_SETGROUPS,
121 DUNE_SYS_SETRESUID,
122 DUNE_SYS_GETRESUID,
123 DUNE_SYS_SETRESGID,
124 DUNE_SYS_GETRESGID,
125 DUNE_SYS_GETPGID,
126 DUNE_SYS_SETFSUID,
127 DUNE_SYS_SETFSGID,
128 DUNE_SYS_GETSID,
129 DUNE_SYS_CAPGET,
130 DUNE_SYS_CAPSET,
131 DUNE_SYS_RT_SIGPENDING,
132 DUNE_SYS_RT_SIGTIMEDWAIT,
133 DUNE_SYS_RT_SIGQUEUEINFO,
134 DUNE_SYS_RT_SIGSUSPEND,
135 DUNE_SYS_SIGALTSTACK,
136 DUNE_SYS_UTIME,
137 DUNE_SYS_MKNOD,
138 DUNE_SYS_USELIB,
139 DUNE_SYS_PERSONALITY,
140 DUNE_SYS_USTAT,
141 DUNE_SYS_STATFS,
142 DUNE_SYS_FSTATFS,
143 DUNE_SYS_SYSFS,
144 DUNE_SYS_GETPRIORITY,
145 DUNE_SYS_SETPRIORITY,
146 DUNE_SYS_SCHED_SETPARAM,
147 DUNE_SYS_SCHED_GETPARAM,
148 DUNE_SYS_SCHED_SETSCHEDULER,
149 DUNE_SYS_SCHED_GETSCHEDULER,
150 DUNE_SYS_SCHED_GET_PRIORITY_MAX,
151 DUNE_SYS_SCHED_GET_PRIORITY_MIN,
152 DUNE_SYS_SCHED_RR_GET_INTERVAL,
153 DUNE_SYS_MLOCK,
154 DUNE_SYS_MUNLOCK,
155 DUNE_SYS_MLOCKALL,
156 DUNE_SYS_MUNLOCKALL,
157 DUNE_SYS_VHANGUP,
158 DUNE_SYS_MODIFY_LDT,
159 DUNE_SYS_PIVOT_ROOT,
160 DUNE_SYS__SYSCTL,
161 DUNE_SYS_PRCTL,
162 DUNE_SYS_ARCH_PRCTL,
163 DUNE_SYS_ADJTIMEX,
164 DUNE_SYS_SETRLIMIT,
165 DUNE_SYS_CHROOT,
166 DUNE_SYS_SYNC,
167 DUNE_SYS_ACCT,
168 DUNE_SYS_SETTIMEOFDAY,
169 DUNE_SYS_MOUNT,
170 DUNE_SYS_UMOUNT2,
171 DUNE_SYS_SWAPON,
172 DUNE_SYS_SWAPOFF,
173 DUNE_SYS_REBOOT,
174 DUNE_SYS_SETHOSTNAME,
175 DUNE_SYS_SETDOMAINNAME,
176 DUNE_SYS_IOPL,
177 DUNE_SYS_IOPERM,
178 DUNE_SYS_CREATE_MODULE,
179 DUNE_SYS_INIT_MODULE,
180 DUNE_SYS_DELETE_MODULE,
181 DUNE_SYS_GET_KERNEL_SYMS,
182 DUNE_SYS_QUERY_MODULE,
183 DUNE_SYS_QUOTACTL,
184 DUNE_SYS_NFSSERVCTL,
185 DUNE_SYS_GETPMSG,
186 DUNE_SYS_PUTPMSG,
187 DUNE_SYS_AFS_SYSCALL,
188 DUNE_SYS_TUXCALL,
189 DUNE_SYS_SECURITY,
190 DUNE_SYS_GETTID,
191 DUNE_SYS_READAHEAD,
192 DUNE_SYS_SETXATTR,
193 DUNE_SYS_LSETXATTR,
194 DUNE_SYS_FSETXATTR,
195 DUNE_SYS_GETXATTR,
196 DUNE_SYS_LGETXATTR,
197 DUNE_SYS_FGETXATTR,
198 DUNE_SYS_LISTXATTR,
199 DUNE_SYS_LLISTXATTR,
200 DUNE_SYS_FLISTXATTR,
201 DUNE_SYS_REMOVEXATTR,
202 DUNE_SYS_LREMOVEXATTR,
203 DUNE_SYS_FREMOVEXATTR,
204 DUNE_SYS_TKILL,
205 DUNE_SYS_TIME,
206 DUNE_SYS_FUTEX,
207 DUNE_SYS_SCHED_SETAFFINITY,
208 DUNE_SYS_SCHED_GETAFFINITY,
209 DUNE_SYS_SET_THREAD_AREA,
210 DUNE_SYS_IO_SETUP,
211 DUNE_SYS_IO_DESTROY,
212 DUNE_SYS_IO_GETEVENTS,
213 DUNE_SYS_IO_SUBMIT,
214 DUNE_SYS_IO_CANCEL,
215 DUNE_SYS_GET_THREAD_AREA,
216 DUNE_SYS_LOOKUP_DCOOKIE,
217 DUNE_SYS_EPOLL_CREATE,
218 DUNE_SYS_EPOLL_CTL_OLD,
219 DUNE_SYS_EPOLL_WAIT_OLD,
220 DUNE_SYS_REMAP_FILE_PAGES,
221 DUNE_SYS_GETDENTS64,
222 DUNE_SYS_SET_TID_ADDRESS,
223 DUNE_SYS_RESTART_SYSCALL,
224 DUNE_SYS_SEMTIMEDOP,
225 DUNE_SYS_FADVISE64,
226 DUNE_SYS_TIMER_CREATE,
227 DUNE_SYS_TIMER_SETTIME,
228 DUNE_SYS_TIMER_GETTIME,
229 DUNE_SYS_TIMER_GETOVERRUN,
230 DUNE_SYS_TIMER_DELETE,
231 DUNE_SYS_CLOCK_SETTIME,
232 DUNE_SYS_CLOCK_GETTIME,
233 DUNE_SYS_CLOCK_GETRES,
234 DUNE_SYS_CLOCK_NANOSLEEP,
235 DUNE_SYS_EXIT_GROUP,
236 DUNE_SYS_EPOLL_WAIT,
237 DUNE_SYS_EPOLL_CTL,
238 DUNE_SYS_TGKILL,
239 DUNE_SYS_UTIMES,
240 DUNE_SYS_VSERVER,
241 DUNE_SYS_MBIND,
242 DUNE_SYS_SET_MEMPOLICY,
243 DUNE_SYS_GET_MEMPOLICY,
244 DUNE_SYS_MQ_OPEN,
245 DUNE_SYS_MQ_UNLINK,
246 DUNE_SYS_MQ_TIMEDSEND,
247 DUNE_SYS_MQ_TIMEDRECEIVE,
248 DUNE_SYS_MQ_NOTIFY,
249 DUNE_SYS_MQ_GETSETATTR,
250 DUNE_SYS_KEXEC_LOAD,
251 DUNE_SYS_WAITID,
252 DUNE_SYS_ADD_KEY,
253 DUNE_SYS_REQUEST_KEY,
254 DUNE_SYS_KEYCTL,
255 DUNE_SYS_IOPRIO_SET,
256 DUNE_SYS_IOPRIO_GET,
257 DUNE_SYS_INOTIFY_INIT,
258 DUNE_SYS_INOTIFY_ADD_WATCH,
259 DUNE_SYS_INOTIFY_RM_WATCH,
260 DUNE_SYS_MIGRATE_PAGES,
261 DUNE_SYS_OPENAT,
262 DUNE_SYS_MKDIRAT,
263 DUNE_SYS_MKNODAT,
264 DUNE_SYS_FCHOWNAT,
265 DUNE_SYS_FUTIMESAT,
266 DUNE_SYS_NEWFSTATAT,
267 DUNE_SYS_UNLINKAT,
268 DUNE_SYS_RENAMEAT,
269 DUNE_SYS_LINKAT,
270 DUNE_SYS_SYMLINKAT,
271 DUNE_SYS_READLINKAT,
272 DUNE_SYS_FCHMODAT,
273 DUNE_SYS_FACCESSAT,
274 DUNE_SYS_PSELECT6,
275 DUNE_SYS_PPOLL,
276 DUNE_SYS_UNSHARE,
277 DUNE_SYS_SET_ROBUST_LIST,
278 DUNE_SYS_GET_ROBUST_LIST,
279 DUNE_SYS_SPLICE,
280 DUNE_SYS_TEE,
281 DUNE_SYS_SYNC_FILE_RANGE,
282 DUNE_SYS_VMSPLICE,
283 DUNE_SYS_MOVE_PAGES,
284 DUNE_SYS_UTIMENSAT,
285 DUNE_SYS_EPOLL_PWAIT,
286 DUNE_SYS_SIGNALFD,
287 DUNE_SYS_TIMERFD_CREATE,
288 DUNE_SYS_EVENTFD,
289 DUNE_SYS_FALLOCATE,
290 DUNE_SYS_TIMERFD_SETTIME,
291 DUNE_SYS_TIMERFD_GETTIME,
292 DUNE_SYS_ACCEPT4,
293 DUNE_SYS_SIGNALFD4,
294 DUNE_SYS_EVENTFD2,
295 DUNE_SYS_EPOLL_CREATE1,
296 DUNE_SYS_DUP3,
297 DUNE_SYS_PIPE2,
298 DUNE_SYS_INOTIFY_INIT1,
299 DUNE_SYS_PREADV,
300 DUNE_SYS_PWRITEV,
301 DUNE_SYS_RT_TGSIGQUEUEINFO,
302 DUNE_SYS_PERF_EVENT_OPEN,
303 DUNE_SYS_RECVMMSG,
304 DUNE_SYS_FANOTIFY_INIT,
305 DUNE_SYS_FANOTIFY_MARK,
306 DUNE_SYS_PRLIMIT64,
307 DUNE_SYS_NAME_TO_HANDLE_AT,
308 DUNE_SYS_OPEN_BY_HANDLE_AT,
309 DUNE_SYS_CLOCK_ADJTIME,
310 DUNE_SYS_SYNCFS,
311 DUNE_SYS_SENDMMSG,
312 DUNE_SYS_SETNS,
313 DUNE_SYS_GETCPU,
314 DUNE_SYS_PROCESS_VM_READV,
315 DUNE_SYS_PROCESS_VM_WRITEV,
316 DUNE_SYS_KCMP,
317 DUNE_SYS_FINIT_MODULE,
318 DUNE_SYS_SCHED_SETATTR,
319 DUNE_SYS_SCHED_GETATTR,
320 DUNE_SYS_RENAMEAT2,
321 DUNE_SYS_SECCOMP,
322 DUNE_SYS_GETRANDOM,
323 DUNE_SYS_MEMFD_CREATE,
324 DUNE_SYS_KEXEC_FILE_LOAD,
325 DUNE_SYS_BPF,
326 DUNE_STUB_EXECVEAT,
327 DUNE_USERFAULTFD,
328 DUNE_MEMBARRIER,
329 DUNE_MLOCK2,
330 DUNE_COPY_FILE_RANGE,
331 DUNE_PREADV2,
332 DUNE_PWRITEV2,
333 };