Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The shm_open() function creates and opens a new shared memory object or opens an existing object. The arguments to shm_open() are analogous to those for open().
#include <fcntl.h> /* Defines O_* constants */ #include <sys/stat.h> /* Defines mode constants */ #include <sys/mman.h> int shm_open(const char *name, int oflag, mode_t mode);