Lines Matching defs:resolv
73 #define RESOLV_PATH "/etc/resolv.conf"
133 char *resolv; /* Old resolv.conf */
463 /* Attempt to restore old resolv.conf */
464 if (ctx->resolv != NULL) {
467 write(fd, ctx->resolv, ctx->resolv_sz);
468 free(ctx->resolv);
469 ctx->resolv = NULL;
491 /* Attempt to backup the old resolv.conf */
492 if (ctx->resolv == NULL) {
496 ctx->resolv = malloc(sb.st_size);
497 if (ctx->resolv != NULL) {
498 n = read(fd, ctx->resolv, sb.st_size);
500 free(ctx->resolv);
501 ctx->resolv = NULL;
514 * new resolv.conf
516 if (ctx->resolv != NULL) {
517 p = ctx->resolv;
518 while ((i = readline_buf(p, ctx->resolv + ctx->resolv_sz, buf,
1283 /* Attempt to reset resolv.conf */
1382 ctx.resolv = NULL;