NetBSD/lib/libc/gen/shmat.c

20 lines
428 B
C
Raw Normal View History

1993-08-26 19:26:18 +04:00
#if defined(LIBC_SCCS) && !defined(lint)
1993-11-19 08:25:40 +03:00
static char *rcsid = "$Id: shmat.c,v 1.4 1993/11/19 05:25:40 cgd Exp $";
1993-08-26 19:26:18 +04:00
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#if __STDC__
1993-11-19 08:25:40 +03:00
void *shmat(int shmid, void *shmaddr, int shmflg)
#else
1993-11-19 08:25:40 +03:00
void *shmat(shmid, shmaddr, shmflg)
int shmid;
1993-11-19 06:18:24 +03:00
void *shmaddr;
int shmflg;
#endif
{
1993-11-19 08:25:40 +03:00
return ((void *) shmsys(0, shmid, shmaddr, shmflg));
}