Lines Matching refs:manpath
1 /* Id: manpath.c,v 1.43 2020/08/27 14:59:47 schwarze Exp */
46 manpath_parseline(&conf->manpath, auxp, 'm');
50 manpath_parseline(&conf->manpath, defp, 'M');
54 /* MANPATH and man.conf(5) cooperate. */
55 defp = getenv("MANPATH");
59 /* No MANPATH; use man.conf(5) only. */
65 /* Prepend man.conf(5) to MANPATH. */
68 manpath_parseline(&conf->manpath, defp, '\0');
72 /* Append man.conf(5) to MANPATH. */
74 manpath_parseline(&conf->manpath, defp, '\0');
79 /* Insert man.conf(5) into MANPATH. */
83 manpath_parseline(&conf->manpath, defp, '\0');
85 manpath_parseline(&conf->manpath, insert + 1, '\0');
89 /* MANPATH overrides man.conf(5) completely. */
90 manpath_parseline(&conf->manpath, defp, '\0');
153 for (i = 0; i < conf->manpath.sz; i++)
154 free(conf->manpath.paths[i]);
156 free(conf->manpath.paths);
166 const char *const toks[] = { "manpath", "output" };
203 case 0: /* manpath */
204 manpath_add(&conf->manpath, cp, '\0');
219 manpath_parseline(&conf->manpath, manpath_default, '\0');