Lines Matching refs:node
88 char buf[1024], *node, *hostname, *p;
98 node = p;
103 fprintf(stderr, "%-8s: no domain name in input file\n", node);
110 fprintf(stderr, "%-8s no domain name in input file\n", node);
125 entry(node, hostname, sizeof(buf)-(hostname - buf));
131 * The entry tells us that "node" expands to "domain".
132 * "domain" can either be a domain name or a bitnet node name
136 entry(node, domain, domainlen)
137 char *node;
143 /* See if we have any remembered information about this node */
144 otherdomain = lookup(node);
147 /* We already have a domain for this node */
152 * do them instead. Give the the domain expansion for "node"
162 remember(node, domain);
165 * We previously mapped the node "node" to the node
196 fprintf(stderr, "%-8s %s %s\n", node, domain, err);
329 char *node;
335 * Find any remembered information about "node"
337 char *lookup(node)
338 char *node;
343 if (!strcmp(node, p->node)) {
351 * Mark the node "node" as equivalent to "domain". "domain" can either
352 * be a bitnet node or a domain name--if it is the latter, the mapping
355 remember(node, domain)
356 char *node;
362 fprintf(stdout, "%-8s %s\n", node, domain);
366 if (!strcmp(node, p->node)) {
381 p->node = malloc(strlen(node)+1);
383 if (!p->node || !p->domain) goto outofmemory;
384 strcpy(p->node, node);
395 * node FOO is equivalent to node BAR and node BAR has a domain name.
405 remember(p->node, domain);