fprintf(stderr, "registered kbd\n"); fflush(stderr);
void InitInput(argc, argv)    int     	  argc;    char    	  **argv;{    DeviceIntPtr	p, k;    extern Bool mieqInit();    p = AddInputDevice(alphaMouseProc, TRUE);fprintf(stderr, "added mouse = 0x%lx\n", p);fflush(stderr);    k = AddInputDevice(alphaKbdProc, TRUE);fprintf(stderr, "added kbd = 0x%lx\n", k);fflush(stderr);    if (!p || !k)	FatalError("failed to create input devices in InitInput");fprintf(stderr, "going to register\n");fflush(stderr);    RegisterPointerDevice(p);fprintf(stderr, "registered mouse\n");fflush(stderr);    RegisterKeyboardDevice(k);fprintf(stderr, "registered kbd\n");fflush(stderr);    miRegisterPointerDevice(screenInfo.screens[0], p);fprintf(stderr, "mi-registered mouse\n");fflush(stderr);    (void) mieqInit (k, p);#define SET_FLOW(fd) fcntl(fd, F_SETFL, FNDELAY | FASYNC)    (void) OsSignal(SIGIO, SigIOHandler);#define WANT_SIGNALS(fd) fcntl(fd, F_SETOWN, getpid())    if (alphaKbdPriv.fd >= 0) {	if (SET_FLOW(alphaKbdPriv.fd) == -1 || WANT_SIGNALS(alphaKbdPriv.fd) == -1) {	fprintf(stderr, "kbd failed inits (%d)\n", errno);fflush(stderr);	    (void) close (alphaKbdPriv.fd);	    alphaKbdPriv.fd = -1;	    FatalError("Async kbd I/O failed in InitInput");	}    }    if (alphaPtrPriv.fd >= 0) {	if (SET_FLOW(alphaPtrPriv.fd) == -1 || WANT_SIGNALS(alphaPtrPriv.fd) == -1) {	fprintf(stderr, "mouse failed inits (%d)\n", errno);fflush(stderr);	    (void) close (alphaPtrPriv.fd);	    alphaPtrPriv.fd = -1;	    FatalError("Async mouse I/O failed in InitInput");	}    }}