Lines Matching refs:shm_info
388 static XShmSegmentInfo shm_info;
426 shm_info.shmid = shmget(IPC_PRIVATE, image_size, IPC_CREAT|0777);
427 if (shm_info.shmid < 0)
441 shm_info.shmaddr = (char *) shmat(shm_info.shmid, NULL, 0);
442 if (shm_info.shmaddr == ((char *) -1))
454 shmctl (shm_info.shmid, IPC_RMID, NULL);
457 shm_info.readOnly = read_only;
461 XShmAttach (xp->d, &shm_info);
474 if(shmdt (shm_info.shmaddr)==-1)
476 if(shmctl (shm_info.shmid, IPC_RMID, NULL)==-1)
480 shm_image.data = shm_info.shmaddr;
482 shm_image.obdata = (char *) &shm_info;
545 XShmDetach (xp->d, &shm_info);
547 if(shmdt (shm_info.shmaddr)==-1)
549 if(shmctl (shm_info.shmid, IPC_RMID, NULL)==-1)