shmdt
-----
int shmdt (char *shmaddr);
* shmaddr : attach address of segment (returned by shmat).
* returns : 0 on success. -1 on failure.
An attached segment is detached and `shm_nattch' decremented. The
occupied region in user space is unmapped. The segment is destroyed if
it is marked for destruction and `shm_nattch' is 0. `shm_lpid' and
`shm_dtime' are updated.
Errors:
EINVAL : No shared memory segment attached at shmaddr.