diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-05 19:01:22 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-05 19:01:59 +0100 |
commit | 9f2b9c82bf0424bb8d0bbc832a0fa6366c3def9a (patch) | |
tree | 953c9032c530310a9e230801e6d8f0aa46aa9bcd /LibC/unistd.h | |
parent | 82f84bab114e8fb1651041ed1ccff4c30d267f19 (diff) | |
download | serenity-9f2b9c82bf0424bb8d0bbc832a0fa6366c3def9a.zip |
More work towards getting bash to build.
Implemented some syscalls: dup(), dup2(), getdtablesize().
FileHandle is now a retainable, since that's needed for dup()'ed fd's.
I didn't really test any of this beyond a basic smoke check.
Diffstat (limited to 'LibC/unistd.h')
-rw-r--r-- | LibC/unistd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/LibC/unistd.h b/LibC/unistd.h index 7d4eebbbdb..9b388e0733 100644 --- a/LibC/unistd.h +++ b/LibC/unistd.h @@ -39,6 +39,9 @@ int ttyname_r(int fd, char* buffer, size_t); off_t lseek(int fd, off_t, int whence); int link(const char* oldpath, const char* newpath); int unlink(const char* pathname); +int getdtablesize(); +int dup(int old_fd); +int dup2(int old_fd, int new_fd); #define WEXITSTATUS(status) (((status) & 0xff00) >> 8) #define WTERMSIG(status) ((status) & 0x7f) |