HomeSort by: relevance | last modified time | path
    Searched refs:manpath (Results 1 - 10 of 10) sorted by relevancy

  /src/external/bsd/mdocml/dist/
manconf.h 51 struct manpaths manpath; member in struct:manconf
manpath.c 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')
    [all...]
cgi.c 53 char *manpath; /* desired manual directory */ member in struct:query
211 req->q.manpath = NULL;
247 else if ( ! strcmp(key, "manpath")) {
255 set_query_attr(&req->q.manpath, &val);
486 /* Write manpath selector. */
489 puts(" <select name=\"manpath\">");
492 if (strcmp(req->q.manpath, req->p[i]) == 0)
520 validate_manpath(const struct req *req, const char* manpath)
525 if ( ! strcmp(manpath, req->p[i]))
613 if (strcmp(req->q.manpath, req->p[0])
931 char *manpath; local
    [all...]
main.c 467 if (conf.manpath.sz == 0) {
468 warnx("The manpath is empty.");
471 for (i = 0; i + 1 < conf.manpath.sz; i++)
472 printf("%s:", conf.manpath.paths[i]);
473 printf("%s\n", conf.manpath.paths[i]);
479 (void)mansearch(&search, &conf.manpath,
482 (void)fs_search(&search, &conf.manpath,
562 if (mansearch(&search, &conf.manpath,
882 (void)chdir(conf->manpath.paths[resp->ipath]);
1038 check_xr(&conf->manpath);
    [all...]
mandocdb.c 99 char file[PATH_MAX]; /* filename rel. to manpath */
479 conf.manpath.paths = mandoc_reallocarray(NULL,
481 conf.manpath.sz = (size_t)argc;
483 conf.manpath.paths[i] = mandoc_strdup(argv[i]);
487 if (conf.manpath.sz == 0) {
489 say("", "Empty manpath");
498 for (j = 0; j < conf.manpath.sz; j++) {
499 sz = strlen(conf.manpath.paths[j]);
500 if (sz && conf.manpath.paths[j][sz - 1] == '/')
501 conf.manpath.paths[j][--sz] = '\0'
    [all...]
Makefile 108 manpath.c \
310 manpath.o \
  /src/external/bsd/mdocml/bin/mandoc/
Makefile 21 manpath.c \
  /src/usr.bin/man/
man.c 88 char *manpath; /* -M: alternate MANPATH */ member in struct:manstate
89 char *addpath; /* -m: add these dirs to front of manpath */
96 TAG *defaultpath; /* _default: default MANPATH */
104 TAG *mymanpath; /* _new_path: final version of MANPATH */
173 if ((m.manpath = strdup(optarg)) == NULL)
213 * without '-s'], and MANPATH through the environment).
255 if (m.manpath == NULL)
256 m.manpath = getenv("MANPATH"); /* note: -M overrides getenv *
    [all...]
  /src/libexec/makewhatis/
makewhatis.c 108 static int makewhatis(char * const *manpath);
127 char * const *manpath; local
157 fprintf(stderr, "Usage: %s [-fw] [-C file] [manpath ...]\n",
166 manpath = &argv[0];
169 return makewhatis(manpath);
178 manpath = default_manpath;
244 makewhatis(char * const * manpath)
255 if ((fts = fts_open(manpath, FTS_LOGICAL, NULL)) == NULL)
256 err(EXIT_FAILURE, "Cannot open `%s'", *manpath);
333 if (chdir(manpath[0]) == -1
    [all...]
  /src/external/gpl2/groff/dist/contrib/groffer/
groffer2.sh 254 # [A-Z]* system variables, e.g. $MANPATH
432 _OPTS_MAN_LONG_ARG="'locale' 'manpath' \
500 export _MANOPT_PATH; # $MANOPT --manpath
2464 # Only called from do_fileargs(), checks on $MANPATH and $_MAN_ENABLE
2845 # $MANPATH, $MANROFFSEQ, $MANSEC, $PAGER, $SYSTEM, $MANOPT.
2856 # $MANPATH, $MANROFFSEQ, $MANSEC, $PAGER, $SYSTEM; overridden by
2879 "${_OPT_MANPATH}" "${_MANOPT_PATH}" "${MANPATH}")";
2890 if is_prog 'manpath'
2892 _MAN_PATH="$(manpath 2>${_NULL_DEV})"; # not always available
3871 --local-file=name, --location, --manpath=dir1:dir2:...
    [all...]

Completed in 25 milliseconds