Merge from vendor branch NCURSES:
[dragonfly.git] / lib / libc / gen / shmat.c
1 /*
2  * $FreeBSD: src/lib/libc/gen/shmat.c,v 1.4 1999/08/27 23:58:56 peter Exp $
3  * $DragonFly: src/lib/libc/gen/shmat.c,v 1.2 2003/06/17 04:26:42 dillon Exp $
4  */
5
6 #include <sys/types.h>
7 #include <sys/ipc.h>
8 #include <sys/shm.h>
9
10 #if __STDC__
11 void *shmat(int shmid, void *shmaddr, int shmflg)
12 #else
13 void *shmat(shmid, shmaddr, shmflg)
14         int shmid;
15         void *shmaddr;
16         int shmflg;
17 #endif
18 {
19         return ((void *)shmsys(0, shmid, shmaddr, shmflg));
20 }