feat: symlink(2) and realpathat syscall
[lunaix-os.git] / lunaix-os / includes / lunaix / fctrl.h
index b8bb08ff3ba4c891eb348223a8192dcaab3562df..dc2887295792db8ab933a4535cb6113e4d23fa99 100644 (file)
@@ -7,10 +7,10 @@
 
 __LXSYSCALL2(int, open, const char*, path, int, options)
 
 
 __LXSYSCALL2(int, open, const char*, path, int, options)
 
-__LXSYSCALL1(int, mkdir, const char*, path);
-__LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname);
+__LXSYSCALL1(int, mkdir, const char*, path)
+__LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname)
 
 
-__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
+__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent)
 
 __LXSYSCALL4(int,
              readlinkat,
 
 __LXSYSCALL4(int,
              readlinkat,
@@ -21,6 +21,8 @@ __LXSYSCALL4(int,
              char*,
              buf,
              size_t,
              char*,
              buf,
              size_t,
-             size);
+             size)
+
+__LXSYSCALL3(int, realpathat, int, fd, char*, buf, size_t, size)
 
 #endif /* __LUNAIX_FCTRL_H */
 
 #endif /* __LUNAIX_FCTRL_H */