Initial import from FreeBSD RELENG_4:
[dragonfly.git] / lib / libcr / gen / shmat.c
1 #if defined(LIBC_SCCS) && !defined(lint)
2 static char *rcsid = "$FreeBSD: src/lib/libc/gen/shmat.c,v 1.4 1999/08/27 23:58:56 peter Exp $";
3 #endif /* LIBC_SCCS and not lint */
4
5 #include <sys/types.h>
6 #include <sys/ipc.h>
7 #include <sys/shm.h>
8
9 #if __STDC__
10 void *shmat(int shmid, void *shmaddr, int shmflg)
11 #else
12 void *shmat(shmid, shmaddr, shmflg)
13         int shmid;
14         void *shmaddr;
15         int shmflg;
16 #endif
17 {
18         return ((void *)shmsys(0, shmid, shmaddr, shmflg));
19 }