Home | History | Annotate | Download | only in man

Lines Matching defs:section

91 	char *sectionname;	/* -s: limit search to a given man section */
105 TAG *section; /* <sec>: tag for m.sectionname */
212 * we will need (machine type, pager, section [if specified
238 /* do we need to set m.section to a non-null value? */
241 m.section = gettag(m.sectionname, 0); /* -s must be a section */
242 if (m.section == NULL)
243 errx(EXIT_FAILURE, "unknown section: %s", m.sectionname);
247 m.section = gettag(*argv, 0); /* might be a section? */
248 if (m.section) {
278 * are we using a section whose elements are all absolute paths?
279 * (we only need to look at the first entry on the section list,
283 abs_section = (m.section != NULL &&
284 !TAILQ_EMPTY(&m.section->entrylist) &&
285 *(TAILQ_FIRST(&m.section->entrylist)->s) == '/');
292 * [1] if the user specified a section and that section's elements
294 * defaultpath and -M/MANPATH with the section's absolute paths.
298 m.defaultpath = m.section; /* overwrite _default path */
299 m.section = NULL; /* promoted to defaultpath */
303 * [2] section can now only be non-null if the user asked for
304 * a section and that section's elements did not have
305 * absolute paths. in this case we use the section's
308 * after this step, we are done processing "m.section"...
310 if (m.section)
311 m.subdirs = m.section;
319 * for absolute section paths that come from the config file,