Lines Matching refs:f

760 getMappingFormat(__nis_mapping_format_t *f, __nis_rule_value_t *rv,  in getMappingFormat()  argument
767 if (f == 0) in getMappingFormat()
775 switch (f->type) { in getMappingFormat()
780 bp2buf(myself, &b, "%s", NIL(f->match.string)); in getMappingFormat()
784 for (i = 0; i < f->match.single.numRange; i++) { in getMappingFormat()
785 if (f->match.single.lo[i] == in getMappingFormat()
786 f->match.single.hi[i]) in getMappingFormat()
788 f->match.single.lo[i]); in getMappingFormat()
791 f->match.single.lo[i], in getMappingFormat()
792 f->match.single.hi[i]); in getMappingFormat()
802 bp2buf(myself, &b, "%s", NIL(f->match.berString)); in getMappingFormat()
821 switch (f->type) { in getMappingFormat()
829 (f->type == mmt_berstring) ? f->match.berString : 0, NULL); in getMappingFormat()
851 val->val[0].value = sdup(myself, T, f->match.string); in getMappingFormat()
1755 scanMappingFormat(__nis_mapping_format_t *f, int curf, int nf, char *str, in scanMappingFormat() argument
1767 if (f == 0 || curf < 0 || nf <= 0 || str == 0) in scanMappingFormat()
1785 switch (f[curf].type) { in scanMappingFormat()
1787 if (f[curf].match.berString[0] != 'a') { in scanMappingFormat()
1812 while ((next = scanMappingFormat(f, curf+1, nf, tmpstr, 0, in scanMappingFormat()
1818 tmp = scanMappingFormat(f, cf, nf, tmp, 0, in scanMappingFormat()
1887 if ((mstr = f[curf].match.string) == 0 || *mstr == '\0') { in scanMappingFormat()
1940 unsigned char *lo = f[curf].match.single.lo; in scanMappingFormat()
1941 unsigned char *hi = f[curf].match.single.hi; in scanMappingFormat()
1943 for (i = 0; i < f[curf].match.single.numRange; in scanMappingFormat()
1959 for (i = 0; i < f[curf].match.single.numRange; i++) { in scanMappingFormat()
1960 if (*str >= f[curf].match.single.lo[i] && in scanMappingFormat()
1961 *str <= f[curf].match.single.hi[i]) { in scanMappingFormat()
1980 while ((next = scanMappingFormat(f, curf+1, nf, str, 0, in scanMappingFormat()
1986 tmp = scanMappingFormat(f, cf, nf, tmp, 0, in scanMappingFormat()
2008 if (f[curf].match.limit == eos) { in scanMappingFormat()
2048 verifyMappingMatch(__nis_mapping_format_t *f, char *str) { in verifyMappingMatch() argument
2053 for (nf = 0, ftmp = f; ftmp->type != mmt_end; ftmp++) { in verifyMappingMatch()
2060 str = scanMappingFormat(f, n, nf, str, 0, 0, 0); in verifyMappingMatch()
2091 matchMappingItem(__nis_mapping_format_t *f, __nis_value_t *inVal, in matchMappingItem() argument
2099 if (f == 0 || in matchMappingItem()
2104 for (nf = numItems = 0, ftmp = f; ftmp->type != mmt_end; ftmp++) { in matchMappingItem()
2180 str = scanMappingFormat(f, n, nf, str, &valstr, in matchMappingItem()
2224 extractMappingItem(__nis_mapping_item_t *item, __nis_mapping_format_t *f, in extractMappingItem() argument
2234 else if (f == 0 || rv == 0 || val->val == 0 || in extractMappingItem()
2244 for (nf = numitem = 0, ftmp = f; ftmp->type != mmt_end; in extractMappingItem()
2280 str = scanMappingFormat(f, n, nf, str, &newstr, 0, 0); in extractMappingItem()