Lines Matching refs:fp

35  *    context ctx to the FILE fp.
84 lwres_conf_parsenameserver(lwres_context_t *ctx, FILE *fp);
87 lwres_conf_parselwserver(lwres_context_t *ctx, FILE *fp);
90 lwres_conf_parsedomain(lwres_context_t *ctx, FILE *fp);
93 lwres_conf_parsesearch(lwres_context_t *ctx, FILE *fp);
96 lwres_conf_parsesortlist(lwres_context_t *ctx, FILE *fp);
99 lwres_conf_parseoption(lwres_context_t *ctx, FILE *fp);
133 eatline(FILE *fp) {
136 ch = fgetc(fp);
138 ch = fgetc(fp);
150 eatwhite(FILE *fp) {
153 ch = fgetc(fp);
155 ch = fgetc(fp);
158 ch = eatline(fp);
171 getword(FILE *fp, char *buffer, size_t size) {
180 ch = eatwhite(fp);
194 ch = fgetc(fp);
295 lwres_conf_parsenameserver(lwres_context_t *ctx, FILE *fp) {
306 res = getword(fp, word, sizeof(word));
310 res = eatwhite(fp);
326 lwres_conf_parselwserver(lwres_context_t *ctx, FILE *fp) {
336 res = getword(fp, word, sizeof(word));
340 res = eatwhite(fp);
354 lwres_conf_parsedomain(lwres_context_t *ctx, FILE *fp) {
361 res = getword(fp, word, sizeof(word));
365 res = eatwhite(fp);
395 lwres_conf_parsesearch(lwres_context_t *ctx, FILE *fp) {
423 delim = getword(fp, word, sizeof(word));
442 delim = getword(fp, word, sizeof(word));
476 lwres_conf_parsesortlist(lwres_context_t *ctx, FILE *fp) {
484 delim = getword(fp, word, sizeof(word));
523 delim = getword(fp, word, sizeof(word));
530 lwres_conf_parseoption(lwres_context_t *ctx, FILE *fp) {
540 delim = getword(fp, word, sizeof(word));
561 delim = getword(fp, word, sizeof(word));
570 FILE *fp = NULL;
584 if ((fp = fopen(filename, "r")) == NULL)
589 stopchar = getword(fp, word, sizeof(word));
599 rval = lwres_conf_parsenameserver(ctx, fp);
601 rval = lwres_conf_parselwserver(ctx, fp);
603 rval = lwres_conf_parsedomain(ctx, fp);
605 rval = lwres_conf_parsesearch(ctx, fp);
607 rval = lwres_conf_parsesortlist(ctx, fp);
609 rval = lwres_conf_parseoption(ctx, fp);
613 stopchar = eatline(fp);
622 fclose(fp);
629 lwres_conf_print(lwres_context_t *ctx, FILE *fp) {
650 fprintf(fp, "nameserver %s\n", tmp);
661 fprintf(fp, "lwserver %s\n", tmp);
665 fprintf(fp, "domain %s\n", confdata->domainname);
669 fprintf(fp, "search");
671 fprintf(fp, " %s", confdata->search[i]);
672 fputc('\n', fp);
678 fputs("sortlist", fp);
688 fprintf(fp, " %s", tmp);
705 fprintf(fp, "/%s", tmp);
708 fputc('\n', fp);
712 fprintf(fp, "options debug\n");
715 fprintf(fp, "options ndots:%d\n", confdata->ndots);
718 fprintf(fp, "options no_tld_query\n");