xref: /dragonfly/lib/libc/gen/sysvipc_semget.c (revision ed36d35d)
1 #include <sys/types.h>
2 #include <sys/ipc.h>
3 #include <sys/sem.h>
4 
5 #include "sysvipc_sem.h"
6 
7 extern char sysvipc_userland;
8 
9 extern int __sys_semget(key_t, int, int);
10 
11 int semget(key_t key, int nsems, int semflg)
12 {
13 	if (sysvipc_userland)
14 		return (sysvipc_semget(key, nsems, semflg));
15 
16 	return (__sys_semget(key, nsems, semflg));
17 }
18