comparison src/keyboard.c @ 96303:ddedcecb18ef

* unexnext.c: * m/ews4800.h: * m/hp9000s300.h: * m/ibm370aix.h: * m/mips-siemens.h: * m/ncr386.h: * m/next.h: * m/pmax.h: * m/powerpcle.h: * m/tandem-s2.h: * s/386bsd.h: * s/bsd386.h: * s/bsd4-1.h: * s/bsd4-2.h: * s/bsdos2-1.h: * s/bsdos2.h: * s/bsdos3.h: * s/bsdos4.h: * s/nextstep.h: * s/ultrix4-3.h: * s/usg5-0.h: * s/usg5-2-2.h: * s/usg5-2.h: * s/usg5-4-3.h: * s/ux4800.h: * s/uxpds.h: * s/uxpv.h: Remove support for obsolete systems. * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h: Remove, insert contents in s/hpux-10.20.h * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h: Remove, insert contents in s/aix-4.2.h * s/usg5-3.h: Remove, insert contents in s/usg5-4.h. * s/bsd4-3.h: Rename to .. * s/bsd-common.h: ... this. * src/data.c: * src/doc.c: * src/ecrt0.c: * src/emacs.c: * src/fileio.c: * src/floatfns.c: * src/keyboard.c: * src/mem-limits.h: * src/print.c: * src/process.c: * src/sysdep.c: * src/syssignal.h: * src/systty.h: * src/syswait.h: * src/term.c: * src/unexec.c: * src/unexelf.c: * src/unexhp9k800.c: * src/m/hp800.h: * src/m/ibmrs6000.h: * src/m/mips.h: * src/m/vax.h: * src/s/darwin.h: * src/s/freebsd.h: * src/s/gnu.h: * src/s/ms-w32.h: * src/s/msdos.h: * src/s/netbsd.h: * src/s/template.h: Remove references to obsolete variables. * Makefile.in: Add dependencies for all unexec files. (admindir): Remove unused variable. (UNEXEC_SRC): Remove references. * config.nt: Remove reference to UNEXEC_SRC. * lwlib.c: Remove references to obsolete variables. * fakemail.c: Remove references to obsolete variables. * os.texi: Remove references to obsolete systems. * configure.in: * configure: Remove references to obsolete systems.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 26 Jun 2008 04:24:54 +0000
parents 4390d64d3328
children d45acf0c8d23
comparison
equal deleted inserted replaced
96302:b3db7e68c460 96303:ddedcecb18ef
7303 #endif /* not VMS */ 7303 #endif /* not VMS */
7304 7304
7305 void 7305 void
7306 handle_async_input () 7306 handle_async_input ()
7307 { 7307 {
7308 #ifdef BSD4_1
7309 extern int select_alarmed;
7310 #endif
7311
7312 interrupt_input_pending = 0; 7308 interrupt_input_pending = 0;
7313 7309
7314 while (1) 7310 while (1)
7315 { 7311 {
7316 int nread; 7312 int nread;
7319 UNBLOCK_INPUT will read it later; now, avoid infinite loop. 7315 UNBLOCK_INPUT will read it later; now, avoid infinite loop.
7320 0 means there was no keyboard input available. */ 7316 0 means there was no keyboard input available. */
7321 if (nread <= 0) 7317 if (nread <= 0)
7322 break; 7318 break;
7323 7319
7324 #ifdef BSD4_1
7325 select_alarmed = 1; /* Force the select emulator back to life */
7326 #endif
7327 } 7320 }
7328 } 7321 }
7329 7322
7330 #ifdef SIGIO /* for entire page */ 7323 #ifdef SIGIO /* for entire page */
7331 /* Note SIGIO has been undef'd if FIONREAD is missing. */ 7324 /* Note SIGIO has been undef'd if FIONREAD is missing. */
7340 /* USG systems forget handlers when they are used; 7333 /* USG systems forget handlers when they are used;
7341 must reestablish each time */ 7334 must reestablish each time */
7342 signal (signo, input_available_signal); 7335 signal (signo, input_available_signal);
7343 #endif /* USG */ 7336 #endif /* USG */
7344 7337
7345 #ifdef BSD4_1
7346 sigisheld (SIGIO);
7347 #endif
7348
7349 #ifdef SYNC_INPUT 7338 #ifdef SYNC_INPUT
7350 interrupt_input_pending = 1; 7339 interrupt_input_pending = 1;
7351 #else 7340 #else
7352 SIGNAL_THREAD_CHECK (signo); 7341 SIGNAL_THREAD_CHECK (signo);
7353 #endif 7342 #endif
7357 7346
7358 #ifndef SYNC_INPUT 7347 #ifndef SYNC_INPUT
7359 handle_async_input (); 7348 handle_async_input ();
7360 #endif 7349 #endif
7361 7350
7362 #ifdef BSD4_1
7363 sigfree ();
7364 #endif
7365 errno = old_errno; 7351 errno = old_errno;
7366 } 7352 }
7367 #endif /* SIGIO */ 7353 #endif /* SIGIO */
7368 7354
7369 /* Send ourselves a SIGIO. 7355 /* Send ourselves a SIGIO.