Diff for /gforth/Attic/io.c between versions 1.1 and 1.3

version 1.1, 1994/02/11 16:30:46 version 1.3, 1994/06/17 12:35:05
Line 3 Line 3
         The following is stolen from the readline library for bash          The following is stolen from the readline library for bash
 */  */
   
   /* Use -DDOMAINOS for Apollo Domain-OS.
      Use -D_POSIX_VERSION for POSIX systems.
   */
   
   #ifdef DOMAINOS
   #define _POSIX_VERSION
   #endif
   
 #include <stdio.h>  #include <stdio.h>
 #include <signal.h>  #include <signal.h>
 #include <sys/types.h>  #include <sys/types.h>
   #ifndef DOMAINOS
 #include <sys/ioctl.h>  #include <sys/ioctl.h>
   #endif
 #include <fcntl.h>  #include <fcntl.h>
 #include <sys/file.h>  #include <sys/file.h>
   
Line 24 Line 34
   
 #define NEW_TTY_DRIVER  #define NEW_TTY_DRIVER
 #define HAVE_BSD_SIGNALS  #define HAVE_BSD_SIGNALS
   #ifndef DOMAINOS
 #define USE_XON_XOFF  #define USE_XON_XOFF
   #endif
   
 /* Some USG machines have BSD signal handling (sigblock, sigsetmask, etc.) */  /* Some USG machines have BSD signal handling (sigblock, sigsetmask, etc.) */
 #if defined (USG) && !defined (hpux)  #if defined (USG) && !defined (hpux)
Line 89  extern int errno; Line 101  extern int errno;
 #  endif /* USGr3 */  #  endif /* USGr3 */
 #endif /* USG && hpux */  #endif /* USG && hpux */
   
 #if defined (_POSIX_VERSION) || defined (USGr3)  #if (defined (_POSIX_VERSION) || defined (USGr3)) && !defined(DOMAINOS)
 #  include <dirent.h>  #  include <dirent.h>
 #  define direct dirent  #  define direct dirent
 #  if defined (_POSIX_VERSION)  #  if defined (_POSIX_VERSION)
Line 705  install_signal_handlers (void) Line 717  install_signal_handlers (void)
    but I would like something more automatic - anton */     but I would like something more automatic - anton */
 #define SIGS_TO_IGNORE  SIGCHLD  #define SIGS_TO_IGNORE  SIGCHLD
 #define SIGS_TO_ABORT   SIGINT, SIGILL, SIGFPE, SIGUSR1, SIGSEGV, SIGUSR2, \  #define SIGS_TO_ABORT   SIGINT, SIGILL, SIGFPE, SIGUSR1, SIGSEGV, SIGUSR2, \
                         SIGALRM, SIGEMT, SIGBUS, SIGSYS                          SIGALRM,  SIGBUS
 #define SIGS_TO_QUIT    SIGHUP, SIGQUIT, SIGABRT, SIGPIPE, \  #define SIGS_TO_QUIT    SIGHUP, SIGQUIT, SIGABRT, SIGPIPE, \
                         SIGTERM                           SIGTERM 
   

Removed from v.1.1  
changed lines
  Added in v.1.3


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