comparison lib-src/=timer.c @ 5571:c50d6d8ad8c1

[USG] (SIGIO): Define as SIGPOLL. (main) [USG]: Do ioctl to enable SIGPOLL.
author Richard M. Stallman <rms@gnu.org>
date Wed, 12 Jan 1994 04:48:56 +0000
parents 51451a050975
children e77e9d7386be
comparison
equal deleted inserted replaced
5570:2c5f3537a1cc 5571:c50d6d8ad8c1
18 #include <sys/types.h> /* time_t */ 18 #include <sys/types.h> /* time_t */
19 19
20 #include <../src/config.h> 20 #include <../src/config.h>
21 #ifdef USG 21 #ifdef USG
22 #undef SIGIO 22 #undef SIGIO
23 #define SIGIO SIGUSR1 23 #define SIGIO SIGPOLL
24 #endif 24 #endif
25 25
26 #ifdef LINUX 26 #ifdef LINUX
27 /* Perhaps this is correct unconditionally. */ 27 /* Perhaps this is correct unconditionally. */
28 #undef signal 28 #undef signal
289 { 289 {
290 fprintf (stderr, "%s: can't request asynchronous I/O on stdin\n", pname); 290 fprintf (stderr, "%s: can't request asynchronous I/O on stdin\n", pname);
291 fprintf (stderr, "%s\n", strerror (errno)); 291 fprintf (stderr, "%s\n", strerror (errno));
292 exit (1); 292 exit (1);
293 } 293 }
294 #else /* USG */
295 /* Register this process for SIGPOLL. */
296 ioctl (0, I_SETSIG, S_RDNORM);
294 #endif /* USG */ 297 #endif /* USG */
295 298
296 /* In case Emacs sent some input before we set up 299 /* In case Emacs sent some input before we set up
297 the handling of SIGIO, read it now. */ 300 the handling of SIGIO, read it now. */
298 kill (0, SIGIO); 301 kill (0, SIGIO);