diff options
Diffstat (limited to 'libc-top-half/musl/src/ipc/shmdt.c')
-rw-r--r-- | libc-top-half/musl/src/ipc/shmdt.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/ipc/shmdt.c b/libc-top-half/musl/src/ipc/shmdt.c new file mode 100644 index 0000000..5723813 --- /dev/null +++ b/libc-top-half/musl/src/ipc/shmdt.c @@ -0,0 +1,12 @@ +#include <sys/shm.h> +#include "syscall.h" +#include "ipc.h" + +int shmdt(const void *addr) +{ +#ifndef SYS_ipc + return syscall(SYS_shmdt, addr); +#else + return syscall(SYS_ipc, IPCOP_shmdt, 0, 0, 0, addr); +#endif +} |