X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/cb529e7c1abcfe6b61241e47a780172031b82840..bc34fd00d2e81fbc890bb2060ed6693454a230bf:/lunaix-os/includes/lunaix/lunistd.h diff --git a/lunaix-os/includes/lunaix/lunistd.h b/lunaix-os/includes/lunaix/lunistd.h index 67f3174..cb5af35 100644 --- a/lunaix-os/includes/lunaix/lunistd.h +++ b/lunaix-os/includes/lunaix/lunistd.h @@ -3,6 +3,7 @@ #include #include +#include __LXSYSCALL(pid_t, fork) @@ -22,4 +23,36 @@ __LXSYSCALL(int, pause) __LXSYSCALL2(int, kill, pid_t, pid, int, signum) +__LXSYSCALL1(unsigned int, alarm, unsigned int, seconds) + +__LXSYSCALL2(int, link, const char*, oldpath, const char*, newpath) + +__LXSYSCALL1(int, rmdir, const char*, pathname) + +__LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count) + +__LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count) + +__LXSYSCALL3(int, readlink, const char*, path, char*, buf, size_t, size) + +__LXSYSCALL3(int, lseek, int, fd, int, offset, int, options) + +__LXSYSCALL1(int, unlink, const char*, pathname) + +__LXSYSCALL1(int, close, int, fd) + +__LXSYSCALL2(int, dup2, int, oldfd, int, newfd) + +__LXSYSCALL1(int, dup, int, oldfd) + +__LXSYSCALL1(int, fsync, int, fildes) + +__LXSYSCALL2(int, symlink, const char*, pathname, const char*, link_target) + +__LXSYSCALL1(int, chdir, const char*, path) + +__LXSYSCALL1(int, fchdir, int, fd) + +__LXSYSCALL2(char*, getcwd, char*, buf, size_t, size) + #endif /* __LUNAIX_UNISTD_H */