diff options
Diffstat (limited to 'include/sys.h')
-rw-r--r-- | include/sys.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/sys.h b/include/sys.h index e983f2a..95ed93c 100644 --- a/include/sys.h +++ b/include/sys.h @@ -35,11 +35,15 @@ char *sys·errormsg(int num); /* file operations */ int sys·open(char *path, int flag, int mode, int *fd); +int sys·openat(int dirfd, char *path, int flags, int mode, int *fd); int sys·close(int fd); -int sys·write(int fd, uintptr len, void *buf, intptr *nw); -int sys·read(int fd, uintptr len, void *buf, intptr *nr); +int sys·write(int fd, void *buf, uintptr len, intptr *nw); +int sys·read(int fd, void *buf, uintptr len, intptr *nr); int sys·seek(int fd, intptr offset, int from, intptr *pos); +int sys·access(char *path, int mode); +int sys·accessat(int dirfd, char *path, int mode, int flags); + int sys·info(char *path, sys·Info *ret); int sys·infofd(int fd, sys·Info *ret); int sys·infoat(int dirfd, char *path, int flag, uint mask, sys·Info *ret); @@ -47,6 +51,8 @@ int sys·infoat(int dirfd, char *path, int flag, uint mask, sys·Info *ret); int sys·dup(int from, int to); /* directory operations */ +int sys·cwd(char *buf, uintptr size); + int sys·chdir(char *path); int sys·chdirfd(int fd); int sys·mkdir(char *path, uint mode); |