feat: symlink(2) and realpathat syscall
[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 #include <stddef.h>
7
8 __LXSYSCALL2(int, open, const char*, path, int, options)
9
10 __LXSYSCALL1(int, mkdir, const char*, path)
11 __LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname)
12
13 __LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent)
14
15 __LXSYSCALL4(int,
16              readlinkat,
17              int,
18              dirfd,
19              const char*,
20              pathname,
21              char*,
22              buf,
23              size_t,
24              size)
25
26 __LXSYSCALL3(int, realpathat, int, fd, char*, buf, size_t, size)
27
28 #endif /* __LUNAIX_FCTRL_H */