xref: /dragonfly/lib/libc/gen/sysvipc_shmdt.c (revision c3762235)
1 #include <sys/types.h>
2 #include <sys/ipc.h>
3 #include <sys/shm.h>
4 
5 #include "sysvipc_shm.h"
6 
7 extern char sysvipc_userland;
8 extern int __sys_shmdt(const void *);
9 
10 int shmdt(const void *addr)
11 {
12 	if (sysvipc_userland)
13 		return (sysvipc_shmdt(addr));
14 
15 	return (__sys_shmdt(addr));
16 }
17