Lines Matching refs:dirs
40 manpath_parse(struct manpaths *dirs, const char *file, in manpath_parse() argument
83 manpath_parseline(dirs, buf, 1); in manpath_parse()
92 manpath_parseline(dirs, auxp, 1); in manpath_parse()
96 manpath_parseline(dirs, defp, 1); in manpath_parse()
107 manpath_manconf(dirs, file); in manpath_parse()
113 manpath_manconf(dirs, file); in manpath_parse()
114 manpath_parseline(dirs, defp, 0); in manpath_parse()
120 manpath_parseline(dirs, defp, 0); in manpath_parse()
121 manpath_manconf(dirs, file); in manpath_parse()
129 manpath_parseline(dirs, defp, 0); in manpath_parse()
130 manpath_manconf(dirs, file); in manpath_parse()
131 manpath_parseline(dirs, insert + 1, 0); in manpath_parse()
136 manpath_parseline(dirs, defp, 0); in manpath_parse()
144 manpath_parseline(struct manpaths *dirs, char *path, int complain) in manpath_parseline() argument
152 manpath_add(dirs, dir, complain); in manpath_parseline()
160 manpath_add(struct manpaths *dirs, const char *dir, int complain) in manpath_add() argument
175 for (i = 0; i < dirs->sz; i++) in manpath_add()
176 if (0 == strcmp(dirs->paths[i], dir)) in manpath_add()
187 dirs->paths = mandoc_reallocarray(dirs->paths, in manpath_add()
188 dirs->sz + 1, sizeof(char *)); in manpath_add()
190 dirs->paths[dirs->sz++] = mandoc_strdup(cp); in manpath_add()
205 manpath_manconf(struct manpaths *dirs, const char *file) in manpath_manconf() argument
233 manpath_add(dirs, p, 0); in manpath_manconf()