int shmdt(const void *shmaddr);
This syscall detaches the shared memory segment located at shmaddr from
the calling process.
The syscall returns 0 on success or -1 on failure, with the
following errno:
EINVALThe passed shmaddr is not valid.