Lines Matching defs:mapents

124 	struct mapent *mapents = NULL;
149 * the /net parser - uses do_mapent_hosts to build mapents.
153 mapents = do_mapent_hosts(mapopts, key, isdirect);
154 if (mapents == NULL) /* nothing to free */
155 return (mapents);
158 trace_mapents("do_mapent_hosts:(return)", mapents);
160 if (hierarchical_sort(mapents, &rootnode, key, mapname)
167 if (mapline_to_mapent(&mapents, ml, key, mapname,
171 if (mapents == NULL)
172 return (mapents);
174 if (hierarchical_sort(mapents, &rootnode, key, mapname)
188 if (parse_fsinfo(mapname, mapents) != PARSE_OK)
197 if (modify_mapents(&mapents, mapname, mapopts, subdir,
202 * XXX: its dangerous to use rootnode after modify mapents as
203 * it may be pointing to mapents that have been freed
208 return (mapents);
213 free_mapent(mapents);
221 * mapline_to_mapent(struct mapent **mapents, struct mapline *ml,
233 mapline_to_mapent(struct mapent **mapents, struct mapline *ml, char *key,
260 *mapents = NULL;
288 if (*mapents == NULL) /* special case of head */
289 *mapents = me;
395 if (*mapents == NULL || w[0] != '\0') { /* sanity check */
397 if (*mapents == NULL)
399 "mapline_to_mapent: parsed with null mapents");
408 trace_mapents("mapline_to_mapent:", *mapents);
418 * hierarchical_sort(struct mapent *mapents, hiernode **rootnode, char *key
427 hierarchical_sort(struct mapent *mapents, hiernode **rootnode, char *key,
435 struct mapent *me = mapents;
443 * walk through mapents - for each mapent, locate the position
715 * modify_mapents(struct mapent **mapents, char *mapname,
726 modify_mapents(struct mapent **mapents, char *mapname,
747 * attaches faked mapents to real mapents list. Assumes mapents
750 me = *mapents;
758 me = *mapents;
768 if (me == (*mapents)) {
770 *mapents = me->map_next;
771 if ((*mapents) == NULL) {
782 me = *mapents;
793 * convert level 1 mapents that are not already autonodes
810 trace_mapents("modify_mapents:", *mapents);
1228 * parse_fsinfo(char *mapname, struct mapent *mapents)
1234 parse_fsinfo(char *mapname, struct mapent *mapents)
1236 struct mapent *me = mapents;
1267 trace_mapents("parse_fsinfo:", mapents);
1695 * trace_mapents(struct mapent *mapents)
1700 trace_mapents(char *s, struct mapent *mapents)
1706 for (me = mapents; me; me = me->map_next) {