NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

xsrc/41619: current-Xhpc clash with wsmouse



>Number:         41619
>Category:       xsrc
>Synopsis:       current-Xhpc clash with wsmouse
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    xsrc-manager
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 20 02:50:00 +0000 2009
>Originator:     Yasushi Oshima
>Release:        NetBSD/hpcmips current 5.99.13
>Organization:
>Environment:
NetBSD hpcmips 5.99.13 
>Description:
Xhpc crashes after 64bit time_t merging.

It is necessary that hpcKeyboard uses new ioctl. 

this occures not only hpcmips, but also hpcsh, hpcarm.
In addition, some Xserver based on wsconsole will be the same  (ex, 
Xdreamacast) .


>How-To-Repeat:
run Xserver on hpcmips current,
and move mouse/pointer or touch-screen.

>Fix:
This is for Xhpc.

--- xfree/xc/programs/Xserver/hw/netbsd/hpc/hpcMouse.c        3 Jan 2004 
01:09:19 -0000       1.1
+++ xfree/xc/programs/Xserver/hw/netbsd/hpc/hpcMouse.c
@@ -149,6 +149,16 @@
                    hpcPtrPriv.bedev->bedev = &hpcPtrPriv;
            }
 
+#ifdef WSMOUSEIO_SETVERSION
+           {
+               int version = WSMOUSE_EVENT_VERSION;
+               if (ioctl(hpcPtrPriv.fd, WSMOUSEIO_SETVERSION, &version) == -1) 
{
+                   hpcError ("hpcMouseProc ioctl WSMOUSEIO_SETVERSION");
+                   return !Success;
+               }
+           }
+#endif
+
            hpcPtrPriv.bemask = 0;
            hpcPtrPriv.brmask = 0;
            hpcPtrPriv.ebdown = 0;



Home | Main Index | Thread Index | Old Index