summaryrefslogtreecommitdiff
path: root/Libraries/LibC/unistd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibC/unistd.cpp')
-rw-r--r--Libraries/LibC/unistd.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp
index 2332ee1f8d..414f4bedd7 100644
--- a/Libraries/LibC/unistd.cpp
+++ b/Libraries/LibC/unistd.cpp
@@ -297,33 +297,6 @@ int close(int fd)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
-static int do_stat(const char* path, struct stat* statbuf, bool follow_symlinks)
-{
- if (!path) {
- errno = EFAULT;
- return -1;
- }
- Syscall::SC_stat_params params { { path, strlen(path) }, statbuf, follow_symlinks };
- int rc = syscall(SC_stat, &params);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int lstat(const char* path, struct stat* statbuf)
-{
- return do_stat(path, statbuf, false);
-}
-
-int stat(const char* path, struct stat* statbuf)
-{
- return do_stat(path, statbuf, true);
-}
-
-int fstat(int fd, struct stat* statbuf)
-{
- int rc = syscall(SC_fstat, fd, statbuf);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
int chdir(const char* path)
{
if (!path) {
@@ -750,5 +723,4 @@ int getpagesize()
{
return PAGE_SIZE;
}
-
}