Select Git revision
Forked from
Peter Gerwinski / bs
Source project has a limited visibility.
shm-1b.c 232 B
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
int main (void)
{
char buffer[42];
int shm = shm_open ("test", O_RDONLY, 0444);
read (shm, buffer, 42);
printf ("%s\n", buffer);
return 0;
}