#ifndef lint static char sccsid[] = "@(#)setline.c 5.1 (Berkeley) 7/2/83"; #endif /*** * setline - optimize line setting for sending or receiving files * * return code - none */ #include "uucp.h" #ifdef SYSIII #include #endif #define PACKSIZE 64 #define SNDFILE 'S' #define RCVFILE 'R' #define RESET 'X' setline(type) char type; { #ifdef SYSIII static struct termio tbuf, sbuf; static int set = 0; DEBUG(2, "setline - %c\n", type); if (Unet) return; switch(type) { case SNDFILE: break; case RCVFILE: ioctl(Ifn, TCGETA, &tbuf); sbuf = tbuf; tbuf.c_cc[VMIN] = PACKSIZE; ioctl(Ifn, TCSETAW, &tbuf); set++; break; case RESET: if (set == 0) break; /* Anticipatory bug fixes: set, sbuf now static, 'set' is now reset. rti!trt */ set = 0; ioctl(Ifn, TCSETAW, &sbuf); break; } #endif }