make rule for user header file install
[lunaix-os.git] / lunaix-os / usr / libc / src / posix / fcntl.c
index 28f1ff36e774de7dc84ed76eaec8a101ac5eaaf4..f8c319e7f4be96223380f3f4bd3bab1c6752efd3 100644 (file)
@@ -1,14 +1,14 @@
-#include <lunaix/syscall.h>
+#include <syscall.h>
 #include <fcntl.h>
 
 int
 open(const char* path, int options)
 {
-    return do_lunaix_syscall(__SYSCALL_open, path, options);
+    return do_lunaix_syscall(__NR__lxsys_open, path, options);
 }
 
 int
 fstat(int fd, struct file_stat* stat)
 {
-    return do_lunaix_syscall(__SYSCALL_fstat, fd, stat);
+    return do_lunaix_syscall(__NR__lxsys_fstat, fd, stat);
 }
\ No newline at end of file