Lines Matching defs:shmid
60 int shmid;
68 if ((shmid = shmget(key, 16 * K_1, IPC_CREAT | 0666)) < 0) {
71 "shmget Failed: shmid = %d, errno = %d",
72 shmid, errno);
79 if ((cp1 = shmat(shmid, NULL, 0)) == (char *)-1) {
81 tst_resm(TFAIL, "shmat Failed: shmid = %d, errno = %d",
82 shmid, errno);
93 if ((cp2 = shmat(shmid, NULL, 0)) == (char *)-1) {
95 tst_resm(TFAIL, "shmat Failed: shmid = %d, errno = %d",
96 shmid, errno);
109 rm_shm(shmid);
123 static int rm_shm(int shmid)
125 if (shmctl(shmid, IPC_RMID, NULL) == -1) {
129 "shmctl Failed to remove: shmid = %d, errno = %d",
130 shmid, errno);