Diff for /gforth/engine/io.c between versions 1.4 and 1.5

version 1.4, 1997/08/22 19:23:20 version 1.5, 1998/05/02 21:29:02
Line 85 Line 85
 #endif /* !_POSIX_VERSION */  #endif /* !_POSIX_VERSION */
   
 /* Posix systems use termios and the Posix signal functions. */  /* Posix systems use termios and the Posix signal functions. */
 #if defined (_POSIX_VERSION)  #if defined (_POSIX_VERSION) || defined (NeXT)
 #  if !defined (TERMIOS_MISSING)  #  if !defined (TERMIOS_MISSING)
 #    undef NEW_TTY_DRIVER  #    undef NEW_TTY_DRIVER
 #    define TERMIOS_TTY_DRIVER  #    define TERMIOS_TTY_DRIVER
 #    include <termios.h>  #    include <termios.h>
 #  endif /* !TERMIOS_MISSING */  #  endif /* !TERMIOS_MISSING */
   #endif /* _POSIX_VERSION || NeXT */
   
   #if defined (_POSIX_VERSION)
 #  define HAVE_POSIX_SIGNALS  #  define HAVE_POSIX_SIGNALS
 #  if !defined (O_NDELAY)  #  if !defined (O_NDELAY)
 #    define O_NDELAY O_NONBLOCK /* Posix-style non-blocking i/o */  #    define O_NDELAY O_NONBLOCK /* Posix-style non-blocking i/o */
Line 107 Line 110
    special character is disabled and to disable certain special     special character is disabled and to disable certain special
    characters.  Posix systems should set to 0, USG systems to -1. */     characters.  Posix systems should set to 0, USG systems to -1. */
 #if !defined (NEW_TTY_DRIVER) && !defined (_POSIX_VDISABLE)  #if !defined (NEW_TTY_DRIVER) && !defined (_POSIX_VDISABLE)
 #  if defined (_POSIX_VERSION)  #  if defined (_POSIX_VERSION) || defined (NeXT)
 #    define _POSIX_VDISABLE 0  #    define _POSIX_VDISABLE 0
 #  else /* !_POSIX_VERSION */  #  else /* !_POSIX_VERSION */
 #    define _POSIX_VDISABLE -1  #    define _POSIX_VDISABLE -1
Line 974  void install_signal_handlers (void) Line 977  void install_signal_handlers (void)
     signal (sigs_to_ignore [i], SIG_IGN);      signal (sigs_to_ignore [i], SIG_IGN);
 */  */
   for (i = 0; i < DIM (sigs_to_throw); i++)    for (i = 0; i < DIM (sigs_to_throw); i++)
     signal (sigs_to_throw [i], signal_throw);      signal (sigs_to_throw [i], die_on_signal ? graceful_exit : signal_throw);
   for (i = 0; i < DIM (sigs_to_quit); i++)    for (i = 0; i < DIM (sigs_to_quit); i++)
     signal (sigs_to_quit [i], graceful_exit);      signal (sigs_to_quit [i], graceful_exit);
 #ifdef SIGCONT  #ifdef SIGCONT

Removed from v.1.4  
changed lines
  Added in v.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>