From d1969ef001fc0450dca83f6d65da29ec1213655f Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 2 Oct 2019 14:50:22 +0900 Subject: [PATCH] Add syscall number definitions --- include/corax/syscall.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/corax/syscall.h diff --git a/include/corax/syscall.h b/include/corax/syscall.h new file mode 100644 index 0000000..f0c62cd --- /dev/null +++ b/include/corax/syscall.h @@ -0,0 +1,17 @@ +#ifndef __CORAX_SYSCALL_H +#define __CORAX_SYSCALL_H + +#define SYS_SOCKET 0 +#define SYS_CLOSE 1 +#define SYS_SENDTO 2 +#define SYS_RECVFROM 3 +#define SYS_CONNECT 4 +#define SYS_LISTEN 5 +#define SYS_ACCEPT 6 +#define SYS_SETSOCKOPT 7 +#define SYS_GETSOCKOPT 8 +#define SYS_SHUTDOWN 9 +#define SYS_SELECT 10 +#define SYS_POLL 11 + +#endif /* __CORAX_SYSCALL_H */ -- 2.47.3