EACCES | CAUSE
| cmd is set to IPC_STAT and the calling process does not have read permission. |
| ACTION
| Ensure that the calling process has read permission to the shared memory area. |
EFAULT | CAUSE
| The system detected a NULL or bad address in attempting to use the buffer argument. |
| ACTION
| Check to see if the pointer is properly initialized. |
EINVAL | CAUSE
| shmid is not a valid shared memory identifier, or cmd is not a valid command, or cmd specifies SHM_UNLOCK or SHM_LOCK. |
| ACTION
| Check that shmid is valid and that the identifier has not been removed from the system, and check that cmd specifies a valid, supported command. |
ENOMEM | CAUSE
| cmd specifies SHM_LOCK or the available data space is not large enough to accommodate the shared memory area. |
| ACTION
| None. |
EPERM | CAUSE | cmd specifies IPC_RMID or IPC_SET and the calling process does not have either MPE/iX SM capability or an effective user ID equal to the value of either the shm_perm.uid (owner) or shm_perm.cuid (creator) fields in the data structure associated with shmid. |
| ACTION
| Ensure that the calling process has the appropriate effective user ID or the appropriate capabilities to perform the specified cmd. |
ESYSERR | CAUSE
| An operating system error occurred that does not map directly
to any of the above errors. |
| ACTION
| Examine the MPE/iX process error stack for the type of system error. |