version 1.33, 2010/07/01 21:28:01 |
version 1.34, 2010/07/01 21:47:09 |
|
|
* The "cu" host name is used to define the |
* The "cu" host name is used to define the |
* attributes of the generic dialer. |
* attributes of the generic dialer. |
*/ |
*/ |
(void)snprintf(sbuf, sizeof(sbuf), "cu%ld", vgetnum(BAUDRATE)); |
(void)snprintf(sbuf, sizeof(sbuf), "cu%d", vgetnum(BAUDRATE)); |
if ((i = hunt(sbuf)) == 0) { |
if ((i = hunt(sbuf)) == 0) { |
printf("all ports busy\n"); |
printf("all ports busy\n"); |
exit(3); |
exit(3); |
|
|
} |
} |
vsetnum(VERBOSE, 0); |
vsetnum(VERBOSE, 0); |
if (ttysetup(vgetnum(BAUDRATE))) { |
if (ttysetup(vgetnum(BAUDRATE))) { |
fprintf(stderr, "%s: unsupported speed %ld\n", |
fprintf(stderr, "%s: unsupported speed %d\n", |
__progname, vgetnum(BAUDRATE)); |
__progname, vgetnum(BAUDRATE)); |
(void)uu_unlock(uucplock); |
(void)uu_unlock(uucplock); |
exit(3); |
exit(3); |