Annotation of 43BSD/usr.bin/uucp/setline.c, revision 1.1.1.1

1.1       root        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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.