Remove a shared memory object
#include <sys/mman.h> int shm_unlink( const char * name );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The shm_unlink() function removes the name of the shared memory object specified by name. After removing the name, you can't use shm_open() to access the object.
This function doesn't affect any references to the shared memory object (i.e., file descriptors or memory mappings). If more than one reference to the shared memory object exists, then the link count is decremented, but the shared memory segment isn't actually removed until you remove all open and map references to it.
POSIX 1003.1 SHM
mmap(), munmap(), mprotect(), shm_ctl(), shm_ctl_special(), shm_open()