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

version 1.3, 1997/07/31 16:17:26 version 1.4, 1997/08/22 19:23:20
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) || defined (NeXT)  #if defined (_POSIX_VERSION)
 #  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 110 Line 107
    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) || defined (NeXT)  #  if defined (_POSIX_VERSION)
 #    define _POSIX_VDISABLE 0  #    define _POSIX_VDISABLE 0
 #  else /* !_POSIX_VERSION */  #  else /* !_POSIX_VERSION */
 #    define _POSIX_VDISABLE -1  #    define _POSIX_VDISABLE -1
Line 616  long key_avail (stream) Line 613  long key_avail (stream)
         FILE *stream;          FILE *stream;
 {  {
   int tty = fileno (stream);    int tty = fileno (stream);
   long chars_avail = pending;    int chars_avail = pending;
   int result;    int result;
   
   if(!terminal_prepped)  prep_terminal();    if(!terminal_prepped)  prep_terminal();
Line 977  void install_signal_handlers (void) Line 974  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], die_on_signal ? graceful_exit : signal_throw);      signal (sigs_to_throw [i], 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.3  
changed lines
  Added in v.1.4


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