Lines Matching defs:shm
54 #include <sys/shm.h>
143 XShmSegmentInfo shm;
159 XShmSegmentInfo shm;
241 XShmSegmentInfo shm;
251 shm.shmid = shmget(IPC_PRIVATE, 0x1000, IPC_CREAT | 0600);
252 if (shm.shmid == -1)
255 shm.readOnly = 0;
256 shm.shmaddr = shmat(shm.shmid, NULL, 0);
257 if (shm.shmaddr == (char *) -1) {
258 shmctl(shm.shmid, IPC_RMID, NULL);
265 success = XShmAttach(dpy, &shm);
299 e.shmseg = shm.shmid;
312 XShmDetach(dpy, &shm);
313 shmctl(shm.shmid, IPC_RMID, NULL);
314 shmdt(shm.shmaddr);
965 image->data = clone->shm.shmaddr;
1020 DBG(DRAW, ("%s-%s: creating shm pixmap\n", DisplayString(output->dpy), output->name));
1025 clone->shm.shmaddr, &output->shm,
1099 if (clone->shm.shmaddr) {
1101 XShmDetach(clone->src.dpy, &clone->src.shm);
1103 XShmDetach(clone->dst.dpy, &clone->dst.shm);
1105 shmdt(clone->shm.shmaddr);
1106 clone->shm.shmaddr = NULL;
1171 clone->shm.shmid = shmget(IPC_PRIVATE,
1174 if (clone->shm.shmid == -1)
1177 clone->shm.shmaddr = shmat(clone->shm.shmid, 0, 0);
1178 if (clone->shm.shmaddr == (char *) -1) {
1179 shmctl(clone->shm.shmid, IPC_RMID, NULL);
1184 clone->src.shm = clone->shm;
1185 clone->src.shm.readOnly = False;
1186 XShmAttach(clone->src.dpy, &clone->src.shm);
1190 clone->dst.shm = clone->shm;
1191 clone->dst.shm.readOnly = !clone->dst.use_shm_pixmap;
1192 XShmAttach(clone->dst.dpy, &clone->dst.shm);
1196 shmctl(clone->shm.shmid, IPC_RMID, NULL);
1740 DBG(X11, ("%s-%s use shm? %d (use shm pixmap? %d)\n",
1762 c->image.obdata = (char *)&c->src.shm;
1809 c->image.obdata = (char *)&c->dst.shm;
3001 DBG(X11, ("%s flushing send (serial now %ld) (has shm send? %d)\n",