1 #ifndef __LUNAIX_FCTRL_H
2 #define __LUNAIX_FCTRL_H
4 #include <lunaix/dirent.h>
5 #include <lunaix/syscall.h>
8 __LXSYSCALL2(int, open, const char*, path, int, options);
10 __LXSYSCALL1(int, close, int, fd);
12 __LXSYSCALL1(int, mkdir, const char*, path);
13 __LXSYSCALL1(int, rmdir, const char*, pathname);
14 __LXSYSCALL1(int, unlink, const char*, pathname);
15 __LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname);
17 __LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
19 __LXSYSCALL3(int, lseek, int, fd, int, offset, int, options);
21 __LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count);
23 __LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count);
25 __LXSYSCALL3(int, readlink, const char*, path, char*, buf, size_t, size);
38 #endif /* __LUNAIX_FCTRL_H */