Searched refs:shm_fd (Results 1 – 1 of 1) sorted by relevance
36 int shm_fd; member54 shared_segment->shm_fd = shm_open(shared_segment_name, O_RDWR|O_CREAT|O_TRUNC, 0600); in create_segments()55 if (shared_segment->shm_fd == -1) { in create_segments()60 if (ftruncate(shared_segment->shm_fd, requested_size) != 0) { in create_segments()66 …>common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segment->shm_fd, 0); in create_segments()83 close(shared_segment->shm_fd); in detach_segment()
Completed in 5 milliseconds