google_ad_section_start shm_open, shm_unlink - create/open or unlink POSIX shared memory objects #include < sys/mman.h > #include < sys/stat.h > /* For mode constants */ #include < fcntl.h > /* For O_* constants */ int shm_open(const char * name , int oflag , mode_t mode ); int shm_unlink(const char * name ); Link with -lrt . shm_open () creates and opens a new, or opens an existing, POSIX shared memory object. A POSIX shared memory object is in effect a handle which can be used by unrelated processes to mmap (2) the same region of shared memory. The shm_unlink () function performs the converse operation, removing an object previously created by shm_open (). The operation of shm_open () is analogous to that of open (2) . name specifies the shared memory object to be created or opened. For portable use, a shared memory object should be identified by a name of the ...