[BACK]Return to tipout.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tip

Diff for /src/usr.bin/tip/Attic/tipout.c between version 1.13 and 1.14

version 1.13, 2006/03/16 19:32:46 version 1.14, 2006/03/17 14:43:06
Line 48 
Line 48 
   
 static  jmp_buf sigbuf;  static  jmp_buf sigbuf;
   
   static void     intIOT(int);
   static void     intEMT(int);
   static void     intTERM(int);
   static void     intSYS(int);
   
 /*  /*
  * TIPOUT wait state routine --   * TIPOUT wait state routine --
  *   sent by TIPIN when it wants to posses the remote host   *   sent by TIPIN when it wants to posses the remote host
  */   */
 void  static void
 intIOT(int signo)  intIOT(int signo)
 {  {
   
         write(repdes[1],&ccc,1);          write(repdes[1],&ccc,1);
         read(fildes[0], &ccc,1);          read(fildes[0], &ccc,1);
         longjmp(sigbuf, 1);          longjmp(sigbuf, 1);
Line 65 
Line 69 
  * Scripting command interpreter --   * Scripting command interpreter --
  *  accepts script file name over the pipe and acts accordingly   *  accepts script file name over the pipe and acts accordingly
  */   */
 void  static void
 intEMT(int signo)  intEMT(int signo)
 {  {
         char c, line[256];          char c, line[256];
Line 95 
Line 99 
         longjmp(sigbuf, 1);          longjmp(sigbuf, 1);
 }  }
   
 void  static void
 intTERM(int signo)  intTERM(int signo)
 {  {
         if (boolean(value(SCRIPT)) && fscript != NULL)          if (boolean(value(SCRIPT)) && fscript != NULL)
Line 105 
Line 109 
         exit(0);          exit(0);
 }  }
   
 void  static void
 intSYS(int signo)  intSYS(int signo)
 {  {
   
         setboolean(value(BEAUTIFY), !boolean(value(BEAUTIFY)));          setboolean(value(BEAUTIFY), !boolean(value(BEAUTIFY)));
         longjmp(sigbuf, 1);          longjmp(sigbuf, 1);
 }  }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14