SHMCTL(2) HP Integral PC SHMCTL(2) SHMCTL(2) HP Integral PC SHMCTL(2) SHMCTL(2) HP Integral PC SHMCTL(2) SHMCTL(2) HP Integral PC SHMCTL(2) NAME NAME NAME NAME shmctl - shared memory control operations SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS #include #include int shmctl(shmid, cmd, buf) int shmid, cmd; struct shmid_ds *buf; HP-UX COMPATABILITY HP-UX COMPATABILITY HP-UX COMPATABILITY HP-UX COMPATABILITY Level: HP-UX/RT Origin: UCB DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION Shmctl provides a variety of shared memory control operations as specified by cmd. The following cmds are available: IPC_STAT Place the current value of each member of the data structure associated with shmid into the structure pointed to by buf. IPC_SET Set the values of the shm_prem.uid, shm_perm.gid, and shm_perm.mode members of the data structure associated with shmid to the corresponding values found in the structure pointed to by buf. IPC_RMID Remove the shared memory identifier specified by shmid from the system and destroy the shared memory segment associated with it. ERRORS ERRORS ERRORS ERRORS Shmctl will return -1 and errno will be set if: Shmid is not a valid shared memory identifier [EINVAL]. Cmd is not a valid command [EINVAL]. Buf points to an illegal address [EFAULT]. SEE ALSO SEE ALSO SEE ALSO SEE ALSO shmget(2), shmop(2) Hewlett-Packard - 1 - (printed 12/12/84)