version 1.16, 2004/11/07 09:48:08 |
version 1.17, 2006/03/16 19:32:46 |
|
|
* Botch the interface to look like cu's |
* Botch the interface to look like cu's |
*/ |
*/ |
void |
void |
cumain(argc, argv) |
cumain(int argc, char *argv[]) |
int argc; |
|
char *argv[]; |
|
{ |
{ |
int ch, i, parity; |
int ch, i, parity; |
long l; |
long l; |
|
|
BR = DEFBR; |
BR = DEFBR; |
parity = 0; /* none */ |
parity = 0; /* none */ |
while ((ch = getopt(argc, argv, "a:l:s:htoe0123456789")) != -1) { |
while ((ch = getopt(argc, argv, "a:l:s:htoe0123456789")) != -1) { |
switch(ch) { |
switch (ch) { |
case 'a': |
case 'a': |
CU = optarg; |
CU = optarg; |
break; |
break; |
|
|
(void)uu_unlock(uucplock); |
(void)uu_unlock(uucplock); |
exit(3); |
exit(3); |
} |
} |
if (connect()) { |
if (con()) { |
printf("Connect failed\n"); |
printf("Connect failed\n"); |
daemon_uid(); |
daemon_uid(); |
(void)uu_unlock(uucplock); |
(void)uu_unlock(uucplock); |
|
|
} |
} |
|
|
void |
void |
cuusage() |
cuusage(void) |
{ |
{ |
fprintf(stderr, "usage: cu [-ehot] [-a acu] [-l line] [-s speed] [-#] " |
fprintf(stderr, "usage: cu [-ehot] [-a acu] [-l line] [-s speed] [-#] " |
"[phone-number]\n"); |
"[phone-number]\n"); |