xref: /dflybsd-src/lib/libc/gen/sysvipc_shmctl.c (revision afd2da4dc9056ea79cdf15e8a9386a3d3998f33e)
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_shmctl(int, int, struct shmid_ds *);
9 
10 int shmctl(int shmid, int cmd, struct shmid_ds *buf)
11 {
12 	if (sysvipc_userland)
13 		return (sysvipc_shmctl(shmid, cmd, buf));
14 	return (__sys_shmctl(shmid, cmd, buf));
15 }
16