1 #include <lunaix/syscall.h>
4 __LXSYSCALL(pid_t, fork)
6 __LXSYSCALL1(int, brk, void*, addr)
8 __LXSYSCALL1(void*, sbrk, ssize_t, size)
10 __LXSYSCALL(pid_t, getpid)
12 __LXSYSCALL(pid_t, getppid)
14 __LXSYSCALL(pid_t, getpgid)
16 __LXSYSCALL2(pid_t, setpgid, pid_t, pid, pid_t, pgid)
18 __LXSYSCALL1(void, _exit, int, status)
20 __LXSYSCALL1(unsigned int, sleep, unsigned int, seconds)
22 __LXSYSCALL(int, pause)
24 __LXSYSCALL2(int, kill, pid_t, pid, int, signum)
26 __LXSYSCALL1(unsigned int, alarm, unsigned int, seconds)
28 __LXSYSCALL2(int, link, const char*, oldpath, const char*, newpath)
30 __LXSYSCALL1(int, rmdir, const char*, pathname)
32 __LXSYSCALL3(int, read, int, fd, void*, buf, size_t, count)
34 __LXSYSCALL3(int, write, int, fd, void*, buf, size_t, count)
36 __LXSYSCALL3(int, readlink, const char*, path, char*, buf, size_t, size)
38 __LXSYSCALL3(int, lseek, int, fd, off_t, offset, int, options)
40 __LXSYSCALL1(int, unlink, const char*, pathname)
42 __LXSYSCALL1(int, close, int, fd)
44 __LXSYSCALL2(int, dup2, int, oldfd, int, newfd)
46 __LXSYSCALL1(int, dup, int, oldfd)
48 __LXSYSCALL1(int, fsync, int, fildes)
50 __LXSYSCALL2(int, symlink, const char*, pathname, const char*, link_target)
52 __LXSYSCALL1(int, chdir, const char*, path)
54 __LXSYSCALL1(int, fchdir, int, fd)
56 __LXSYSCALL2(char*, getcwd, char*, buf, size_t, size)
58 __LXSYSCALL2(int, rename, const char*, oldpath, const char*, newpath)
115 __LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname)
117 __LXSYSCALL1(int, mkdir, const char*, path)