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