Lines Matching refs:tfp
1752 FILE *tfp; in diffnvlists() local
1766 tfp = validmod(module_name, &openerr); in diffnvlists()
1767 if (tfp == NULL) { in diffnvlists()
1795 res = readtype(tfp, module_name, SHORT_NAME(nme), &type, in diffnvlists()
2065 (void) fclose(tfp); in diffnvlists()
2083 (void) fclose(tfp); in diffnvlists()
3170 FILE *tfp; in printnvlist() local
3186 tfp = validmod(module, &openerr); in printnvlist()
3187 if (tfp == NULL) { in printnvlist()
3221 ret = readtype(tfp, module, param, &type, &enum_nvs, dfltst, in printnvlist()
3460 (void) fclose(tfp); in printnvlist()
5049 FILE *tfp, in read_mapped_values() argument
5073 res = readtype(tfp, module, map_name, &type, &enum_nvs, in read_mapped_values()
5404 FILE *tfp, in read_perm_items() argument
5424 if (fseek(tfp, 0, SEEK_SET) != 0) { in read_perm_items()
5439 while (fgets(lbuf, IPQOS_CONF_TYPE_LINE_LEN, tfp) != NULL) { in read_perm_items()
5516 FILE *tfp, in readtype() argument
5571 if (read_tfile_ver(tfp, IPQOS_MOD_STR, module_name) == -1) in readtype()
5579 while (fgets(lbuf, IPQOS_CONF_TYPE_LINE_LEN, tfp) != NULL) { in readtype()
5701 FILE *tfp, in readnvpair() argument
5771 } else if (tfp == NULL || in readnvpair()
5783 if (readtype(tfp, module_name, name, type, &enum_nvs, dfltst, in readnvpair()
6036 res = read_mapped_values(tfp, nvlp, module_name, in readnvpair()
6142 FILE *tfp, in readparams() argument
6172 res = readnvpair(cfp, tfp, ¶ms->nvlist, in readparams()
7303 FILE *tfp, in readfilter() argument
7358 res = readnvpair(cfp, tfp, &(*filter)->nvlist, in readfilter()
7785 FILE *tfp = NULL; in readaction() local
7890 if ((tfp = validmod(strval, &oe)) == NULL) { in readaction()
7937 res = read_perm_items(0, tfp, (*action)->module, in readaction()
7945 res = read_perm_items(1, tfp, (*action)->module, in readaction()
7954 if ((tf_fmt_ver = read_tfile_ver(tfp, IPQOS_FMT_STR, in readaction()
7968 if (((*action)->module_version = read_tfile_ver(tfp, IPQOS_MOD_STR, in readaction()
8001 res = readfilter(cfp, tfp, (*action)->module, &filter, in readaction()
8087 res = readparams(cfp, tfp, (*action)->module, in readaction()
8104 (void) fclose(tfp); in readaction()
8108 if (tfp) in readaction()
8109 (void) fclose(tfp); in readaction()
8543 FILE *tfp; in readkconf() local
8570 if ((tfp = validmod(modnames[x], &openerr)) == NULL) { in readkconf()
8591 (void) fclose(tfp); in readkconf()
8757 FILE *tfp; in parse_kparams() local
8768 tfp = validmod(module, &openerr); in parse_kparams()
8769 if (tfp == NULL) { in parse_kparams()
8811 ret = readtype(tfp, module, param, &type, &tmp, dfltst, in parse_kparams()
8833 (void) fclose(tfp); in parse_kparams()
8836 (void) fclose(tfp); in parse_kparams()