1: #ifndef lint
   2: static char sccsid[] = "@(#)setline.c	5.3 (Berkeley) 6/20/85";
   3: #endif
   4: 
   5: #include "uucp.h"
   6: #ifdef  USG
   7: #include <termio.h>
   8: #endif
   9: 
  10: #define PACKSIZE    64
  11: #define SNDFILE 'S'
  12: #define RCVFILE 'R'
  13: #define RESET   'X'
  14: 
  15: /*LINTLIBRARY*/
  16: 
  17: /*
  18:  *	optimize line setting for sending or receiving files
  19:  *
  20:  *	return code - none
  21:  */
  22: /*ARGSUSED*/
  23: setupline(type)
  24: char type;
  25: {
  26: #ifdef  USG
  27:     static struct termio tbuf, sbuf;
  28:     static int set = 0;
  29: 
  30:     DEBUG(2, "setline - %c\n", type);
  31:     if (IsTcpIp)
  32:         return;
  33:     switch(type) {
  34:     case SNDFILE:
  35:         break;
  36:     case RCVFILE:
  37:         ioctl(Ifn, TCGETA, &tbuf);
  38:         sbuf = tbuf;
  39:         tbuf.c_cc[VMIN] = PACKSIZE;
  40:         ioctl(Ifn, TCSETAW, &tbuf);
  41:         set++;
  42:         break;
  43:     case RESET:
  44:         if (set == 0) break;
  45:         set = 0;
  46:         ioctl(Ifn, TCSETAW, &sbuf);
  47:         break;
  48:     }
  49: #endif
  50: }

Defined functions

setupline defined in line 23; used 3 times

Defined variables

sccsid defined in line 2; never used

Defined macros

PACKSIZE defined in line 10; used 1 times
  • in line 39
RCVFILE defined in line 12; never used
RESET defined in line 13; never used
SNDFILE defined in line 11; never used
Last modified: 1987-02-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2049
Valid CSS Valid XHTML 1.0 Strict