summaryrefslogtreecommitdiff
path: root/system/mandoc/cgi-adelie.patch
blob: fff8622402b4c5ef077353c634b12d45c7e0caf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Adjustments for Adélie manual sections and architecture names.

--- mandoc-1.14.5/cgi.c	2019-03-10 04:56:43.000000000 -0500
+++ mandoc-1.14.5/cgi.c	2020-06-05 15:54:05.681060852 -0500
@@ -101,38 +101,28 @@ static	const char	 *scriptname = SCRIPT_
 
 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", "3pm", "4", "5", "6", "7", "8"
 };
 static	const char *const sec_names[] = {
     "All Sections",
+    "0p - POSIX C Headers",
     "1 - General Commands",
+    "1p - POSIX Commands",
     "2 - System Calls",
     "3 - Library Functions",
-    "3p - Perl Library",
+    "3p - POSIX C Library Functions",
+    "3pm - Perl Library",
     "4 - Device Drivers",
-    "5 - File Formats",
+    "5 - File formats and configuration files",
     "6 - Games",
-    "7 - Miscellaneous Information",
-    "8 - System Manager\'s Manual",
-    "9 - Kernel Developer\'s Manual"
+    "7 - Overview, conventions, and miscellaneous",
+    "8 - System Administrator\'s Manual"
 };
 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",
-    "zaurus"
+    "aarch64",     "armv7",       "pmmx",
+    "ppc",         "ppc64",       "x86_64",
 };
 static	const int arch_MAX = sizeof(arch_names) / sizeof(char *);
 
@@ -655,7 +661,7 @@ pg_searchres(const struct req *req, stru
 					== NULL) ? 3 :
 				    ((archend = strchr(arch + 1, '/'))
 					== NULL) ? 0 :
-				    strncmp(arch, "amd64/",
+				    strncmp(arch, "ppc64/",
 					archend - arch) ? 2 : 1;
 				if (archprio < archpriouse) {
 					archpriouse = archprio;