summaryrefslogtreecommitdiff
path: root/LibC/unistd.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-11 00:20:53 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-11 00:20:53 +0100
commit3b2f172d481f33ca9c50e2b76909a4ecf46d5f03 (patch)
treeeed61ebaa91f85f7e80cf8148191261e13d0d22e /LibC/unistd.h
parent6a0a2c9ab43d8d43e91581568a44fcfc63225409 (diff)
downloadserenity-3b2f172d481f33ca9c50e2b76909a4ecf46d5f03.zip
A bunch of compat work (mostly stubs but some real implementations, too.)
Another pass at getting bash-1.14.7 to build. Not that many symbols remain.
Diffstat (limited to 'LibC/unistd.h')
-rw-r--r--LibC/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/LibC/unistd.h b/LibC/unistd.h
index 81e9146ae8..85b07a4e8f 100644
--- a/LibC/unistd.h
+++ b/LibC/unistd.h
@@ -33,6 +33,7 @@ pid_t waitpid(pid_t, int* wstatus, int options);
int chdir(const char* path);
char* getcwd(char* buffer, size_t size);
char* getwd(char* buffer);
+int fstat(int fd, struct stat* statbuf);
int lstat(const char* path, struct stat* statbuf);
int stat(const char* path, struct stat* statbuf);
int sleep(unsigned seconds);
@@ -46,6 +47,9 @@ int unlink(const char* pathname);
int getdtablesize();
int dup(int old_fd);
int dup2(int old_fd, int new_fd);
+int pipe(int pipefd[2]);
+unsigned int alarm(unsigned int seconds);
+int access(const char* pathname, int mode);
#define WEXITSTATUS(status) (((status) & 0xff00) >> 8)
#define WTERMSIG(status) ((status) & 0x7f)