Architectural Support: x86_64 (#37)
[lunaix-os.git] / lunaix-os / usr / libc / src / posix / fcntl.c
diff --git a/lunaix-os/usr/libc/src/posix/fcntl.c b/lunaix-os/usr/libc/src/posix/fcntl.c
new file mode 100644 (file)
index 0000000..28f1ff3
--- /dev/null
@@ -0,0 +1,14 @@
+#include <lunaix/syscall.h>
+#include <fcntl.h>
+
+int
+open(const char* path, int options)
+{
+    return do_lunaix_syscall(__SYSCALL_open, path, options);
+}
+
+int
+fstat(int fd, struct file_stat* stat)
+{
+    return do_lunaix_syscall(__SYSCALL_fstat, fd, stat);
+}
\ No newline at end of file