X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/6fefc6f5af83f316e18b0cb9dbbde1cea0b98add..cb089e17fcc6bd4823bd919cce2b9e62631cd570:/lunaix-os/includes/lunaix/fctrl.h?ds=sidebyside diff --git a/lunaix-os/includes/lunaix/fctrl.h b/lunaix-os/includes/lunaix/fctrl.h index e76ae7b..5ec0eef 100644 --- a/lunaix-os/includes/lunaix/fctrl.h +++ b/lunaix-os/includes/lunaix/fctrl.h @@ -3,19 +3,83 @@ #include #include +#include -__LXSYSCALL2(int, open, const char*, path, int, options); +__LXSYSCALL2(int, open, const char*, path, int, options) -__LXSYSCALL1(int, close, int, fd); +__LXSYSCALL1(int, mkdir, const char*, path) +__LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname) -__LXSYSCALL1(int, mkdir, const char*, path); +__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent) -__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent); +__LXSYSCALL4(int, + readlinkat, + int, + dirfd, + const char*, + pathname, + char*, + buf, + size_t, + size) -__LXSYSCALL3(int, lseek, int, fd, int, offset, int, options); +__LXSYSCALL3(int, realpathat, int, fd, char*, buf, size_t, size) -__LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count); +__LXSYSCALL4(int, + mount, + const char*, + source, + const char*, + target, + const char*, + fstype, + int, + options) -__LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count); +__LXSYSCALL1(int, unmount, const char*, target) + +__LXSYSCALL4(int, + getxattr, + const char*, + path, + const char*, + name, + void*, + value, + size_t, + len) + +__LXSYSCALL4(int, + setxattr, + const char*, + path, + const char*, + name, + void*, + value, + size_t, + len) + +__LXSYSCALL4(int, + fgetxattr, + int, + fd, + const char*, + name, + void*, + value, + size_t, + len) + +__LXSYSCALL4(int, + fsetxattr, + int, + fd, + const char*, + name, + void*, + value, + size_t, + len) #endif /* __LUNAIX_FCTRL_H */