fprintf(stderr, "init b\n"); fflush(stderr);
int alphaMouseProc (device, what)    DeviceIntPtr  device;   	/* Mouse to play with */    int	    	  what;	    	/* What to do with it */#endif{    DevicePtr	  pMouse = (DevicePtr) device;    int	    	  format;    static int	  oformat;    BYTE    	  map[4];    char	  *dev;fprintf(stderr, "alphaMouseProc (%d)\n", what);fflush(stderr);    switch (what) {	case DEVICE_INIT:fprintf(stderr, "init\n");fflush(stderr);	    if (pMouse != LookupPointerDevice()) {		ErrorF ("Cannot open non-system mouse");			return !Success;	    }fprintf(stderr, "init a\n");fflush(stderr);	    if (alphaPtrPriv.fd == -1)		return !Success;fprintf(stderr, "init b\n");fflush(stderr);	    pMouse->devicePrivate = (pointer) &alphaPtrPriv;	    pMouse->on = FALSE;	    map[1] = 1;	    map[2] = 2;	    map[3] = 3;	    InitPointerDeviceStruct(		pMouse, map, 3, miPointerGetMotionEvents, 		alphaMouseCtrl, miPointerGetMotionBufferSize());	    break;	case DEVICE_ON:fprintf(stderr, "on\n");fflush(stderr);	    if (ioctl (alphaPtrPriv.fd, VUIDGFORMAT, &oformat) == -1) {		Error ("alphaMouseProc ioctl VUIDGFORMAT");		return !Success;	    }fprintf(stderr, "on a\n");fflush(stderr);	    format = VUID_FIRM_EVENT;	    if (ioctl (alphaPtrPriv.fd, VUIDSFORMAT, &format) == -1) {		Error ("alphaMouseProc ioctl VUIDSFORMAT");		return !Success;	    }fprintf(stderr, "on b\n");fflush(stderr);	    alphaPtrPriv.bmask = 0;	    AddEnabledDevice (alphaPtrPriv.fd);	    pMouse->on = TRUE;fprintf(stderr, "on c\n");fflush(stderr);	    break;	case DEVICE_CLOSE:	    if (ioctl (alphaPtrPriv.fd, VUIDSFORMAT, &oformat) == -1)		Error ("alphaMouseProc ioctl VUIDSFORMAT");	    break;	case DEVICE_OFF:	    pMouse->on = FALSE;	    RemoveEnabledDevice (alphaPtrPriv.fd);	    break;    }    return Success;}