Lines Matching refs:mapents
124 struct mapent *mapents = NULL; in parse_entry() local
153 mapents = do_mapent_hosts(mapopts, key, isdirect); in parse_entry()
154 if (mapents == NULL) /* nothing to free */ in parse_entry()
155 return (mapents); in parse_entry()
158 trace_mapents("do_mapent_hosts:(return)", mapents); in parse_entry()
160 if (hierarchical_sort(mapents, &rootnode, key, mapname) in parse_entry()
167 if (mapline_to_mapent(&mapents, ml, key, mapname, in parse_entry()
171 if (mapents == NULL) in parse_entry()
172 return (mapents); in parse_entry()
174 if (hierarchical_sort(mapents, &rootnode, key, mapname) in parse_entry()
188 if (parse_fsinfo(mapname, mapents) != PARSE_OK) in parse_entry()
197 if (modify_mapents(&mapents, mapname, mapopts, subdir, in parse_entry()
208 return (mapents); in parse_entry()
213 free_mapent(mapents); in parse_entry()
233 mapline_to_mapent(struct mapent **mapents, struct mapline *ml, char *key, in mapline_to_mapent() argument
260 *mapents = NULL; in mapline_to_mapent()
288 if (*mapents == NULL) /* special case of head */ in mapline_to_mapent()
289 *mapents = me; in mapline_to_mapent()
395 if (*mapents == NULL || w[0] != '\0') { /* sanity check */ in mapline_to_mapent()
397 if (*mapents == NULL) in mapline_to_mapent()
408 trace_mapents("mapline_to_mapent:", *mapents); in mapline_to_mapent()
427 hierarchical_sort(struct mapent *mapents, hiernode **rootnode, char *key, in hierarchical_sort() argument
435 struct mapent *me = mapents; in hierarchical_sort()
726 modify_mapents(struct mapent **mapents, char *mapname, in modify_mapents() argument
750 me = *mapents; in modify_mapents()
758 me = *mapents; in modify_mapents()
768 if (me == (*mapents)) { in modify_mapents()
770 *mapents = me->map_next; in modify_mapents()
771 if ((*mapents) == NULL) { in modify_mapents()
782 me = *mapents; in modify_mapents()
810 trace_mapents("modify_mapents:", *mapents); in modify_mapents()
1234 parse_fsinfo(char *mapname, struct mapent *mapents) in parse_fsinfo() argument
1236 struct mapent *me = mapents; in parse_fsinfo()
1267 trace_mapents("parse_fsinfo:", mapents); in parse_fsinfo()
1700 trace_mapents(char *s, struct mapent *mapents) in trace_mapents() argument
1706 for (me = mapents; me; me = me->map_next) { in trace_mapents()