shm_find_segment_perm_by_index
error = shm_find_segment_perm_by_index(shmid, &perm);
int shm_find_segment_perm_by_index(int, struct ipc_perm *);