summaryrefslogtreecommitdiff
path: root/Libraries/LibC/mman.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-02 12:44:21 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-02 12:44:21 +0100
commit7f043346646e1dc88fca16b75914a9d4aa0efb56 (patch)
tree65b4d4a1c7c83a5dc92cce93d8fb1375a6ff216a /Libraries/LibC/mman.cpp
parent4fa7146da1b8cdf211a5ca2cb38aeb29ef530694 (diff)
downloadserenity-7f043346646e1dc88fca16b75914a9d4aa0efb56.zip
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.
Diffstat (limited to 'Libraries/LibC/mman.cpp')
-rw-r--r--Libraries/LibC/mman.cpp12
1 files changed, 0 insertions, 12 deletions
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);