Commit | Line | Data |
---|---|---|
f9e36e91 | 1 | #if defined(LIBC_SCCS) && !defined(lint) |
24ac1ade | 2 | static char *rcsid = "$Id: shmat.c,v 1.1 1993/09/27 00:57:45 rgrimes Exp $"; |
f9e36e91 RG |
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__ | |
24ac1ade | 10 | void *shmat(int shmid, void *shmaddr, int shmflg) |
f9e36e91 | 11 | #else |
24ac1ade | 12 | void *shmat(shmid, shmaddr, shmflg) |
f9e36e91 | 13 | int shmid; |
24ac1ade | 14 | void *shmaddr; |
f9e36e91 RG |
15 | int shmflg; |
16 | #endif | |
17 | { | |
24ac1ade | 18 | return ((void *)shmsys(0, shmid, shmaddr, shmflg)); |
f9e36e91 | 19 | } |