Lines Matching full:shm
11 SM_RCSID("@(#)$Id: shm.c,v 1.20 2013-11-22 20:51:43 ca Exp $")
19 # include <sm/shm.h>
49 void *shm = SM_SHM_NULL; variable
60 shm = shmat(*shmid, (void *) 0, 0);
61 if (shm == SM_SHM_NULL)
64 return shm;
68 if (shm != SM_SHM_NULL || *shmid >= 0)
69 sm_shmstop(shm, *shmid, owner);
80 ** shm -- pointer to shared memory.
94 sm_shmstop(shm, shmid, owner) in sm_shmstop() argument
95 void *shm; in sm_shmstop()
101 if (shm != SM_SHM_NULL && (r = shmdt(shm)) < 0)