0cd2705e4d9c1ce984f66c91ff7ff118051f6794
[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, close, int, fd);
11
12 __LXSYSCALL1(int, mkdir, const char*, path);
13
14 __LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
15
16 __LXSYSCALL3(int, lseek, int, fd, int, offset, int, options);
17
18 __LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count);
19
20 __LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count);
21
22 __LXSYSCALL3(int, readlink, const char*, path, char*, buf, size_t, size);
23
24 __LXSYSCALL4(int,
25              readlinkat,
26              int,
27              dirfd,
28              const char*,
29              pathname,
30              char*,
31              buf,
32              size_t,
33              size);
34
35 #endif /* __LUNAIX_FCTRL_H */