aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-11-17 10:19:58 -0800
committerNicholas <nbnoll@eml.cc>2021-11-17 10:19:58 -0800
commit8d60b38fbe778de30c3a1751b35d8e366882cd01 (patch)
tree51ef447e52fac0cb6f46b4a854e4e7f4f946a29c /include
parentb27936eb5a877fada8e6edf939e1acb5da535712 (diff)
update: sys
Diffstat (limited to 'include')
-rw-r--r--include/sys.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sys.h b/include/sys.h
new file mode 100644
index 0000000..773ff3a
--- /dev/null
+++ b/include/sys.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <sys/constants.h>
+
+#define sys·Oread 0x0u
+#define sys·Owrite 0x1u
+#define sys·Ordwr 0x2u
+
+/* system calls */
+int sys·call(int num, ...);
+int sys·open(char *path, int flag, int mode, int *ret);
+int sys·close(char *path, int flag, int mode, int *ret);