]> git.corax.cc Git - corax/commitdiff
Add syscall number definitions
authorMatthias Kruk <m@m10k.eu>
Wed, 2 Oct 2019 05:50:22 +0000 (14:50 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 2 Oct 2019 05:50:22 +0000 (14:50 +0900)
include/corax/syscall.h [new file with mode: 0644]

diff --git a/include/corax/syscall.h b/include/corax/syscall.h
new file mode 100644 (file)
index 0000000..f0c62cd
--- /dev/null
@@ -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 */