shmctl
(void) shmctl(Shm_id[cnt], IPC_RMID, 0);
if (shmctl(Shm_id[cnt], SHM_LOCK, 0) < 0)
} else if (shmctl(ipc_id, IPC_RMID, NULL_SHM) == -1) {
if (shmctl(ipc_id, IPC_RMID, NULL_SHM) == -1) {
if (shmctl(m2_shm_id, IPC_STAT, &stat) == 0) {
(void) shmctl(m2_shm_id, IPC_RMID, &stat);
ret = shmctl(infop->segid, IPC_RMID, NULL) ? errno : 0;
if (owner && shmid >= 0 && (r = shmctl(shmid, IPC_RMID, NULL)) < 0)
if ((r = shmctl(shmid, IPC_STAT, &shmid_ds)) < 0)
if ((r = shmctl(shmid, IPC_SET, &shmid_ds)) < 0)
rc = shmctl(shmid, IPC_STAT, &mds);
(void) shmctl(shmid, IPC_STAT, &mds);
error = shmctl((int)a0, (int)a1, (void *)a2);
int shmctl(int, int, struct shmid_ds *);