From f1ace7192668cc37bb831946c098748693a6bd53 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sat, 23 Jul 2022 17:08:47 -0400 Subject: Patches for man.cameronkatri.com --- cgi.c | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) (limited to 'cgi.c') diff --git a/cgi.c b/cgi.c index 68460c55..7627f490 100644 --- a/cgi.c +++ b/cgi.c @@ -105,37 +105,39 @@ static const char *scriptname = SCRIPT_NAME; static const int sec_prios[] = {1, 4, 5, 8, 6, 3, 7, 2, 9}; static const char *const sec_numbers[] = { - "0", "1", "2", "3", "3p", "4", "5", "6", "7", "8", "9" + "0", "0p", "1", "1p", "2", "3", "3p", "3lua", "4", "5", "6", "7", "8", "9", "9lua" }; static const char *const sec_names[] = { "All Sections", + "0p - POSIX Headers", "1 - General Commands", + "1p - POSIX Utilities", "2 - System Calls", "3 - Library Functions", - "3p - Perl Library", + "3p - POSIX Functions | Perl Library", + "3lua - Lua Modules", "4 - Device Drivers", "5 - File Formats", "6 - Games", "7 - Miscellaneous Information", "8 - System Manager\'s Manual", - "9 - Kernel Developer\'s Manual" + "9 - Kernel Developer\'s Manual", + "9lua - Lua Kernel Bindings" }; static const int sec_MAX = sizeof(sec_names) / sizeof(char *); static const char *const arch_names[] = { - "amd64", "alpha", "armv7", "arm64", - "hppa", "i386", "landisk", "loongson", - "luna88k", "macppc", "mips64", "octeon", - "powerpc64", "riscv64", "sparc64", - - "amiga", "arc", "armish", "arm32", - "atari", "aviion", "beagle", "cats", - "hppa64", "hp300", - "ia64", "mac68k", "mvme68k", "mvme88k", - "mvmeppc", "palm", "pc532", "pegasos", - "pmax", "powerpc", "sgi", "socppc", - "solbourne", "sparc", - "sun3", "vax", "wgrisc", "x68k", + "amd64", "arm64", "i386", "vax", + "tahoe", "hp300", "alpha", "armv7", + "hppa", "landisk", "loongson", "luna88k", + "macppc", "mips64", "octeon", "powerpc64", + "riscv64", "sparc64", "amiga", "arc", + "armish", "arm32", "atari", "aviion", + "beagle", "cats", "hppa64", "ia64", + "mac68k", "mvme68k", "mvme88k", "mvmeppc", + "palm", "pc532", "pegasos", "pmax", + "powerpc", "sgi", "socppc", "solbourne", + "sparc", "sun3", "wgrisc", "x68k", "zaurus" }; static const int arch_MAX = sizeof(arch_names) / sizeof(char *); @@ -439,19 +441,19 @@ resp_searchform(const struct req *req, enum focus focus) printf("
\n" "
\n" - " Manual Page Search Parameters\n", + " Manual Page Search Parameters\n" + "
\n", scriptname); /* Write query input box. */ - printf(" "); + puts(">\n"); /* Write submission buttons. */ @@ -459,7 +461,7 @@ resp_searchform(const struct req *req, enum focus focus) "man\n" " \n" - "
\n"); + "
\n"); /* Write section selector. */ @@ -568,10 +570,10 @@ pg_index(const struct req *req) "
\n" "

\n" "This web interface is documented in the\n" - "man.cgi(8)\n" "manual, and the\n" - "apropos(1)\n" "manual explains the query syntax.\n" "

\n" @@ -999,6 +1001,7 @@ pg_show(struct req *req, const char *fullpath) puts("
"); resp_searchform(req, FOCUS_NONE); puts("
"); + puts("
"); resp_show(req, file); resp_end_html(); } -- cgit v1.2.3