/* remote.c 4.2 81/06/16 */
* Attributes to be gleened from remote host description
&AT
, &DV
, &CM
, &CU
, &EL
, &IE
, &OE
, &PN
static char *capstrings
[] = {
"at", "dv", "cm", "cu", "el", "ie", "oe", "pn", 0
static char buf
[BUFSIZ
/2];
if ((stat
= rgetent(tbuf
, host
)) <= 0) {
fprintf(stderr
, stat
== 0 ?
"tip: unknown host %s\n" :
"tip: can't open host description file\n", host
);
for (p
= capstrings
, q
= caps
; *p
!= NULL
; p
++, q
++)
if ((BR
= rgetnum("br")) < 0)
if ((FS
= rgetnum("fs")) < 0)
fprintf(stderr
, "%s: missing device spec\n", host
);
fprintf(stderr
, "%s: missing phone number\n", host
);
if (host
== NOSTR
&& (host
= getenv("HOST")) == NOSTR
) {
fprintf(stderr
, "tip: no host specified\n");
* We return a new device each time we're called (to allow
* a rotary action to be simulated)
if ((cp
= index(next
, ',')) == NULL
) {