feat: readdir fix and demo
[lunaix-os.git] / lunaix-os / includes / lunaix / fctrl.h
1 #ifndef __LUNAIX_FCTRL_H
2 #define __LUNAIX_FCTRL_H
3
4 #include <lunaix/dirent.h>
5 #include <lunaix/syscall.h>
6
7 __LXSYSCALL2(int, open, const char*, path, int, options);
8
9 __LXSYSCALL1(int, close, int, fd);
10
11 __LXSYSCALL1(int, mkdir, const char*, path);
12
13 __LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
14
15 #endif /* __LUNAIX_FCTRL_H */