return NULL;
}
/* map it in the process address space */
shm_ptr = mmap(NULL, shm_size, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 0);
if (shm_ptr == MAP_FAILED) {
return NULL;
}
/* map it in the process address space */
shm_ptr = mmap(NULL, shm_size, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 0);
if (shm_ptr == MAP_FAILED) {