Lines Matching defs:shm
65 #include <sys/shm.h>
1644 XShmSegmentInfo shm;
1661 shm.shmid = shmget(IPC_PRIVATE, height * 4*width, IPC_CREAT | 0666);
1662 if (shm.shmid == -1)
1665 shm.shmaddr = shmat(shm.shmid, 0, 0);
1666 if (shm.shmaddr == (char *) -1)
1669 shm.readOnly = False;
1670 XShmAttach(dpy, &shm);
1673 shm.shmaddr, &shm, width, height, 24);
1700 XShmDetach(dpy, &shm);
1701 shmdt(shm.shmaddr);
1704 shmctl(shm.shmid, IPC_RMID, NULL);