Lines Matching defs:resolv
74 #define RESOLV_PATH "/etc/resolv.conf"
134 char *resolv; /* Old resolv.conf */
464 /* Attempt to restore old resolv.conf */
465 if (ctx->resolv != NULL) {
468 write(fd, ctx->resolv, ctx->resolv_sz);
469 free(ctx->resolv);
470 ctx->resolv = NULL;
492 /* Attempt to backup the old resolv.conf */
493 if (ctx->resolv == NULL) {
497 ctx->resolv = malloc(sb.st_size);
498 if (ctx->resolv != NULL) {
499 n = read(fd, ctx->resolv, sb.st_size);
501 free(ctx->resolv);
502 ctx->resolv = NULL;
515 * new resolv.conf
517 if (ctx->resolv != NULL) {
518 p = ctx->resolv;
519 while ((i = readline_buf(p, ctx->resolv + ctx->resolv_sz, buf,
1284 /* Attempt to reset resolv.conf */
1383 ctx.resolv = NULL;