Lines Matching defs:shmid
60 int shmid, shmid1;
73 if ((shmid = shmget(key[0], SIZE, IPC_CREAT | 0666)) < 0) {
76 "Error: shmget: shmid = %d, errno = %d\n",
77 shmid, errno);
79 cp = shmat(shmid, NULL, 0);
83 rm_shm(shmid);
110 rm_shm(shmid);
116 static int rm_shm(int shmid)
118 if (shmctl(shmid, IPC_RMID, NULL) == -1) {
122 "shmctl Failed to remove: shmid = %d, errno = %d\n",
123 shmid, errno);