Lines Matching defs:shm
55 #include <sys/shm.h>
154 XShmSegmentInfo shm;
171 XShmSegmentInfo shm;
260 XShmSegmentInfo shm;
274 shm.shmid = shmget(IPC_PRIVATE, 0x1000, IPC_CREAT | 0600);
275 if (shm.shmid == -1)
278 shm.readOnly = 0;
279 shm.shmaddr = shmat(shm.shmid, NULL, 0);
280 if (shm.shmaddr == (char *) -1) {
281 shmctl(shm.shmid, IPC_RMID, NULL);
288 success = XShmAttach(dpy, &shm);
322 e.shmseg = shm.shmid;
335 XShmDetach(dpy, &shm);
336 shmctl(shm.shmid, IPC_RMID, NULL);
337 shmdt(shm.shmaddr);
1029 image->data = clone->shm.shmaddr;
1084 DBG(DRAW, ("%s-%s: creating shm pixmap\n", DisplayString(output->dpy), output->name));
1089 clone->shm.shmaddr, &output->shm,
1163 if (clone->shm.shmaddr) {
1165 XShmDetach(clone->src.dpy, &clone->src.shm);
1167 XShmDetach(clone->dst.dpy, &clone->dst.shm);
1169 shmdt(clone->shm.shmaddr);
1170 clone->shm.shmaddr = NULL;
1235 clone->shm.shmid = shmget(IPC_PRIVATE,
1238 if (clone->shm.shmid == -1)
1241 clone->shm.shmaddr = shmat(clone->shm.shmid, 0, 0);
1242 if (clone->shm.shmaddr == (char *) -1) {
1243 shmctl(clone->shm.shmid, IPC_RMID, NULL);
1248 clone->src.shm = clone->shm;
1249 clone->src.shm.readOnly = False;
1250 XShmAttach(clone->src.dpy, &clone->src.shm);
1254 clone->dst.shm = clone->shm;
1255 clone->dst.shm.readOnly = !clone->dst.use_shm_pixmap;
1256 XShmAttach(clone->dst.dpy, &clone->dst.shm);
1260 shmctl(clone->shm.shmid, IPC_RMID, NULL);
1893 DBG(X11, ("%s-%s use shm? %d (use shm pixmap? %d)\n",
1915 c->image.obdata = (char *)&c->src.shm;
1970 c->image.obdata = (char *)&c->dst.shm;
3184 DBG(X11, ("%s flushing send (serial now %ld) (has shm send? %d)\n",