1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <sys/cdefs.h> __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #if __STDC__ void *shmat(int shmid, void *shmaddr, int shmflg) #else void *shmat(shmid, shmaddr, shmflg) int shmid; void *shmaddr; int shmflg; #endif { return ((void *)shmsys(0, shmid, shmaddr, shmflg)); }