Skip to content
Snippets Groups Projects
Select Git revision
  • aca440b467ddd0b38cf2cd8b50eb6eb30ed17e1c
  • 2023ss default protected
  • 2022ss
  • 2021ss
  • 2020ss
  • 2019ss
  • 2018ss
  • 2017ss
  • 2016ss
  • 2015ss
  • 2014ss
11 results

shm-3a.c

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