summaryrefslogtreecommitdiff
path: root/lib/libc/fcntl/creat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/fcntl/creat.c')
-rw-r--r--lib/libc/fcntl/creat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/fcntl/creat.c b/lib/libc/fcntl/creat.c
new file mode 100644
index 00000000..fdcb6655
--- /dev/null
+++ b/lib/libc/fcntl/creat.c
@@ -0,0 +1,7 @@
+#include <fcntl.h>
+#include <syscall.h>
+
+int creat(const char *path, mode_t mode)
+{
+ return syscall(creat, path, mode);
+}