refactor: add a simple ramfs for rootfs. Twifs should have more specific job in future.
[lunaix-os.git] / lunaix-os / includes / lunaix / fctrl.h
index e76ae7b05263c405624cf113ba7aabacc67bacd2..85f49aca73e67e1d0cfd419bcaf226fe188857ae 100644 (file)
@@ -3,19 +3,37 @@
 
 #include <lunaix/dirent.h>
 #include <lunaix/syscall.h>
-
-__LXSYSCALL2(int, open, const char*, path, int, options);
-
-__LXSYSCALL1(int, close, int, fd);
-
-__LXSYSCALL1(int, mkdir, const char*, path);
-
-__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
-
-__LXSYSCALL3(int, lseek, int, fd, int, offset, int, options);
-
-__LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count);
-
-__LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count);
+#include <stddef.h>
+
+__LXSYSCALL2(int, open, const char*, path, int, options)
+
+__LXSYSCALL1(int, mkdir, const char*, path)
+__LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname)
+
+__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent)
+
+__LXSYSCALL4(int,
+             readlinkat,
+             int,
+             dirfd,
+             const char*,
+             pathname,
+             char*,
+             buf,
+             size_t,
+             size)
+
+__LXSYSCALL3(int, realpathat, int, fd, char*, buf, size_t, size)
+
+__LXSYSCALL3(int,
+             mount,
+             const char*,
+             source,
+             const char*,
+             target,
+             const char*,
+             fstype)
+
+__LXSYSCALL1(int, unmount, const char*, target)
 
 #endif /* __LUNAIX_FCTRL_H */