Lines Matching refs:page
123 static void exec_woman_emacs(const char *path, const char *page)
131 if (asprintf(&man_page, "(woman \"%s\")", page) > 0) {
139 static void exec_man_konqueror(const char *path, const char *page)
162 if (asprintf(&man_page, "man:%s(1)", page) > 0) {
170 static void exec_man_man(const char *path, const char *page)
174 execlp(path, "man", page, NULL);
178 static void exec_man_cmd(const char *cmd, const char *page)
182 if (asprintf(&shell_cmd, "%s %s", cmd, page) > 0) {
335 * system-wide paths after ours to find the manual page. If
345 static void exec_viewer(const char *name, const char *page)
350 exec_man_man(info, page);
352 exec_woman_emacs(info, page);
354 exec_man_konqueror(info, page);
356 exec_man_cmd(info, page);
364 const char *page = cmd_to_page(perf_cmd);
369 exec_viewer(viewer->name, page); /* will return when unable */
372 exec_viewer(fallback, page);
373 exec_viewer("man", page);
381 const char *page = cmd_to_page(perf_cmd);
383 execlp("info", "info", "perfman", page, NULL);
387 static int get_html_page_path(char **page_path, const char *page)
399 return asprintf(page_path, "%s/%s.html", html_path, page);
416 const char *page = cmd_to_page(perf_cmd);
419 if (get_html_page_path(&page_path, page) < 0)
433 OPT_SET_UINT('m', "man", &help_format, "show man page", HELP_FORMAT_MAN),
436 OPT_SET_UINT('i', "info", &help_format, "show info page",