Files
NJU_PA/nanos-lite/include/syscall.h
tracer-ics2023 ffcd9fbbab > compile NEMU
221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 12:26:49 up 6 days, 21:24,  1 user,  load average: 0.72, 0.73, 0.62
2024-09-24 12:26:53 +08:00

41 lines
805 B
C

#ifndef __NANOS_SYSCALL_H__
#define __NANOS_SYSCALL_H__
#define SYSCALLS(_) \
_(exit) \
_(yield) \
_(open) \
_(read) \
_(write) \
_(kill) \
_(getpid) \
_(close) \
_(lseek) \
_(brk) \
_(fstat) \
_(time) \
_(signal) \
_(execve) \
_(fork) \
_(link) \
_(unlink) \
_(wait) \
_(times) \
_(gettimeofday)
#define _SYSCALL_NAME(name) SYS_##name
#define SYSCALL_NAME(name) _SYSCALL_NAME(name),
#define SYSCALL_NAME_STR(name) #name,
#ifndef __SYSCALL_H__
#define __SYSCALL_H__
enum {
SYSCALLS(SYSCALL_NAME)
};
#endif
const char __syscall_names[][32] = {
SYSCALLS(SYSCALL_NAME_STR)
};
#endif