Lines Matching defs:fp

24  *    context ctx to the FILE fp.
76 lwres_conf_parsenameserver(lwres_context_t *ctx, FILE *fp);
79 lwres_conf_parselwserver(lwres_context_t *ctx, FILE *fp);
82 lwres_conf_parsedomain(lwres_context_t *ctx, FILE *fp);
85 lwres_conf_parsesearch(lwres_context_t *ctx, FILE *fp);
88 lwres_conf_parsesortlist(lwres_context_t *ctx, FILE *fp);
91 lwres_conf_parseoption(lwres_context_t *ctx, FILE *fp);
125 eatline(FILE *fp) {
128 ch = fgetc(fp);
130 ch = fgetc(fp);
142 eatwhite(FILE *fp) {
145 ch = fgetc(fp);
147 ch = fgetc(fp);
150 ch = eatline(fp);
163 getword(FILE *fp, char *buffer, size_t size) {
172 ch = eatwhite(fp);
186 ch = fgetc(fp);
292 lwres_conf_parsenameserver(lwres_context_t *ctx, FILE *fp) {
303 res = getword(fp, word, sizeof(word));
307 res = eatwhite(fp);
323 lwres_conf_parselwserver(lwres_context_t *ctx, FILE *fp) {
333 res = getword(fp, word, sizeof(word));
337 res = eatwhite(fp);
351 lwres_conf_parsedomain(lwres_context_t *ctx, FILE *fp) {
358 res = getword(fp, word, sizeof(word));
362 res = eatwhite(fp);
392 lwres_conf_parsesearch(lwres_context_t *ctx, FILE *fp) {
420 delim = getword(fp, word, sizeof(word));
439 delim = getword(fp, word, sizeof(word));
505 lwres_conf_parsesortlist(lwres_context_t *ctx, FILE *fp) {
513 delim = getword(fp, word, sizeof(word));
552 delim = getword(fp, word, sizeof(word));
559 lwres_conf_parseoption(lwres_context_t *ctx, FILE *fp) {
571 delim = getword(fp, word, sizeof(word));
606 delim = getword(fp, word, sizeof(word));
615 FILE *fp = NULL;
629 if ((fp = fopen(filename, "r")) == NULL)
634 stopchar = getword(fp, word, sizeof(word));
644 rval = lwres_conf_parsenameserver(ctx, fp);
646 rval = lwres_conf_parselwserver(ctx, fp);
648 rval = lwres_conf_parsedomain(ctx, fp);
650 rval = lwres_conf_parsesearch(ctx, fp);
652 rval = lwres_conf_parsesortlist(ctx, fp);
654 rval = lwres_conf_parseoption(ctx, fp);
658 stopchar = eatline(fp);
667 fclose(fp);
674 lwres_conf_print(lwres_context_t *ctx, FILE *fp) {
702 fprintf(fp, "nameserver %s%s\n", tmp, buf);
719 fprintf(fp, "lwserver %s%s\n", tmp, buf);
723 fprintf(fp, "domain %s\n", confdata->domainname);
727 fprintf(fp, "search");
729 fprintf(fp, " %s", confdata->search[i]);
730 fputc('\n', fp);
736 fputs("sortlist", fp);
746 fprintf(fp, " %s", tmp);
763 fprintf(fp, "/%s", tmp);
766 fputc('\n', fp);
770 fprintf(fp, "options debug\n");
773 fprintf(fp, "options ndots:%d\n", confdata->ndots);
776 fprintf(fp, "options no_tld_query\n");
779 fprintf(fp, "options attempts:%d\n", confdata->attempts);
782 fprintf(fp, "options timeout:%d\n", confdata->timeout);