cu.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ident "%Z%%M% %I% %E% SMI" /* from UCB 5.2 1/13/86 */
#include "tip.h"
void cleanup();
void timeout();
/*
* Botch the interface to look like cu's
*/
char *argv[];
{
register int i;
static char sbuf[12];
if (argc < 2) {
"usage: cu telno [-t] [-s speed] [-a acu] [-l line] [-#]\n");
exit(8);
}
argv[1]);
goto usage;
case 't':
--argc;
continue;
case 'a':
break;
case 's':
if (argc < 3)
goto usage;
argv[2]);
exit(3);
}
break;
case 'l':
break;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
if (CU)
if (DV)
break;
default:
goto usage;
}
}
/*
* The "cu" host name is used to define the
* attributes of the generic dialer.
*/
printf("all ports busy\n");
exit(3);
}
if (i == -1) {
printf("link down\n");
exit(3);
}
loginit();
userperm();
vinit();
setparity("none");
if (HW)
if (connect()) {
printf("Connect failed\n");
myperm();
exit(1);
}
if (!HW)
}