Print this page
5088 it's probably ok for vi to stop working around pdp-11 bugs now

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/vi/port/ex.c
          +++ new/usr/src/cmd/vi/port/ex.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   27  /*        All Rights Reserved   */
  28   28  
  29   29  /* Copyright (c) 1981 Regents of the University of California */
  30   30  
  31      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  32      -
  33   31  #include "ex.h"
  34   32  #include "ex_argv.h"
  35   33  #include "ex_temp.h"
  36   34  #include "ex_tty.h"
  37   35  #include <stdlib.h>
  38   36  #include <locale.h>
  39   37  #include <stdio.h>
  40   38  #ifdef TRACE
  41   39  unsigned char   tttrace[BUFSIZ];
  42   40  #endif
↓ open down ↓ 191 lines elided ↑ open up ↑
 234  232          /*
 235  233           * Initialize interrupt handling.
 236  234           */
 237  235          oldhup = signal(SIGHUP, SIG_IGN);
 238  236          if (oldhup == SIG_DFL)
 239  237                  signal(SIGHUP, onhup);
 240  238          oldquit = signal(SIGQUIT, SIG_IGN);
 241  239          ruptible = signal(SIGINT, SIG_IGN) == SIG_DFL;
 242  240          if (signal(SIGTERM, SIG_IGN) == SIG_DFL)
 243  241                  signal(SIGTERM, onhup);
 244      -        if (signal(SIGEMT, SIG_IGN) == SIG_DFL)
 245      -                signal(SIGEMT, onemt);
 246  242          signal(SIGILL, oncore);
 247  243          signal(SIGTRAP, oncore);
 248  244          signal(SIGIOT, oncore);
 249  245          signal(SIGFPE, oncore);
 250  246          signal(SIGBUS, oncore);
 251  247          signal(SIGSEGV, oncore);
 252  248          signal(SIGPIPE, oncore);
 253  249          init_re();
 254  250          while (1) {
 255  251  #ifdef TRACE
↓ open down ↓ 525 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX