/*- * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.proprietary.c% */ #ifndef lint static char sccsid[] = "@(#)setline.c 8.1 (Berkeley) 06/06/93"; #endif /* not lint */ #include "uucp.h" #ifdef USG #include #endif #define PACKSIZE 64 #define SNDFILE 'S' #define RCVFILE 'R' #define RESET 'X' /*LINTLIBRARY*/ /* * optimize line setting for sending or receiving files * * return code - none */ /*ARGSUSED*/ setupline(type) char type; { #ifdef USG static struct termio tbuf, sbuf; static int set = 0; DEBUG(2, "setline - %c\n", type); if (IsTcpIp) 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; set = 0; ioctl(Ifn, TCSETAW, &sbuf); break; } #endif }