Lines Matching refs:shmid
60 int shmid; in main() local
68 if ((shmid = shmget(key, 16 * K_1, IPC_CREAT | 0666)) < 0) { in main()
72 shmid, errno); in main()
79 if ((cp1 = shmat(shmid, NULL, 0)) == (char *)-1) { in main()
82 shmid, errno); in main()
93 if ((cp2 = shmat(shmid, NULL, 0)) == (char *)-1) { in main()
96 shmid, errno); in main()
109 rm_shm(shmid); in main()
123 static int rm_shm(int shmid) in rm_shm() argument
125 if (shmctl(shmid, IPC_RMID, NULL) == -1) { in rm_shm()
130 shmid, errno); in rm_shm()