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

Diff for /src/usr.bin/tip/Attic/cmds.c between version 1.20 and 1.21

version 1.20, 2004/11/07 09:48:08 version 1.21, 2005/03/11 22:16:16
Line 112 
Line 112 
                 printf("\r\n%s: cannot create\r\n", argv[1]);                  printf("\r\n%s: cannot create\r\n", argv[1]);
                 return;                  return;
         }          }
         (void)snprintf(line, sizeof(line), "cat %s;echo \01", argv[0]);          (void)snprintf(line, sizeof(line), "cat %s;echo ''|tr '\\012' '\\01'", argv[0]);
         transfer(line, fd, "\01");          transfer(line, fd, "\01");
 }  }
   
Line 135 
Line 135 
         sig_t f;          sig_t f;
         char r;          char r;
   
           if (number(value(FRAMESIZE)) > BUFSIZ || number(value(FRAMESIZE)) < 1) {
                   printf("framesize must be >= 1 and <= %d\r\n", BUFSIZ);
                   close(fd);
                   return;
           }
   
         parwrite(FD, buf, size(buf));          parwrite(FD, buf, size(buf));
         quit = 0;          quit = 0;
         kill(tipout_pid, SIGIOT);          kill(tipout_pid, SIGIOT);
Line 642 
Line 648 
         char *msg;          char *msg;
 {  {
   
           signal(SIGTERM, SIG_IGN);
         kill(tipout_pid, SIGTERM);          kill(tipout_pid, SIGTERM);
         disconnect(msg);          disconnect(msg);
         if (msg != NOSTR)          if (msg != NOSTR)

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21