From 7f043346646e1dc88fca16b75914a9d4aa0efb56 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 2 Jan 2020 12:44:21 +0100 Subject: Kernel: Remove broken implementation of Unix SHM This code never worked, as was never used for anything. We can build a much better SHM implementation on top of TmpFS or similar when we get to the point when we need one. --- Libraries/LibC/mman.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'Libraries/LibC/mman.cpp') diff --git a/Libraries/LibC/mman.cpp b/Libraries/LibC/mman.cpp index 8ee60929e9..3b08420931 100644 --- a/Libraries/LibC/mman.cpp +++ b/Libraries/LibC/mman.cpp @@ -45,18 +45,6 @@ int set_mmap_name(void* addr, size_t size, const char* name) __RETURN_WITH_ERRNO(rc, rc, -1); } -int shm_open(const char* name, int flags, mode_t mode) -{ - int rc = syscall(SC_shm_open, name, flags, mode); - __RETURN_WITH_ERRNO(rc, rc, -1); -} - -int shm_unlink(const char* name) -{ - int rc = syscall(SC_shm_unlink, name); - __RETURN_WITH_ERRNO(rc, rc, -1); -} - int madvise(void* address, size_t size, int advice) { int rc = syscall(SC_madvise, address, size, advice); -- cgit v1.2.3