2023-01-05 21:39:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-01-22 14:00:20 +00:00
|
|
|
#define enumerate_syscalls(_e) \
|
2023-04-15 18:26:15 +00:00
|
|
|
_e(exit) _e(clock_gettime) _e(mmap) _e(munmap) _e(usleep) _e(openat) _e(close) _e(read) _e(getpid) _e(write) \
|
2023-05-18 17:42:14 +00:00
|
|
|
_e(lseek) _e(mkdir) _e(execve) _e(fork) _e(waitpid) _e(getppid) _e(fcntl) _e(getdents) _e(getuid) _e(geteuid) \
|
|
|
|
_e(getgid) _e(getegid) _e(setuid) _e(setgid) _e(seteuid) _e(setegid) _e(fchmodat) _e(fchownat) _e(ioctl) \
|
|
|
|
_e(fstatat) _e(chdir) _e(getcwd) _e(unlinkat) _e(uname) _e(sethostname) _e(dup2) _e(pipe) _e(mount) \
|
2023-06-17 15:27:22 +00:00
|
|
|
_e(umount) _e(pstat) _e(getrusage) _e(symlinkat) _e(readlinkat) _e(umask) _e(linkat) _e(faccessat) \
|
2023-07-12 11:44:25 +00:00
|
|
|
_e(pivot_root) _e(sigreturn) _e(sigaction) _e(kill) _e(sigprocmask) _e(setpgid) _e(isatty) \
|
2023-08-03 06:47:37 +00:00
|
|
|
_e(getpgid) _e(socket) _e(bind) _e(connect) _e(listen) _e(accept) _e(poll) _e(msync) \
|
2023-08-08 12:14:35 +00:00
|
|
|
_e(truncate) _e(ftruncate) _e(utimensat)
|
2023-01-05 21:39:56 +00:00
|
|
|
|
|
|
|
enum Syscalls
|
|
|
|
{
|
|
|
|
#undef __enumerate
|
|
|
|
#define __enumerate(name) SYS_##name,
|
|
|
|
enumerate_syscalls(__enumerate)
|
|
|
|
#undef __enumerate
|
|
|
|
__count
|
|
|
|
};
|