regression: mmap for fd
[lunaix-os.git] / lunaix-os / kernel / demos / dir_read.c
index 54ffd97b20147425350d7ed44ac4028cf4955e6f..70070a1eafe3753413a5691e119d3f0f381b4689 100644 (file)
@@ -1,7 +1,7 @@
 #include <lunaix/dirent.h>
 #include <lunaix/fctrl.h>
+#include <lunaix/lunaix.h>
 #include <lunaix/lunistd.h>
-#include <lunaix/proc.h>
 
 void
 _readdir_main()
@@ -23,7 +23,7 @@ _readdir_main()
 
     struct dirent ent = { .d_offset = 0 };
 
-    while (readdir(fd, &ent) == 1) {
+    while (sys_readdir(fd, &ent) == 1) {
         printf("%s\n", ent.d_name);
     }