feat: simple device abstraction layer
[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
7 __LXSYSCALL2(int, open, const char*, path, int, options);
8
9 __LXSYSCALL1(int, close, int, fd);
10
11 __LXSYSCALL1(int, mkdir, const char*, path);
12
13 __LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
14
15 __LXSYSCALL3(int, lseek, int, fd, int, offset, int, options);
16
17 __LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count);
18
19 __LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count);
20
21 #endif /* __LUNAIX_FCTRL_H */