feat: lru eviction policy on page caches
[lunaix-os.git] / lunaix-os / includes / lunaix / lunistd.h
1 #ifndef __LUNAIX_UNISTD_H
2 #define __LUNAIX_UNISTD_H
3
4 #include <lunaix/syscall.h>
5 #include <lunaix/types.h>
6 #include <stddef.h>
7
8 __LXSYSCALL(pid_t, fork)
9
10 __LXSYSCALL1(int, sbrk, void*, addr)
11
12 __LXSYSCALL1(void*, brk, unsigned long, size)
13
14 __LXSYSCALL(pid_t, getpid)
15
16 __LXSYSCALL(pid_t, getppid)
17
18 __LXSYSCALL1(void, _exit, int, status)
19
20 __LXSYSCALL1(unsigned int, sleep, unsigned int, seconds)
21
22 __LXSYSCALL(int, pause)
23
24 __LXSYSCALL2(int, kill, pid_t, pid, int, signum)
25
26 __LXSYSCALL1(unsigned int, alarm, unsigned int, seconds)
27
28 __LXSYSCALL2(int, link, const char*, oldpath, const char*, newpath)
29
30 __LXSYSCALL1(int, rmdir, const char*, pathname)
31
32 __LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count)
33
34 __LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count)
35
36 __LXSYSCALL3(int, readlink, const char*, path, char*, buf, size_t, size)
37
38 __LXSYSCALL3(int, lseek, int, fd, int, offset, int, options)
39
40 __LXSYSCALL1(int, unlink, const char*, pathname)
41
42 __LXSYSCALL1(int, close, int, fd)
43
44 __LXSYSCALL2(int, dup2, int, oldfd, int, newfd)
45
46 __LXSYSCALL1(int, dup, int, oldfd)
47
48 __LXSYSCALL1(int, fsync, int, fildes)
49
50 __LXSYSCALL2(int, symlink, const char*, pathname, const char*, link_target)
51
52 __LXSYSCALL1(int, chdir, const char*, path)
53
54 __LXSYSCALL1(int, fchdir, int, fd)
55
56 __LXSYSCALL2(char*, getcwd, char*, buf, size_t, size)
57
58 #endif /* __LUNAIX_UNISTD_H */