aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/open.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sys/open.h')
-rw-r--r--lib/sys/open.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/open.h b/lib/sys/open.h
new file mode 100644
index 0000000..5aeab6d
--- /dev/null
+++ b/lib/sys/open.h
@@ -0,0 +1,11 @@
+#ifndef OPEN_H
+#define OPEN_H
+
+#include "syscalls.h"
+
+static int open(const char *filename, int flags, int mode)
+{
+ return syscall(OPEN, filename, flags, mode);
+}
+
+#endif