kernel - Enhance CPUMASK and atomic ops
[dragonfly.git] / lib / libc / gen / sysvipc_shmat.c
bloba916b805018db3c9a0ad745d2af11745d843a47c
1 #include <sys/types.h>
2 #include <sys/ipc.h>
3 #include <sys/shm.h>
5 #include "sysvipc_shm.h"
7 extern char sysvipc_userland;
8 extern void* __sys_shmat(int, const void *, int);
10 void *shmat(int shmid, const void *addr, int flag)
12 if (sysvipc_userland)
13 return (sysvipc_shmat(shmid, addr, flag));
14 return (__sys_shmat(shmid, addr, flag));