#include #include #include #include #include #define SIZE 5*sizeof(int) //mmap-5.c int main (void) { pid_t pid; int* ptr_shm; int* ptr_shm1; int* ptr_shm2; int i_leggo, i_scrivo; ptr_shm=mmap(0, SIZE, PROT_READ|PROT_WRITE,MAP_ANONYMOUS|MAP_SHARED, -1, 0); ptr_shm1=ptr_shm; ptr_shm2=ptr_shm; for(i_scrivo=0; i_scrivo