Lines Matching defs:shmid
32 static int shmid;
53 shmctl(shmid, IPC_RMID, NULL);
57 shmctl(shmid, IPC_RMID, NULL);
198 shmid = shmget(key, size,
200 if (shmid < 0) {
201 shmid = shmget(++key, size,
203 if (shmid < 0)
206 printf("shmid: 0x%x, shmget key:%d\n", shmid, key);
208 ptr = shmat(shmid, NULL, 0);
211 shmctl(shmid, IPC_RMID, NULL);