Lines Matching defs:resolv
73 #define RESOLV_PATH "/etc/resolv.conf"
133 char *resolv; /* Old resolv.conf */
465 /* Attempt to restore old resolv.conf */
466 if (ctx->resolv != NULL) {
469 write(fd, ctx->resolv, ctx->resolv_sz);
470 free(ctx->resolv);
471 ctx->resolv = NULL;
493 /* Attempt to backup the old resolv.conf */
494 if (ctx->resolv == NULL) {
498 ctx->resolv = malloc(sb.st_size);
499 if (ctx->resolv != NULL) {
500 n = read(fd, ctx->resolv, sb.st_size);
502 free(ctx->resolv);
503 ctx->resolv = NULL;
516 * new resolv.conf
518 if (ctx->resolv != NULL) {
519 p = ctx->resolv;
520 while ((i = readline_buf(p, ctx->resolv + ctx->resolv_sz, buf,
1281 /* Attempt to reset resolv.conf */
1380 ctx.resolv = NULL;