Lines Matching defs:rhs
89 char *rhs; /* AKA the default hesiod domain */
131 * The default rhs can be overridden by an
141 if (ctx->rhs)
142 free(ctx->rhs);
143 ctx->rhs = malloc(strlen(p) + 2);
144 if (ctx->rhs) {
145 *ctx->rhs = '.';
146 strcpy(ctx->rhs + 1,
161 if (ctx->rhs)
162 free(ctx->rhs);
180 free(ctx->rhs);
196 const char *rhs;
216 rhs = name + (p - bindname);
218 rhs_list = hesiod_resolve(context, p, "rhs-extension");
220 rhs = *rhs_list;
227 rhs = ctx->rhs;
233 len += strlen(rhs) + ((rhs[0] != '.') ? 1 : 0);
249 if (rhs[0] != '.')
251 strlcat(bindname, rhs, sizeof(bindname));
253 /* rhs_list is no longer needed, since we're done with rhs. */
310 * or ctx->rhs which need to be freed by the caller.
331 ctx->rhs = strdup(DEF_RHS);
332 if (ctx->lhs && ctx->rhs)
340 ctx->rhs = NULL;
368 strcasecmp(key, "rhs") == 0) {
370 ? &ctx->lhs : &ctx->rhs;
402 if (!ctx->rhs || ctx->classes[0] == 0 ||