#include <sys/mman.h> #include <fcntl.h> #include <unistd.h> int main (void) { int shm = shm_open ("test", O_RDWR, 0666); write (shm, "Hello, world!", 13); return 0; }