summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/unistd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibC/unistd.cpp')
-rw-r--r--Userland/Libraries/LibC/unistd.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/Userland/Libraries/LibC/unistd.cpp b/Userland/Libraries/LibC/unistd.cpp
index 2b4beee700..fa22393b3e 100644
--- a/Userland/Libraries/LibC/unistd.cpp
+++ b/Userland/Libraries/LibC/unistd.cpp
@@ -763,21 +763,6 @@ int set_process_name(const char* name, size_t name_length)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
-int chroot(const char* path)
-{
- return chroot_with_mount_flags(path, -1);
-}
-
-int chroot_with_mount_flags(const char* path, int mount_flags)
-{
- if (!path) {
- errno = EFAULT;
- return -1;
- }
- int rc = syscall(SC_chroot, path, strlen(path), mount_flags);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
int pledge(const char* promises, const char* execpromises)
{
Syscall::SC_pledge_params params {