Lines Matching refs:host
215 * Checks to make sure zone and host are safe. If safe, then
216 * hashes zone and host strings to build a path. If zone / host
221 create_path(const char *zone, const char *host, const char *client,
237 * client and host may both be NULL, but they can't both be
240 REQUIRE( (host == NULL && client == NULL) ||
241 (host != NULL && client == NULL) ||
242 (host == NULL && client != NULL) );
252 /* if host was passed, verify that it is safe */
253 if (host != NULL && !is_safe(host))
261 if (host != NULL)
262 len = strlen(zone) + strlen(host);
305 * When neither client or host is passed we are building a
333 /* if host not null, add it. */
334 if (host != NULL) {
336 if ((result = create_path_helper(tmpPath, host,
371 char host[ISC_DIR_NAMEMAX];
381 host[0] = '\0';
392 /* if splitcnt == 0, determine host from path. */
399 strcpy(host, "*");
408 if ((strlen(host) +
412 strcat(host, tmpPtr + 1);
413 strcat(host, ".");
416 if ((strlen(host) +
419 strcat(host, tmpString);
428 * if splitcnt != 0 determine host from
429 * ".host" directory entry
432 if (strncasecmp(".host",
440 strcpy(host, "*");
442 strncpy(host,
444 sizeof(host) - 1);
445 host[255] = '\0';
506 * could not find a host entry.
572 (char *) host,