shmat
if ((int)shmat(0, (char *)NULL, 0) < 0 && errno != EINVAL)
if ((Buf[cnt] = shmat(Shm_id[cnt], 0, 0)) == (void *)-1)
if ((m2_shm_sem = (sem_t*) shmat(m2_shm_id, 0, 0666)) == (sem_t*)-1) {
if ((infop->addr = shmat(infop->segid, NULL, 0)) == (void *)-1) {
shm = shmat(*shmid, (void *) 0, 0);
if ((shm_attached = shmat(shm_id, NULL, SHM_SHARE_MMU)) == (void *)-1)
char *shmat();
invcntl->iindex = shmat(shm_id, 0,
error = shmat((int)a0, (caddr_t)a1, (int)a2, &r_val);
void *shmat(int, const void *, int);