Skip to content
Snippets Groups Projects
Select Git revision
  • f1d1e349b078311261fca50f8545e97120f98239
  • 2024ws default
  • 2023ws protected
3 results

ls

Blame
  • 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;
    }