diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-12-05 15:17:44 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-12-05 15:17:44 -0800 |
commit | b48327d357e0818d1a6ae2a064cfa7d1567e1242 (patch) | |
tree | 4677f228a9846937a7ec71c72a1ab63ab69d68ab /include/sys.h | |
parent | c200dd832789afa298ba45e0b9efdec96c0e92cc (diff) |
feat(huge): huge refactor (in progress).
Commented out libc includes to uncover all explicit dependencies.
A large fraction has now been ported over (no testing).
I did not port over the command line tools, such as the rc shell.
These will be done independently - as of now I just want the library to
stand independent.
Compilation currently fails due to the lack of math functions.
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); |