Lines Matching refs:page
125 static void exec_woman_emacs(const char *path, const char *page)
133 if (asprintf(&man_page, "(woman \"%s\")", page) > 0) {
141 static void exec_man_konqueror(const char *path, const char *page)
164 if (asprintf(&man_page, "man:%s(1)", page) > 0) {
172 static void exec_man_man(const char *path, const char *page)
176 execlp(path, "man", page, NULL);
180 static void exec_man_cmd(const char *cmd, const char *page)
184 if (asprintf(&shell_cmd, "%s %s", cmd, page) > 0) {
337 * system-wide paths after ours to find the manual page. If
347 static void exec_viewer(const char *name, const char *page)
352 exec_man_man(info, page);
354 exec_woman_emacs(info, page);
356 exec_man_konqueror(info, page);
358 exec_man_cmd(info, page);
366 const char *page = cmd_to_page(perf_cmd);
371 exec_viewer(viewer->name, page); /* will return when unable */
374 exec_viewer(fallback, page);
375 exec_viewer("man", page);
383 const char *page = cmd_to_page(perf_cmd);
385 execlp("info", "info", "perfman", page, NULL);
389 static int get_html_page_path(char **page_path, const char *page)
402 return asprintf(page_path, "%s/%s.html", html_path, page);
419 const char *page = cmd_to_page(perf_cmd);
422 if (get_html_page_path(&page_path, page) < 0)
436 OPT_SET_UINT('m', "man", &help_format, "show man page", HELP_FORMAT_MAN),
439 OPT_SET_UINT('i', "info", &help_format, "show info page",