feat: add support for process to conduct Intel x87 and MMX related task.
[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 __LXSYSCALL(pid_t, getpgid)
19
20 __LXSYSCALL2(pid_t, setpgid, pid_t, pid, pid_t, pgid)
21
22 __LXSYSCALL1(void, _exit, int, status)
23
24 __LXSYSCALL1(unsigned int, sleep, unsigned int, seconds)
25
26 __LXSYSCALL(int, pause)
27
28 __LXSYSCALL2(int, kill, pid_t, pid, int, signum)
29
30 __LXSYSCALL1(unsigned int, alarm, unsigned int, seconds)
31
32 __LXSYSCALL2(int, link, const char*, oldpath, const char*, newpath)
33
34 __LXSYSCALL1(int, rmdir, const char*, pathname)
35
36 __LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count)
37
38 __LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count)
39
40 __LXSYSCALL3(int, readlink, const char*, path, char*, buf, size_t, size)
41
42 __LXSYSCALL3(int, lseek, int, fd, int, offset, int, options)
43
44 __LXSYSCALL1(int, unlink, const char*, pathname)
45
46 __LXSYSCALL1(int, close, int, fd)
47
48 __LXSYSCALL2(int, dup2, int, oldfd, int, newfd)
49
50 __LXSYSCALL1(int, dup, int, oldfd)
51
52 __LXSYSCALL1(int, fsync, int, fildes)
53
54 __LXSYSCALL2(int, symlink, const char*, pathname, const char*, link_target)
55
56 __LXSYSCALL1(int, chdir, const char*, path)
57
58 __LXSYSCALL1(int, fchdir, int, fd)
59
60 __LXSYSCALL2(char*, getcwd, char*, buf, size_t, size)
61
62 __LXSYSCALL2(int, rename, const char*, oldpath, const char*, newpath)
63
64 #endif /* __LUNAIX_UNISTD_H */