1 #ifndef __LUNAIX_FCTRL_H
2 #define __LUNAIX_FCTRL_H
4 #include <lunaix/dirent.h>
5 #include <lunaix/syscall.h>
7 __LXSYSCALL2(int, open, const char*, path, int, options);
9 __LXSYSCALL1(int, close, int, fd);
11 __LXSYSCALL1(int, mkdir, const char*, path);
13 __LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
15 __LXSYSCALL3(int, lseek, int, fd, int, offset, int, options);
17 __LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count);
19 __LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count);
21 #endif /* __LUNAIX_FCTRL_H */