summaryrefslogtreecommitdiff
path: root/userland/libc/libc.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-10-14 21:42:38 +0200
committerAnton Kling <anton@kling.gg>2024-10-14 21:42:38 +0200
commit87af93c7521be331a5794c6a53f31d13b3a24baa (patch)
tree7807e28e64b17bebd3a5ad4f980fbada3278e6df /userland/libc/libc.c
parenta5b508d1fb751015ecb9b6701749dcdcd81e3071 (diff)
kernel: stuff
Diffstat (limited to 'userland/libc/libc.c')
-rw-r--r--userland/libc/libc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/userland/libc/libc.c b/userland/libc/libc.c
index decd002..f1b6bdf 100644
--- a/userland/libc/libc.c
+++ b/userland/libc/libc.c
@@ -272,3 +272,7 @@ int shm_open(const char *name, int oflag, mode_t mode) {
};
RC_ERRNO(syscall(SYS_SHM_OPEN, (u32)&args, 0, 0, 0, 0));
}
+
+int shm_unlink(const char *name) {
+ RC_ERRNO(syscall(SYS_SHM_UNLINK, (u32)name, 0, 0, 0, 0));
+}