Lines Matching refs:shmid
28 ** shmid -- pointer to return id.
40 sm_shmstart(key, size, shmflg, shmid, owner)
44 int *shmid;
55 *shmid = shmget(key, size, shmflg);
56 if (*shmid < 0)
59 shm = shmat(*shmid, (void *) 0, 0);
67 if (shm != SM_SHM_NULL || *shmid >= 0)
68 sm_shmstop(shm, *shmid, owner);
69 *shmid = SM_SHM_NO_ID;
80 ** shmid -- id.
93 sm_shmstop(shm, shmid, owner)
95 int shmid;
102 if (owner && shmid >= 0 && (r = shmctl(shmid, IPC_RMID, NULL)) < 0)
112 ** shmid -- id.
123 sm_shmsetowner(shmid, uid, gid, mode)
124 int shmid;
133 if ((r = shmctl(shmid, IPC_STAT, &shmid_ds)) < 0)
138 if ((r = shmctl(shmid, IPC_SET, &shmid_ds)) < 0)