Lines Matching refs:shmid
30 ** shmid -- pointer to return id.
42 sm_shmstart(key, size, shmflg, shmid, owner)
46 int *shmid;
57 *shmid = shmget(key, size, shmflg);
58 if (*shmid < 0)
61 shm = shmat(*shmid, (void *) 0, 0);
69 if (shm != SM_SHM_NULL || *shmid >= 0)
70 sm_shmstop(shm, *shmid, owner);
71 *shmid = SM_SHM_NO_ID;
82 ** shmid -- id.
95 sm_shmstop(shm, shmid, owner)
97 int shmid;
104 if (owner && shmid >= 0 && (r = shmctl(shmid, IPC_RMID, NULL)) < 0)
114 ** shmid -- id.
125 sm_shmsetowner(shmid, uid, gid, mode)
126 int shmid;
135 if ((r = shmctl(shmid, IPC_STAT, &shmid_ds)) < 0)
140 if ((r = shmctl(shmid, IPC_SET, &shmid_ds)) < 0)