2023-01-05 21:39:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-01-22 14:00:20 +00:00
|
|
|
#define enumerate_syscalls(_e) \
|
2023-03-18 19:12:59 +00:00
|
|
|
_e(exit) _e(clock_gettime) _e(mmap) _e(munmap) _e(usleep) _e(open) _e(close) _e(read) _e(getpid) _e(write) \
|
2023-03-28 19:28:56 +00:00
|
|
|
_e(lseek) _e(mkdir) _e(exec) _e(mknod) _e(fork) _e(waitpid) _e(getppid) _e(fcntl) _e(getdents)
|
2023-01-05 21:39:56 +00:00
|
|
|
|
|
|
|
enum Syscalls
|
|
|
|
{
|
|
|
|
#undef __enumerate
|
|
|
|
#define __enumerate(name) SYS_##name,
|
|
|
|
enumerate_syscalls(__enumerate)
|
|
|
|
#undef __enumerate
|
|
|
|
__count
|
|
|
|
};
|