home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / ispin / part11 < prev    next >
Encoding:
Text File  |  1992-02-01  |  54.6 KB  |  1,443 lines

  1. Newsgroups: comp.sources.unix
  2. From: sir-alan!ispin!lbartz@iuvax.cs.indiana.edu (Larry Bartz)
  3. Subject: v25i122: Indianapolis Standard Printer Interface for Networked printers, Part11/15
  4. Sender: sources-moderator@pa.dec.com
  5. Approved: vixie@pa.dec.com
  6.  
  7. Submitted-By: sir-alan!ispin!lbartz@iuvax.cs.indiana.edu (Larry Bartz)
  8. Posting-Number: Volume 25, Issue 122
  9. Archive-Name: ispin/part11
  10.  
  11. #! /bin/sh
  12. # This is a shell archive.  Remove anything before this line, then unpack
  13. # it by saving it into a file and typing "sh file".  To overwrite existing
  14. # files, type "sh file -c".  You can also feed this as standard input via
  15. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  16. # will see the following message at the end:
  17. #        "End of archive 11 (of 15)."
  18. # Contents:  ISPIN/src/ISPIN.c.ae ISPIN/doc/COPY+WARR.doc
  19. #   ISPIN/doc/OLD-DOCS/README.rel_1.1 ISPIN/misc/ISPIT.dr/rtab.entry
  20. # Wrapped by socrates@indy6 on Tue Jan 28 15:27:06 1992
  21. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  22. if test -f 'ISPIN/src/ISPIN.c.ae' -a "${1}" != "-c" ; then 
  23.   echo shar: Will not clobber existing file \"'ISPIN/src/ISPIN.c.ae'\"
  24. else
  25. echo shar: Extracting \"'ISPIN/src/ISPIN.c.ae'\" \(33854 characters\)
  26. sed "s/^X//" >'ISPIN/src/ISPIN.c.ae' <<'END_OF_FILE'
  27. X
  28. X                                  my_error(TIMEOUT);
  29. X                                }
  30. X
  31. X        sprintf(banline,
  32. X                "*  SYSTEM:   %-8.8s%*s*\n", sysnam.nodename,36," ");
  33. X
  34. X                                /* set up timeout for write */
  35. X        signal(SIGALRM, my_error);
  36. X
  37. X                                /* assume no timeout */
  38. X                                time_out = 0; 
  39. X
  40. X                                /* Wait a long time for the write to */
  41. X                                /* happen. This allows user time to  */
  42. X                                /* change the ribbon, clear paper    */
  43. X                                /* jam, or replenish paper supply.   */
  44. X                                /* On the other hand, we won't wait  */
  45. X                                /* forever.                          */
  46. X                                alarm(WRITEWAIT);
  47. X
  48. X        write(out_file, banline, strlen(banline));
  49. X
  50. X                                /* turn off the alarm clock */
  51. X                                alarm(0);
  52. X
  53. X                                /* ignore alarm */
  54. X        signal(SIGALRM, SIG_IGN);
  55. X
  56. X                                if(time_out == 1)
  57. X                                {
  58. X                                  /* We timed out on the write.*/
  59. X                                  /* Behave as though we were  */
  60. X                                  /* disconnected.             */
  61. X
  62. X                                  my_error(TIMEOUT);
  63. X                                }
  64. X
  65. X        sprintf(banline,
  66. X                "*  USER:     %-8.8s%*s*\n",from,36," ");
  67. X
  68. X                                /* set up timeout for write */
  69. X        signal(SIGALRM, my_error);
  70. X
  71. X                                /* assume no timeout */
  72. X                                time_out = 0; 
  73. X
  74. X                                /* Wait a long time for the write to */
  75. X                                /* happen. This allows user time to  */
  76. X                                /* change the ribbon, clear paper    */
  77. X                                /* jam, or replenish paper supply.   */
  78. X                                /* On the other hand, we won't wait  */
  79. X                                /* forever.                          */
  80. X                                alarm(WRITEWAIT);
  81. X
  82. X        write(out_file, banline, strlen(banline));
  83. X
  84. X
  85. X                                count1 = alarm(0);
  86. X
  87. X                                if(time_out == 1)
  88. X                                {
  89. X                                  my_error(TIMEOUT);
  90. X                                }
  91. X
  92. X                                alarm((unsigned)count1);
  93. X
  94. X        /* wait here for the output to drain */
  95. X        ioctl(out_file, TCSBRK, 1);
  96. X
  97. X
  98. X                                /* turn off the alarm clock */
  99. X                                alarm(0);
  100. X
  101. X                                /* ignore alarm */
  102. X        signal(SIGALRM, SIG_IGN);
  103. X
  104. X                                if(time_out == 1)
  105. X                                {
  106. X                                  /* We timed out on the write.*/
  107. X                                  /* Behave as though we were  */
  108. X                                  /* disconnected.             */
  109. X
  110. X                                  my_error(TIMEOUT);
  111. X                                }
  112. X
  113. X        sprintf(banline,
  114. X                "*  PRINTER:  %s%*s*\n", dest, 44 - strlen(dest), " ");
  115. X
  116. X                                /* set up timeout for write */
  117. X        signal(SIGALRM, my_error);
  118. X
  119. X                                /* assume no timeout */
  120. X                                time_out = 0; 
  121. X
  122. X                                /* Wait a long time for the write to */
  123. X                                /* happen. This allows user time to  */
  124. X                                /* change the ribbon, clear paper    */
  125. X                                /* jam, or replenish paper supply.   */
  126. X                                /* On the other hand, we won't wait  */
  127. X                                /* forever.                          */
  128. X                                alarm(WRITEWAIT);
  129. X
  130. X        write(out_file, banline, strlen(banline));
  131. X
  132. X                                /* turn off the alarm clock */
  133. X                                alarm(0);
  134. X
  135. X                                /* ignore alarm */
  136. X        signal(SIGALRM, SIG_IGN);
  137. X
  138. X                                if(time_out == 1)
  139. X                                {
  140. X                                  /* We timed out on the write.*/
  141. X                                  /* disconnected.             */
  142. X
  143. X                                  my_error(TIMEOUT);
  144. X                                }
  145. X
  146. X#ifdef NQ
  147. X        sprintf(banline,
  148. X                "*  FILE:     %s%*s*\n", fyle, 44 - strlen(fyle), " ");
  149. X#else
  150. X        sprintf(banline,
  151. X                "*  FILE:     %s%*s*\n", fyles[numfiles], 44 - strlen(fyles[numfiles]), " ");
  152. X#endif
  153. X
  154. X                                /* set up timeout for write */
  155. X        signal(SIGALRM, my_error);
  156. X
  157. X                                /* assume no timeout */
  158. X                                time_out = 0; 
  159. X
  160. X                                /* Wait a long time for the write to */
  161. X                                /* happen. This allows user time to  */
  162. X                                /* change the ribbon, clear paper    */
  163. X                                /* jam, or replenish paper supply.   */
  164. X                                /* On the other hand, we won't wait  */
  165. X                                /* forever.                          */
  166. X                                alarm(WRITEWAIT);
  167. X
  168. X        write(out_file, banline, strlen(banline));
  169. X
  170. X
  171. X                                count1 = alarm(0);
  172. X
  173. X                                if(time_out == 1)
  174. X                                {
  175. X                                  my_error(TIMEOUT);
  176. X                                }
  177. X
  178. X                                alarm((unsigned)count1);
  179. X
  180. X        /* wait here for the output to drain */
  181. X        ioctl(out_file, TCSBRK, 1);
  182. X
  183. X
  184. X                                /* turn off the alarm clock */
  185. X                                alarm(0);
  186. X
  187. X                                /* ignore alarm */
  188. X        signal(SIGALRM, SIG_IGN);
  189. X
  190. X                                if(time_out == 1)
  191. X                                {
  192. X                                  /* We timed out on the write.*/
  193. X                                  /* Behave as though we were  */
  194. X                                  /* disconnected.             */
  195. X
  196. X                                  my_error(TIMEOUT);
  197. X                                }
  198. X
  199. X        sprintf(banline,
  200. X                "*  TIME:     %-24.24s%*s*\n", time_str,20," ");
  201. X
  202. X                                /* set up timeout for write */
  203. X        signal(SIGALRM, my_error);
  204. X
  205. X                                /* assume no timeout */
  206. X                                time_out = 0; 
  207. X
  208. X                                /* Wait a long time for the write to */
  209. X                                /* happen. This allows user time to  */
  210. X                                /* change the ribbon, clear paper    */
  211. X                                /* jam, or replenish paper supply.   */
  212. X                                /* On the other hand, we won't wait  */
  213. X                                /* forever.                          */
  214. X                                alarm(WRITEWAIT);
  215. X
  216. X        write(out_file, banline, strlen(banline));
  217. X
  218. X                                /* turn off the alarm clock */
  219. X                                alarm(0);
  220. X
  221. X                                /* ignore alarm */
  222. X        signal(SIGALRM, SIG_IGN);
  223. X
  224. X                                if(time_out == 1)
  225. X                                {
  226. X                                  /* We timed out on the write.*/
  227. X                                  /* Behave as though we were  */
  228. X                                  /* disconnected.             */
  229. X
  230. X                                  my_error(TIMEOUT);
  231. X                                }
  232. X
  233. X        sprintf(banline,
  234. X                "*                                                        *\n");
  235. X
  236. X                                /* set up timeout for write */
  237. X        signal(SIGALRM, my_error);
  238. X
  239. X                                /* assume no timeout */
  240. X                                time_out = 0; 
  241. X
  242. X                                /* Wait a long time for the write to */
  243. X                                /* happen. This allows user time to  */
  244. X                                /* change the ribbon, clear paper    */
  245. X                                /* jam, or replenish paper supply.   */
  246. X                                /* On the other hand, we won't wait  */
  247. X                                /* forever.                          */
  248. X                                alarm(WRITEWAIT);
  249. X
  250. X        write(out_file, banline, strlen(banline));
  251. X
  252. X                                /* turn off the alarm clock */
  253. X                                alarm(0);
  254. X
  255. X                                /* ignore alarm */
  256. X        signal(SIGALRM, SIG_IGN);
  257. X
  258. X                                if(time_out == 1)
  259. X                                {
  260. X                                  /* We timed out on the write.*/
  261. X                                  /* Behave as though we were  */
  262. X                                  /* disconnected.             */
  263. X
  264. X                                  my_error(TIMEOUT);
  265. X                                }
  266. X
  267. X        sprintf(banline,"**********************************************************\n\f");
  268. X                
  269. X
  270. X                                /* set up timeout for write */
  271. X        signal(SIGALRM, my_error);
  272. X
  273. X                                /* assume no timeout */
  274. X                                time_out = 0; 
  275. X
  276. X                                /* Wait a long time for the write to */
  277. X                                /* happen. This allows user time to  */
  278. X                                /* change the ribbon, clear paper    */
  279. X                                /* jam, or replenish paper supply.   */
  280. X                                /* On the other hand, we won't wait  */
  281. X                                /* forever.                          */
  282. X                                alarm(WRITEWAIT);
  283. X
  284. X        write(out_file, banline, strlen(banline));
  285. X
  286. X                                /* turn off the alarm clock */
  287. X                                alarm(0);
  288. X
  289. X                                /* ignore alarm */
  290. X        signal(SIGALRM, SIG_IGN);
  291. X
  292. X                                if(time_out == 1)
  293. X                                {
  294. X                                  /* We timed out on the write.*/
  295. X                                  /* Behave as though we were  */
  296. X                                  /* disconnected.             */
  297. X
  298. X                                  my_error(TIMEOUT);
  299. X                                }
  300. X
  301. X        return(0);
  302. X}
  303. X
  304. X
  305. Xopen_fifos()
  306. X{
  307. X  /* allocate storage for our file status buffer */
  308. X  stat_buf = (struct stat *) calloc(1,sizeof(struct stat));
  309. X
  310. X  /* what is the name of the FIFO I talk through?   */
  311. X  strcpy(outFIFO,FIFOdir);
  312. X  strcat(outFIFO,"IQUEUER");
  313. X  /* does it exist? */
  314. X  if(stat(outFIFO,stat_buf))
  315. X  {
  316. X    /* if not,      */
  317. X    /* die horribly */
  318. X    /* need to send out an error msg */
  319. X          /* format an error message */
  320. X          time(&tloc);
  321. X          nowtime = (struct tm *)localtime(&tloc);
  322. X          time_str = asctime(nowtime);
  323. X
  324. X          sprintf(errmsg,"ISPIN: printer %s: stat %s: %s.\n",dest,outFIFO,sys_errlist[errno]);
  325. X          sprintf(errmsg2,"    USER: %s\n",from);
  326. X          strcat(errmsg,errmsg2);
  327. X          if(usr_addr)
  328. X          {
  329. X            sprintf(errmsg2,"    ADDR: %s\n",usr_strng);
  330. X            strcat(errmsg,errmsg2);
  331. X          }
  332. X#ifdef NQ
  333. X          sprintf(errmsg2,"    FILE: %s\n",fyle);
  334. X#else
  335. X          sprintf(errmsg2,"    FILE: %s\n",fyles[0]);
  336. X#endif
  337. X          strcat(errmsg,errmsg2);
  338. X          sprintf(errmsg2,"    TIME: %s\n",time_str);
  339. X          strcat(errmsg,errmsg2);
  340. X
  341. X         /* call the error routine, never come back */
  342. X         my_error(NONOTIFY);
  343. X
  344. X  }
  345. X
  346. X
  347. X  /* An open for writing will block unless a process (IQUEUER) has the file   */
  348. X  /* open for reading. If we open it for reading ourselves, our write open    */
  349. X  /* will not block. Let's write to the FIFO whether IQUEUER is listening or  */
  350. X  /* not. That way, if IQUEUER happens to be dead, our message will wait in   */
  351. X  /* the pipe until a new IQUEUER becomes available to read it; a stab at     */
  352. X  /* robustness. Or is that robusticity?                                      */
  353. X
  354. X  /* this open just tricks the FIFO into staying open for our write           */
  355. X  if((outropn = open(outFIFO,O_RDWR | O_NDELAY)) == -1)
  356. X  {
  357. X    /* need to send out an error msg */
  358. X          /* format an error message */
  359. X          time(&tloc);
  360. X          nowtime = (struct tm *)localtime(&tloc);
  361. X          time_str = asctime(nowtime);
  362. X
  363. X          sprintf(errmsg,"ISPIN: printer %s: open %s: %s.\n",dest,outFIFO,sys_errlist[errno]);
  364. X          sprintf(errmsg2,"    USER: %s\n",from);
  365. X          strcat(errmsg,errmsg2);
  366. X          if(usr_addr)
  367. X          {
  368. X            sprintf(errmsg2,"    ADDR: %s\n",usr_strng);
  369. X            strcat(errmsg,errmsg2);
  370. X          }
  371. X#ifdef NQ
  372. X          sprintf(errmsg2,"    FILE: %s\n",fyle);
  373. X#else
  374. X          sprintf(errmsg2,"    FILE: %s\n",fyles[0]);
  375. X#endif
  376. X          strcat(errmsg,errmsg2);
  377. X          sprintf(errmsg2,"    TIME: %s\n",time_str);
  378. X          strcat(errmsg,errmsg2);
  379. X
  380. X         /* call the error routine, never come back */
  381. X         my_error(NONOTIFY);
  382. X
  383. X  }
  384. X
  385. X  /* this open of the FIFO is the one we'll use for our write           */
  386. X  if((outfifo = open(outFIFO,O_WRONLY)) == -1)
  387. X  {
  388. X    /* need to send out an error msg */
  389. X          /* format an error message */
  390. X          time(&tloc);
  391. X          nowtime = (struct tm *)localtime(&tloc);
  392. X          time_str = asctime(nowtime);
  393. X
  394. X          sprintf(errmsg,"ISPIN: printer %s: open %s: %s.\n",dest,outFIFO,sys_errlist[errno]);
  395. X          sprintf(errmsg2,"    USER: %s\n",from);
  396. X          strcat(errmsg,errmsg2);
  397. X          if(usr_addr)
  398. X          {
  399. X            sprintf(errmsg2,"    ADDR: %s\n",usr_strng);
  400. X            strcat(errmsg,errmsg2);
  401. X          }
  402. X#ifdef NQ
  403. X          sprintf(errmsg2,"    FILE: %s\n",fyle);
  404. X#else
  405. X          sprintf(errmsg2,"    FILE: %s\n",fyles[0]);
  406. X#endif
  407. X          strcat(errmsg,errmsg2);
  408. X          sprintf(errmsg2,"    TIME: %s\n",time_str);
  409. X          strcat(errmsg,errmsg2);
  410. X
  411. X         /* call the error routine, never come back */
  412. X         my_error(NONOTIFY);
  413. X
  414. X  }
  415. X
  416. X  
  417. X
  418. X  /* what is the name of the FIFO I listen through? */
  419. X  strcpy(inFIFO,FIFOdir);
  420. X  strcat(inFIFO,dest);
  421. X  /* does it exist? */
  422. X  if(stat(inFIFO,stat_buf))
  423. X  {
  424. X    /* if not,      */
  425. X    /* create it if we can */
  426. X    if(mknod(inFIFO,0010666,1) != SUCCESS)
  427. X    {
  428. X      /* It didn't exist and we couldn't create it either. */
  429. X      /* All hope is lost.                                 */
  430. X      /* need to send out an error msg */
  431. X          /* format an error message */
  432. X          time(&tloc);
  433. X          nowtime = (struct tm *)localtime(&tloc);
  434. X          time_str = asctime(nowtime);
  435. X
  436. X          sprintf(errmsg,"ISPIN: printer %s: mknod %s: %s.\n",dest,inFIFO,sys_errlist[errno]);
  437. X          sprintf(errmsg2,"    USER: %s\n",from);
  438. X          strcat(errmsg,errmsg2);
  439. X          if(usr_addr)
  440. X          {
  441. X            sprintf(errmsg2,"    ADDR: %s\n",usr_strng);
  442. X            strcat(errmsg,errmsg2);
  443. X          }
  444. X#ifdef NQ
  445. X          sprintf(errmsg2,"    FILE: %s\n",fyle);
  446. X#else
  447. X          sprintf(errmsg2,"    FILE: %s\n",fyles[0]);
  448. X#endif
  449. X          strcat(errmsg,errmsg2);
  450. X          sprintf(errmsg2,"    TIME: %s\n",time_str);
  451. X          strcat(errmsg,errmsg2);
  452. X
  453. X         /* call the error routine, never come back */
  454. X         my_error(SYSERR);
  455. X
  456. X    }
  457. X  stat(inFIFO,stat_buf);
  458. X  }
  459. X
  460. X  /* capture the inode number of my FIFO */
  461. X  /* this is the only means we have to identify ourselves to IQUEUER */
  462. X  req_msg.my_fifo.intgr = (int)stat_buf->st_ino;
  463. X
  464. X  /* our incoming pipe exists, so open it for reading */
  465. X  /* first, do a "false" open for read/write so we can hold it open */
  466. X  /* for writing.                                             */
  467. X  if((inropn = open(inFIFO,O_RDWR | O_NDELAY)) == -1)
  468. X  {
  469. X    /* need to send out an error msg */
  470. X          /* format an error message */
  471. X          time(&tloc);
  472. X          nowtime = (struct tm *)localtime(&tloc);
  473. X          time_str = asctime(nowtime);
  474. X
  475. X          sprintf(errmsg,"ISPIN: printer %s: open %s: %s.\n",dest,inFIFO,sys_errlist[errno]);
  476. X          sprintf(errmsg2,"    USER: %s\n",from);
  477. X          strcat(errmsg,errmsg2);
  478. X          if(usr_addr)
  479. X          {
  480. X            sprintf(errmsg2,"    ADDR: %s\n",usr_strng);
  481. X            strcat(errmsg,errmsg2);
  482. X          }
  483. X#ifdef NQ
  484. X          sprintf(errmsg2,"    FILE: %s\n",fyle);
  485. X#else
  486. X          sprintf(errmsg2,"    FILE: %s\n",fyles[0]);
  487. X#endif
  488. X          strcat(errmsg,errmsg2);
  489. X          sprintf(errmsg2,"    TIME: %s\n",time_str);
  490. X          strcat(errmsg,errmsg2);
  491. X
  492. X         /* call the error routine, never come back */
  493. X         my_error(SYSERR);
  494. X
  495. X  }
  496. X
  497. X
  498. X  /* finally, do a "real" open for reading for   */
  499. X  /* an opportunity to do "blocking" reads.                           */
  500. X  if((infifo = open(inFIFO,O_RDONLY)) == -1)
  501. X  {
  502. X    /* need to send out an error msg */
  503. X          /* format an error message */
  504. X          time(&tloc);
  505. X          nowtime = (struct tm *)localtime(&tloc);
  506. X          time_str = asctime(nowtime);
  507. X
  508. X          sprintf(errmsg,"ISPIN: printer %s: open %s: %s.\n",dest,inFIFO,sys_errlist[errno]);
  509. X          sprintf(errmsg2,"    USER: %s\n",from);
  510. X          strcat(errmsg,errmsg2);
  511. X          if(usr_addr)
  512. X          {
  513. X            sprintf(errmsg2,"    ADDR: %s\n",usr_strng);
  514. X            strcat(errmsg,errmsg2);
  515. X          }
  516. X#ifdef NQ
  517. X          sprintf(errmsg2,"    FILE: %s\n",fyle);
  518. X#else
  519. X          sprintf(errmsg2,"    FILE: %s\n",fyles[0]);
  520. X#endif
  521. X          strcat(errmsg,errmsg2);
  522. X          sprintf(errmsg2,"    TIME: %s\n",time_str);
  523. X          strcat(errmsg,errmsg2);
  524. X
  525. X         /* call the error routine, never come back */
  526. X         my_error(SYSERR);
  527. X
  528. X  }
  529. X}
  530. X
  531. X
  532. Xwrite_net(msg)
  533. Xchar *msg;
  534. X{
  535. X  int count, wr_count, checkit, octal, oct_cnt;
  536. X  char nul = '\0';    /* a NULL */
  537. X  char bs  = '\010';  /* a backspace */
  538. X  char nl  = '\012';  /* a newline */
  539. X  char cr  = '\015';  /* a carriage return */
  540. X  char sp  = '\040';  /* a space */
  541. X  char ht  = '\011';  /* a tab */
  542. X  char ff  = '\f';    /* 'C' formfeed character */
  543. X  char eot = '\004';  /* an EOT */
  544. X  char del = '\177';  /* a DELETE */
  545. X  char esc = '\033';  /* an ESCAPE */
  546. X  char octal_char[2];    /* place to put converted octal representation */
  547. X
  548. X  count = wr_count = checkit = 0;
  549. X
  550. X#ifdef DEBUG
  551. X          /* format an error message */
  552. X          time(&tloc);
  553. X          nowtime = (struct tm *)localtime(&tloc);
  554. X          time_str = asctime(nowtime);
  555. X          sprintf(errmsg,"ISPIN: write_net msg = [%s]\n",msg);
  556. X          strcat(errmsg,"                            ");
  557. X          strcat(errmsg,time_str);
  558. X          strcat(errmsg,"\n");
  559. X         if((logfile = fopen(LOGFILE,"a+")) != NULL)
  560. X         {
  561. X            fprintf(logfile,errmsg);
  562. X            fclose(logfile);
  563. X         }
  564. X#endif
  565. X
  566. X
  567. X  checkit = msg[count++];
  568. X
  569. X  while(msg[count - 1] != '\0')
  570. X  {
  571. X
  572. X#ifdef DEBUG
  573. X          /* format an error message */
  574. X          time(&tloc);
  575. X          nowtime = (struct tm *)localtime(&tloc);
  576. X          time_str = asctime(nowtime);
  577. X          sprintf(errmsg,"ISPIN: write_net msg char = [%c]\n",checkit);
  578. X          strcat(errmsg,"                            ");
  579. X          strcat(errmsg,time_str);
  580. X          strcat(errmsg,"\n");
  581. X         if((logfile = fopen(LOGFILE,"a+")) != NULL)
  582. X         {
  583. X            fprintf(logfile,errmsg);
  584. X            fclose(logfile);
  585. X         }
  586. X#endif
  587. X
  588. X    switch(checkit)
  589. X    {
  590. X      case '\134':
  591. X        /* the backslash char */
  592. X        checkit = msg[count++];
  593. X        if(msg[count - 1] != '\0')
  594. X        {
  595. X          switch(checkit)
  596. X          {
  597. X            case 'N':
  598. X              /* send a NULL */
  599. X
  600. X                                /* set up timeout for write */
  601. X        signal(SIGALRM, my_error);
  602. X
  603. X                                /* assume no timeout */
  604. X                                time_out = 0; 
  605. X
  606. X                                alarm(NETWAIT);
  607. X
  608. X              wr_count += write(out_file,&nul,1);
  609. X
  610. X                                /* turn off the alarm clock */
  611. X                                alarm(0);
  612. X
  613. X                                /* ignore alarm */
  614. X        signal(SIGALRM, SIG_IGN);
  615. X
  616. X                                if(time_out == 1)
  617. X                                {
  618. X                                  /* We timed out on the write.*/
  619. X                                  /* Behave as though we were  */
  620. X                                  /* disconnected.             */
  621. X
  622. X                                  my_error(NET_TIME);
  623. X                                }
  624. X
  625. X              break;       
  626. X            case 'b':
  627. X              /* send a backspace */
  628. X
  629. X                                /* set up timeout for write */
  630. X        signal(SIGALRM, my_error);
  631. X
  632. X                                /* assume no timeout */
  633. X                                time_out = 0; 
  634. X
  635. X                                alarm(NETWAIT);
  636. X
  637. X              wr_count += write(out_file,&bs,1);
  638. X
  639. X                                /* turn off the alarm clock */
  640. X                                alarm(0);
  641. X
  642. X                                /* ignore alarm */
  643. X        signal(SIGALRM, SIG_IGN);
  644. X
  645. X                                if(time_out == 1)
  646. X                                {
  647. X                                  /* We timed out on the write.*/
  648. X                                  /* Behave as though we were  */
  649. X                                  /* disconnected.             */
  650. X
  651. X                                  my_error(NET_TIME);
  652. X                                }
  653. X
  654. X              break;       
  655. X            case 'd':
  656. X              /* delay 3 seconds */
  657. X              alarm(0);
  658. X              sleep(3);
  659. X              break;       
  660. X            case 'p':
  661. X              /* pause a second */
  662. X              alarm(0);
  663. X              sleep(1);
  664. X              break;       
  665. X            case 'w':
  666. X              /* wait 10 seconds */
  667. X              alarm(0);
  668. X              sleep(10);
  669. X              break;       
  670. X            case 'L':
  671. X              /* loaf 30 seconds */
  672. X              alarm(0);
  673. X              sleep(30);
  674. X              break;       
  675. X            case 'n':
  676. X              /* send a newline */
  677. X
  678. X                                /* set up timeout for write */
  679. X        signal(SIGALRM, my_error);
  680. X
  681. X                                /* assume no timeout */
  682. X                                time_out = 0; 
  683. X
  684. X                                alarm(NETWAIT);
  685. X
  686. X              wr_count += write(out_file,&nl,1);
  687. X
  688. X                                /* turn off the alarm clock */
  689. X                                alarm(0);
  690. X
  691. X                                /* ignore alarm */
  692. X        signal(SIGALRM, SIG_IGN);
  693. X
  694. X                                if(time_out == 1)
  695. X                                {
  696. X                                  /* We timed out on the write.*/
  697. X                                  /* Behave as though we were  */
  698. X                                  /* disconnected.             */
  699. X
  700. X                                  my_error(NET_TIME);
  701. X                                }
  702. X
  703. X              break;       
  704. X            case 'r':
  705. X              /* send a carriage return */
  706. X
  707. X                                /* set up timeout for write */
  708. X        signal(SIGALRM, my_error);
  709. X
  710. X                                /* assume no timeout */
  711. X                                time_out = 0; 
  712. X
  713. X                                alarm(NETWAIT);
  714. X
  715. X              wr_count += write(out_file,&cr,1);
  716. X
  717. X                                /* turn off the alarm clock */
  718. X                                alarm(0);
  719. X
  720. X                                /* ignore alarm */
  721. X        signal(SIGALRM, SIG_IGN);
  722. X
  723. X                                if(time_out == 1)
  724. X                                {
  725. X                                  /* We timed out on the write.*/
  726. X                                  /* Behave as though we were  */
  727. X                                  /* disconnected.             */
  728. X
  729. X                                  my_error(NET_TIME);
  730. X                                }
  731. X
  732. X              break;       
  733. X            case 's':
  734. X              /* send a space */
  735. X
  736. X                                /* set up timeout for write */
  737. X        signal(SIGALRM, my_error);
  738. X
  739. X                                /* assume no timeout */
  740. X                                time_out = 0; 
  741. X
  742. X                                alarm(NETWAIT);
  743. X
  744. X              wr_count += write(out_file,&sp,1);
  745. X
  746. X                                /* turn off the alarm clock */
  747. X                                alarm(0);
  748. X
  749. X                                /* ignore alarm */
  750. X        signal(SIGALRM, SIG_IGN);
  751. X
  752. X                                if(time_out == 1)
  753. X                                {
  754. X                                  /* We timed out on the write.*/
  755. X                                  /* Behave as though we were  */
  756. X                                  /* disconnected.             */
  757. X
  758. X                                  my_error(NET_TIME);
  759. X                                }
  760. X
  761. X              break;       
  762. X            case 't':
  763. X              /* send a tab */
  764. X
  765. X                                /* set up timeout for write */
  766. X        signal(SIGALRM, my_error);
  767. X
  768. X                                /* assume no timeout */
  769. X                                time_out = 0; 
  770. X
  771. X                                alarm(NETWAIT);
  772. X
  773. X              wr_count += write(out_file,&ht,1);
  774. X
  775. X                                /* turn off the alarm clock */
  776. X                                alarm(0);
  777. X
  778. X                                /* ignore alarm */
  779. X        signal(SIGALRM, SIG_IGN);
  780. X
  781. X                                if(time_out == 1)
  782. X                                {
  783. X                                  /* We timed out on the write.*/
  784. X                                  /* Behave as though we were  */
  785. X                                  /* disconnected.             */
  786. X
  787. X                                  my_error(NET_TIME);
  788. X                                }
  789. X
  790. X              break;       
  791. X            case 'f':
  792. X              /* send a formfeed */
  793. X
  794. X                                /* set up timeout for write */
  795. X        signal(SIGALRM, my_error);
  796. X
  797. X                                /* assume no timeout */
  798. X                                time_out = 0; 
  799. X
  800. X                                alarm(NETWAIT);
  801. X
  802. X              wr_count += write(out_file,&ff,1);
  803. X
  804. X                                /* turn off the alarm clock */
  805. X                                alarm(0);
  806. X
  807. X                                /* ignore alarm */
  808. X        signal(SIGALRM, SIG_IGN);
  809. X
  810. X                                if(time_out == 1)
  811. X                                {
  812. X                                  /* We timed out on the write.*/
  813. X                                  /* Behave as though we were  */
  814. X                                  /* disconnected.             */
  815. X
  816. X                                  my_error(NET_TIME);
  817. X                                }
  818. X
  819. X              break;       
  820. X            case 'K':
  821. X              /* send BREAK */
  822. X
  823. X                                /* start out with clean buffers */
  824. X                                ioctl(out_file, TCFLSH, 2);
  825. X
  826. X                                /* set up timeout for write */
  827. X        signal(SIGALRM, my_error);
  828. X
  829. X                                /* assume no timeout */
  830. X                                time_out = 0; 
  831. X
  832. X                                alarm(NETWAIT);
  833. X
  834. X              /* wait for the output to drain */
  835. X              ioctl(out_file, TCSBRK, 0);
  836. X
  837. X                                /* turn off the alarm clock */
  838. X                                alarm(0);
  839. X
  840. X                                /* ignore alarm */
  841. X        signal(SIGALRM, SIG_IGN);
  842. X
  843. X                                if(time_out == 1)
  844. X                                {
  845. X                                  /* We timed out on the write.*/
  846. X                                  /* Behave as though we were  */
  847. X                                  /* disconnected.             */
  848. X
  849. X                                  my_error(NET_TIME);
  850. X                                }
  851. X
  852. X              break;       
  853. X            case 'E':
  854. X              /* send two EOT and newline pairs */
  855. X
  856. X                                /* set up timeout for write */
  857. X        signal(SIGALRM, my_error);
  858. X
  859. X                                /* assume no timeout */
  860. X                                time_out = 0; 
  861. X
  862. X                                alarm(NETWAIT);
  863. X
  864. X              wr_count += write(out_file,&eot,1);
  865. X
  866. X                                /* turn off the alarm clock */
  867. X                                alarm(0);
  868. X
  869. X                                /* ignore alarm */
  870. X        signal(SIGALRM, SIG_IGN);
  871. X
  872. X                                if(time_out == 1)
  873. X                                {
  874. X                                  /* We timed out on the write.*/
  875. X                                  /* Behave as though we were  */
  876. X                                  /* disconnected.             */
  877. X
  878. X                                  my_error(NET_TIME);
  879. X                                }
  880. X
  881. X
  882. X                                /* set up timeout for write */
  883. X        signal(SIGALRM, my_error);
  884. X
  885. X                                /* assume no timeout */
  886. X                                time_out = 0; 
  887. X
  888. X                                alarm(NETWAIT);
  889. X
  890. X              wr_count += write(out_file,&nl,1);
  891. X
  892. X                                /* turn off the alarm clock */
  893. X                                alarm(0);
  894. X
  895. X                                /* ignore alarm */
  896. X        signal(SIGALRM, SIG_IGN);
  897. X
  898. X                                if(time_out == 1)
  899. X                                {
  900. X                                  /* We timed out on the write.*/
  901. X                                  /* Behave as though we were  */
  902. X                                  /* disconnected.             */
  903. X
  904. X                                  my_error(NET_TIME);
  905. X                                }
  906. X
  907. X
  908. X                                /* set up timeout for write */
  909. X        signal(SIGALRM, my_error);
  910. X
  911. X                                /* assume no timeout */
  912. X                                time_out = 0; 
  913. X
  914. X                                alarm(NETWAIT);
  915. X
  916. X              wr_count += write(out_file,&eot,1);
  917. X
  918. X                                /* turn off the alarm clock */
  919. X                                alarm(0);
  920. X
  921. X                                /* ignore alarm */
  922. X        signal(SIGALRM, SIG_IGN);
  923. X
  924. X                                if(time_out == 1)
  925. X                                {
  926. X                                  /* We timed out on the write.*/
  927. X                                  /* Behave as though we were  */
  928. X                                  /* disconnected.             */
  929. X
  930. X                                  my_error(NET_TIME);
  931. X                                }
  932. X
  933. X
  934. X                                /* set up timeout for write */
  935. X        signal(SIGALRM, my_error);
  936. X
  937. X                                /* assume no timeout */
  938. X                                time_out = 0; 
  939. X
  940. X                                alarm(NETWAIT);
  941. X
  942. X              wr_count += write(out_file,&nl,1);
  943. X
  944. X                                /* turn off the alarm clock */
  945. X                                alarm(0);
  946. X
  947. X                                /* ignore alarm */
  948. X        signal(SIGALRM, SIG_IGN);
  949. X
  950. X                                if(time_out == 1)
  951. X                                {
  952. X                                  /* We timed out on the write.*/
  953. X                                  /* Behave as though we were  */
  954. X                                  /* disconnected.             */
  955. X
  956. X                                  my_error(NET_TIME);
  957. X                                }
  958. X
  959. X              break;       
  960. X            case 'D':
  961. X              /* send a DELETE */
  962. X
  963. X                                /* set up timeout for write */
  964. X        signal(SIGALRM, my_error);
  965. X
  966. X                                /* assume no timeout */
  967. X                                time_out = 0; 
  968. X
  969. X                                alarm(NETWAIT);
  970. X
  971. X              wr_count += write(out_file,&del,1);
  972. X
  973. X                                /* turn off the alarm clock */
  974. X                                alarm(0);
  975. X
  976. X                                /* ignore alarm */
  977. X        signal(SIGALRM, SIG_IGN);
  978. X
  979. X                                if(time_out == 1)
  980. X                                {
  981. X                                  /* We timed out on the write.*/
  982. X                                  /* Behave as though we were  */
  983. X                                  /* disconnected.             */
  984. X
  985. X                                  my_error(NET_TIME);
  986. X                                }
  987. X
  988. X              break;       
  989. X            case 'e':
  990. X              /* send an ESCAPE */
  991. X
  992. X                                /* set up timeout for write */
  993. X        signal(SIGALRM, my_error);
  994. X
  995. X                                /* assume no timeout */
  996. X                                time_out = 0; 
  997. X
  998. X                                alarm(NETWAIT);
  999. X
  1000. X              wr_count += write(out_file,&esc,1);
  1001. X
  1002. X                                /* turn off the alarm clock */
  1003. X                                alarm(0);
  1004. X
  1005. X                                /* ignore alarm */
  1006. X        signal(SIGALRM, SIG_IGN);
  1007. X
  1008. X                                if(time_out == 1)
  1009. X                                {
  1010. X                                  /* We timed out on the write.*/
  1011. X                                  /* Behave as though we were  */
  1012. X                                  /* disconnected.             */
  1013. X
  1014. X                                  my_error(NET_TIME);
  1015. X                                }
  1016. X
  1017. X              break;       
  1018. X            case 'U':
  1019. X              /* send the string supplied by the user */
  1020. X
  1021. X              /* just a flag to let us know we've been here */
  1022. X              ++usr_addr;
  1023. X
  1024. X                                /* set up timeout for write */
  1025. X        signal(SIGALRM, my_error);
  1026. X
  1027. END_OF_FILE
  1028. if test 33854 -ne `wc -c <'ISPIN/src/ISPIN.c.ae'`; then
  1029.     echo shar: \"'ISPIN/src/ISPIN.c.ae'\" unpacked with wrong size!
  1030. fi
  1031. # end of 'ISPIN/src/ISPIN.c.ae'
  1032. fi
  1033. if test -f 'ISPIN/doc/COPY+WARR.doc' -a "${1}" != "-c" ; then 
  1034.   echo shar: Will not clobber existing file \"'ISPIN/doc/COPY+WARR.doc'\"
  1035. else
  1036. echo shar: Extracting \"'ISPIN/doc/COPY+WARR.doc'\" \(9934 characters\)
  1037. sed "s/^X//" >'ISPIN/doc/COPY+WARR.doc' <<'END_OF_FILE'
  1038. X
  1039. X
  1040. X            GNU GENERAL PUBLIC LICENSE
  1041. X             Version 1, February 1989
  1042. X
  1043. X Copyright (C) 1989 Free Software Foundation, Inc.
  1044. X                    675 Mass Ave, Cambridge, MA 02139, USA
  1045. X Everyone is permitted to copy and distribute verbatim copies
  1046. X of this license document, but changing it is not allowed.
  1047. X
  1048. X                Preamble
  1049. X
  1050. X  The license agreements of most software companies try to keep users
  1051. Xat the mercy of those companies.  By contrast, our General Public
  1052. XLicense is intended to guarantee your freedom to share and change free
  1053. Xsoftware--to make sure the software is free for all its users.  The
  1054. XGeneral Public License applies to the Free Software Foundation's
  1055. Xsoftware and to any other program whose authors commit to using it.
  1056. XYou can use it for your programs, too.
  1057. X
  1058. X  When we speak of free software, we are referring to freedom, not
  1059. Xprice.  Specifically, the General Public License is designed to make
  1060. Xsure that you have the freedom to give away or sell copies of free
  1061. Xsoftware, that you receive source code or can get it if you want it,
  1062. Xthat you can change the software or use pieces of it in new free
  1063. Xprograms; and that you know you can do these things.
  1064. X
  1065. X  To protect your rights, we need to make restrictions that forbid
  1066. Xanyone to deny you these rights or to ask you to surrender the rights.
  1067. XThese restrictions translate to certain responsibilities for you if you
  1068. Xdistribute copies of the software, or if you modify it.
  1069. X
  1070. X  For example, if you distribute copies of a such a program, whether
  1071. Xgratis or for a fee, you must give the recipients all the rights that
  1072. Xyou have.  You must make sure that they, too, receive or can get the
  1073. Xsource code.  And you must tell them their rights.
  1074. X
  1075. X  We protect your rights with two steps: (1) copyright the software, and
  1076. X(2) offer you this license which gives you legal permission to copy,
  1077. Xdistribute and/or modify the software.
  1078. X
  1079. X  Also, for each author's protection and ours, we want to make certain
  1080. Xthat everyone understands that there is no warranty for this free
  1081. Xsoftware.  If the software is modified by someone else and passed on, we
  1082. Xwant its recipients to know that what they have is not the original, so
  1083. Xthat any problems introduced by others will not reflect on the original
  1084. Xauthors' reputations.
  1085. X
  1086. X  The precise terms and conditions for copying, distribution and
  1087. Xmodification follow.
  1088. X
  1089. X            GNU GENERAL PUBLIC LICENSE
  1090. X   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  1091. X
  1092. X  0. This License Agreement applies to any program or other work which
  1093. Xcontains a notice placed by the copyright holder saying it may be
  1094. Xdistributed under the terms of this General Public License.  The
  1095. X"Program", below, refers to any such program or work, and a "work based
  1096. Xon the Program" means either the Program or any work containing the
  1097. XProgram or a portion of it, either verbatim or with modifications.  Each
  1098. Xlicensee is addressed as "you".
  1099. X
  1100. X  1. You may copy and distribute verbatim copies of the Program's source
  1101. Xcode as you receive it, in any medium, provided that you conspicuously and
  1102. Xappropriately publish on each copy an appropriate copyright notice and
  1103. Xdisclaimer of warranty; keep intact all the notices that refer to this
  1104. XGeneral Public License and to the absence of any warranty; and give any
  1105. Xother recipients of the Program a copy of this General Public License
  1106. Xalong with the Program.  You may charge a fee for the physical act of
  1107. Xtransferring a copy.
  1108. X
  1109. X  2. You may modify your copy or copies of the Program or any portion of
  1110. Xit, and copy and distribute such modifications under the terms of Paragraph
  1111. X1 above, provided that you also do the following:
  1112. X
  1113. X    a) cause the modified files to carry prominent notices stating that
  1114. X    you changed the files and the date of any change; and
  1115. X
  1116. X    b) cause the whole of any work that you distribute or publish, that
  1117. X    in whole or in part contains the Program or any part thereof, either
  1118. X    with or without modifications, to be licensed at no charge to all
  1119. X    third parties under the terms of this General Public License (except
  1120. X    that you may choose to grant warranty protection to some or all
  1121. X    third parties, at your option).
  1122. X
  1123. X    c) If the modified program normally reads commands interactively when
  1124. X    run, you must cause it, when started running for such interactive use
  1125. X    in the simplest and most usual way, to print or display an
  1126. X    announcement including an appropriate copyright notice and a notice
  1127. X    that there is no warranty (or else, saying that you provide a
  1128. X    warranty) and that users may redistribute the program under these
  1129. X    conditions, and telling the user how to view a copy of this General
  1130. X    Public License.
  1131. X
  1132. X    d) You may charge a fee for the physical act of transferring a
  1133. X    copy, and you may at your option offer warranty protection in
  1134. X    exchange for a fee.
  1135. X
  1136. XMere aggregation of another independent work with the Program (or its
  1137. Xderivative) on a volume of a storage or distribution medium does not bring
  1138. Xthe other work under the scope of these terms.
  1139. X
  1140. X  3. You may copy and distribute the Program (or a portion or derivative of
  1141. Xit, under Paragraph 2) in object code or executable form under the terms of
  1142. XParagraphs 1 and 2 above provided that you also do one of the following:
  1143. X
  1144. X    a) accompany it with the complete corresponding machine-readable
  1145. X    source code, which must be distributed under the terms of
  1146. X    Paragraphs 1 and 2 above; or,
  1147. X
  1148. X    b) accompany it with a written offer, valid for at least three
  1149. X    years, to give any third party free (except for a nominal charge
  1150. X    for the cost of distribution) a complete machine-readable copy of the
  1151. X    corresponding source code, to be distributed under the terms of
  1152. X    Paragraphs 1 and 2 above; or,
  1153. X
  1154. X    c) accompany it with the information you received as to where the
  1155. X    corresponding source code may be obtained.  (This alternative is
  1156. X    allowed only for noncommercial distribution and only if you
  1157. X    received the program in object code or executable form alone.)
  1158. X
  1159. XSource code for a work means the preferred form of the work for making
  1160. Xmodifications to it.  For an executable file, complete source code means
  1161. Xall the source code for all modules it contains; but, as a special
  1162. Xexception, it need not include source code for modules which are standard
  1163. Xlibraries that accompany the operating system on which the executable
  1164. Xfile runs, or for standard header files or definitions files that
  1165. Xaccompany that operating system.
  1166. X
  1167. X  4. You may not copy, modify, sublicense, distribute or transfer the
  1168. XProgram except as expressly provided under this General Public License.
  1169. XAny attempt otherwise to copy, modify, sublicense, distribute or transfer
  1170. Xthe Program is void, and will automatically terminate your rights to use
  1171. Xthe Program under this License.  However, parties who have received
  1172. Xcopies, or rights to use copies, from you under this General Public
  1173. XLicense will not have their licenses terminated so long as such parties
  1174. Xremain in full compliance.
  1175. X
  1176. X  5. By copying, distributing or modifying the Program (or any work based
  1177. Xon the Program) you indicate your acceptance of this license to do so,
  1178. Xand all its terms and conditions.
  1179. X
  1180. X  6. Each time you redistribute the Program (or any work based on the
  1181. XProgram), the recipient automatically receives a license from the original
  1182. Xlicensor to copy, distribute or modify the Program subject to these
  1183. Xterms and conditions.  You may not impose any further restrictions on the
  1184. Xrecipients' exercise of the rights granted herein.
  1185. X
  1186. X  7. The Free Software Foundation may publish revised and/or new versions
  1187. Xof the General Public License from time to time.  Such new versions will
  1188. Xbe similar in spirit to the present version, but may differ in detail to
  1189. Xaddress new problems or concerns.
  1190. X
  1191. XEach version is given a distinguishing version number.  If the Program
  1192. Xspecifies a version number of the license which applies to it and "any
  1193. Xlater version", you have the option of following the terms and conditions
  1194. Xeither of that version or of any later version published by the Free
  1195. XSoftware Foundation.  If the Program does not specify a version number of
  1196. Xthe license, you may choose any version ever published by the Free Software
  1197. XFoundation.
  1198. X
  1199. X  8. If you wish to incorporate parts of the Program into other free
  1200. Xprograms whose distribution conditions are different, write to the author
  1201. Xto ask for permission.  For software which is copyrighted by the Free
  1202. XSoftware Foundation, write to the Free Software Foundation; we sometimes
  1203. Xmake exceptions for this.  Our decision will be guided by the two goals
  1204. Xof preserving the free status of all derivatives of our free software and
  1205. Xof promoting the sharing and reuse of software generally.
  1206. X
  1207. X                NO WARRANTY
  1208. X
  1209. X  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  1210. XFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  1211. XOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  1212. XPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  1213. XOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  1214. XMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
  1215. XTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  1216. XPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  1217. XREPAIR OR CORRECTION.
  1218. X
  1219. X  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  1220. XWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  1221. XREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  1222. XINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  1223. XOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  1224. XTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  1225. XYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  1226. XPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  1227. XPOSSIBILITY OF SUCH DAMAGES.
  1228. X
  1229. X             END OF TERMS AND CONDITIONS
  1230. X
  1231. END_OF_FILE
  1232. if test 9934 -ne `wc -c <'ISPIN/doc/COPY+WARR.doc'`; then
  1233.     echo shar: \"'ISPIN/doc/COPY+WARR.doc'\" unpacked with wrong size!
  1234. fi
  1235. # end of 'ISPIN/doc/COPY+WARR.doc'
  1236. fi
  1237. if test -f 'ISPIN/doc/OLD-DOCS/README.rel_1.1' -a "${1}" != "-c" ; then 
  1238.   echo shar: Will not clobber existing file \"'ISPIN/doc/OLD-DOCS/README.rel_1.1'\"
  1239. else
  1240. echo shar: Extracting \"'ISPIN/doc/OLD-DOCS/README.rel_1.1'\" \(6834 characters\)
  1241. sed "s/^X//" >'ISPIN/doc/OLD-DOCS/README.rel_1.1' <<'END_OF_FILE'
  1242. X
  1243. X
  1244. X
  1245. X        date   :  June 30, 1989
  1246. X
  1247. X        to     :       
  1248. X
  1249. X        from   :  Chief, Operations Branch, Information Systems Division
  1250. X                  Indianapolis District Office
  1251. X
  1252. X        subject:  Indianapolis Standard Printer Interface (for Network printers)
  1253. X                  ISPIN
  1254. X                  production release 1
  1255. X
  1256. X
  1257. X
  1258. X
  1259. X        *** *** *** *** *** *** INTRODUCTION *** *** *** *** *** *** *** ***
  1260. X
  1261. X        This is the first version of the production release of ISPIN.
  1262. X
  1263. X        June 30, 1989 marked approximately one year since ISPIN was just a
  1264. X        gleam in our eyes, and approx nine months since the first keystrokes
  1265. X        were struck in its development. Alpha site testing of ISPIN commenced
  1266. X        approx December 27, 1988. Beta site testing commenced approx Feb 14,
  1267. X        1989. Ultimately, seven sites were actively involved in testing three
  1268. X        successive "beta" versions of the application. This is not experimental
  1269. X        software.
  1270. X
  1271. X        ISPIN.rel_1 contains all of the functionality and features laid out
  1272. X        in our initial analysis and those which were identified and suggested
  1273. X        by those beta test sites which actively helped us test. Except for bug
  1274. X        fixes, this is the way the application is going to look and work.
  1275. X    We are not planning any added features, nor are we soliciting any
  1276. X    suggestions for added features. This application is simple, flexible,
  1277. X        robust, and adequately functional. We intend for it to remain stable.
  1278. X
  1279. X        ISPIN has been successfully installed and tested on:
  1280. X
  1281. X                                     Zilog Model 31
  1282. X                                     Zilog Model 32
  1283. X                                     Zilog Model 130 (Rev J OS)
  1284. X                                     AT&T  3B1
  1285. X                                     Sequent Balance B8
  1286. X                                     Pyramid 90x
  1287. X                                     IBM PC/AT with Intel 80386 CPU
  1288. X                                             (running XENIX)
  1289. X                                     Compaq with Intel 80286 CPU
  1290. X                                             (running XENIX)
  1291. X
  1292. X        Except for conditional compile statements required to resolve the
  1293. X        differences between Zeus 3.21's nq/dqueuer and System V's lp,
  1294. X        the source code is the same for all target environments.
  1295. X
  1296. X
  1297. X
  1298. X        *** *** *** *** *** *** THIS TRANSMITTAL *** *** *** *** *** *** ***
  1299. X
  1300. X        The tape upon which we have transmitted the application was created
  1301. X        in cpio format. cd to a directory in which you want this release to
  1302. X        be written, then      cpio -iudmvB < your_nine_track_drive
  1303. X
  1304. X        The result of this cpio will be the creation of a directory named
  1305. X        ISPIN.rel_1.1. ISPIN.rel_1.1 will contain two subdirectories, namely
  1306. X        ISPI and ISPIN.
  1307. X
  1308. X
  1309. X
  1310. X        *** *** *** *** *** *** ISPI subdirectory *** *** *** *** *** *** ***
  1311. X
  1312. X        The ISPI directory contains the freshest version of our ISPI
  1313. X        application. ISPI is an application which serves as a FRONTEND
  1314. X        for the two queuer/spoolers. The ISPI application is fully self-
  1315. X        contained, with its own source code, documentation, etc. We sent
  1316. X        ISPI along because we have found it to be an extremely useful tool
  1317. X        to support the native queuer/spoolers. If you have any version of
  1318. X        ISPI previous to this one, please use this one as a replacement. The
  1319. X        ISPI included with this transmittal supersedes the ISPI which
  1320. X        accompanied the ISPIN.beta.3 release.
  1321. X
  1322. X        ISPIN and ISPI are TWO SEPARATE AND DISTINCT APPLICATIONS.
  1323. X
  1324. X        Neither depends upon the other for functionality. You may use ISPIN
  1325. X        without ISPI. You may use ISPI without ISPIN.
  1326. X
  1327. X
  1328. X
  1329. X        *** *** *** *** *** *** ISPIN subdirectory *** *** *** *** *** *** ***
  1330. X
  1331. X        ISPIN contains the source code, install documents, and install scripts 
  1332. X        for the ISPIN application. The ISPIN application serves as a BACKEND 
  1333. X        for either of two native queuer/spoolers, lp or dqueuer. We have 
  1334. X        organized the directory ISPIN and its contents into subdirectories
  1335. X        using standard names "doc" (for documentation files), "h" (for header
  1336. X        files), "install" (where install scripts exist, and from which they
  1337. X        must be executed), "obj" (where the executables will be placed as
  1338. X        they are compiled), and "src" (where the source code resides).
  1339. X
  1340. X
  1341. X
  1342. X        *** *** *** *** *** *** ISPIN documentation *** *** *** *** *** ***
  1343. X
  1344. X        The documentation for this application is informal in style, and the
  1345. X        code is overflowing with comments. If you don't have time and inclin-
  1346. X        ation to read everything in the ISPIN.rel_1.1/ISPIN/doc directory,
  1347. X
  1348. X        AT LEAST READ:
  1349. X                          LPinstall.doc
  1350. X                          NQinstall.doc
  1351. X                          README.beta.3
  1352. X                          design
  1353. X                          rtab
  1354. X
  1355. X
  1356. X
  1357. X
  1358. X        *** *** *** *** *** *** ISPIN installation *** *** *** *** *** *** ***
  1359. X
  1360. X        If you are installing this application under ZEUS 3.21 and its
  1361. X        nq/xq/dqueuer queuer family, install per NQinstall.doc.
  1362. X
  1363. X        If you are installing this application under System V UNIX and
  1364. X        the lp spooler, install per LPinstall.doc.
  1365. X
  1366. X
  1367. X
  1368. X
  1369. X
  1370. X        *** *** *** *** *** *** FEEDBACK, please *** *** *** *** *** *** ***
  1371. X
  1372. X        We are maintaining a list of sites to which we have sent ISPI/ISPIN
  1373. X        and of contact persons at those sites. Unless you tell us, however,
  1374. X        we will have no idea whether or not you actually use these applications
  1375. X        in production. Our expectation is that you will, but we will not 
  1376. X        presume it. Please confirm installation and usage of ISPI/ISPIN. We
  1377. X    prefer written confirmation, but a phone call will do. Confirmed users
  1378. X        of ISPI/ISPIN will receive all subsequent update and informational
  1379. X        distributions.
  1380. X
  1381. X        There is no bug-free software. Although the alpha site and beta site
  1382. X        testing has been extensive, we recognize the possibility of bugs which
  1383. X    have not yet been exposed. Please report them to us. We are committed
  1384. X        to supporting this application.
  1385. X
  1386. X        If you install and use ISPI/ISPIN on hardware/software platforms which
  1387. X        are not listed in this memo, please let us know. This software is 
  1388. X    intended to be portable, especially among machines which support a 
  1389. X    System V UNIX environment. 
  1390. X
  1391. X        If you develop "rtab" entries which you feel others may find useful,
  1392. X    contact us. We'd like to be the clearinghouse for such information.
  1393. X        We haven't yet devised a mechanism for an ongoing distribution of 
  1394. X        such information. But if supply and demand develop, we'll work it out
  1395. X        and let you know.
  1396. X        
  1397. X
  1398. X
  1399. X
  1400. X
  1401. X                                                         Larry Bartz
  1402. X
  1403. X
  1404. END_OF_FILE
  1405. if test 6834 -ne `wc -c <'ISPIN/doc/OLD-DOCS/README.rel_1.1'`; then
  1406.     echo shar: \"'ISPIN/doc/OLD-DOCS/README.rel_1.1'\" unpacked with wrong size!
  1407. fi
  1408. # end of 'ISPIN/doc/OLD-DOCS/README.rel_1.1'
  1409. fi
  1410. if test -f 'ISPIN/misc/ISPIT.dr/rtab.entry' -a "${1}" != "-c" ; then 
  1411.   echo shar: Will not clobber existing file \"'ISPIN/misc/ISPIT.dr/rtab.entry'\"
  1412. else
  1413. echo shar: Extracting \"'ISPIN/misc/ISPIT.dr/rtab.entry'\" \(522 characters\)
  1414. sed "s/^X//" >'ISPIN/misc/ISPIT.dr/rtab.entry' <<'END_OF_FILE'
  1415. X# This rtab entry is usable only for the ISPIT file transfer protocol.
  1416. XINDY_5;/dev/tty000;19200;-L;-R;-Bcongestion;-Bremote dte;-Q\004\L\L\K\dclr\r\d;-DConnection cleared;-Dad>:;-Dogin:;ad>-\p\K\pclr\r\d\020\pclr\r\d-ad>;clr\r\r\d;ad>-\p\K\pclr\r\d\020\pclr\r\d-ad>;set recall=none\r\pset break-handling=send-break+recall\r\pset pad-flow=on\r\pset terminal-flow=on\r\p;ad>-\r\r\d-ad>;\pconnect\s00000099999999\r\d;Opened;\r\r\d;ogin:-\r\d-ogin:;ispit\r\d;assword:;notvalid\r\d\d;FILE?;\U\r\d\d;OK;\w;;;
  1417. X#ispit to INDY_5
  1418. X#
  1419. END_OF_FILE
  1420. if test 522 -ne `wc -c <'ISPIN/misc/ISPIT.dr/rtab.entry'`; then
  1421.     echo shar: \"'ISPIN/misc/ISPIT.dr/rtab.entry'\" unpacked with wrong size!
  1422. fi
  1423. # end of 'ISPIN/misc/ISPIT.dr/rtab.entry'
  1424. fi
  1425. echo shar: End of archive 11 \(of 15\).
  1426. cp /dev/null ark11isdone
  1427. MISSING=""
  1428. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ; do
  1429.     if test ! -f ark${I}isdone ; then
  1430.     MISSING="${MISSING} ${I}"
  1431.     fi
  1432. done
  1433. if test "${MISSING}" = "" ; then
  1434.     echo You have unpacked all 15 archives.
  1435.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1436. else
  1437.     echo You still need to unpack the following archives:
  1438.     echo "        " ${MISSING}
  1439. fi
  1440. ##  End of shell archive.
  1441. exit 0
  1442.  
  1443.