version 1.139, 2016/09/01 15:07:24 |
version 1.142, 2017/01/19 13:35:02 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@usta.de> |
* Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@usta.de> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 116 static const char *const arch_names[] = { |
|
Line 116 static const char *const arch_names[] = { |
|
"amd64", "alpha", "armv7", |
"amd64", "alpha", "armv7", |
"hppa", "i386", "landisk", |
"hppa", "i386", "landisk", |
"loongson", "luna88k", "macppc", "mips64", |
"loongson", "luna88k", "macppc", "mips64", |
"octeon", "sgi", "socppc", |
"octeon", "sgi", "socppc", "sparc64", |
"sparc64", "zaurus", |
|
"amiga", "arc", "armish", "arm32", |
"amiga", "arc", "armish", "arm32", |
"atari", "aviion", "beagle", "cats", |
"atari", "aviion", "beagle", "cats", |
"hppa64", "hp300", |
"hppa64", "hp300", |
"ia64", "mac68k", "mvme68k", "mvme88k", |
"ia64", "mac68k", "mvme68k", "mvme88k", |
"mvmeppc", "palm", "pc532", "pegasos", |
"mvmeppc", "palm", "pc532", "pegasos", |
"pmax", "powerpc", "solbourne", "sparc", |
"pmax", "powerpc", "solbourne", "sparc", |
"sun3", "vax", "wgrisc", "x68k" |
"sun3", "vax", "wgrisc", "x68k", |
|
"zaurus" |
}; |
}; |
static const int arch_MAX = sizeof(arch_names) / sizeof(char *); |
static const int arch_MAX = sizeof(arch_names) / sizeof(char *); |
|
|
Line 138 html_putchar(char c) |
|
Line 138 html_putchar(char c) |
|
|
|
switch (c) { |
switch (c) { |
case ('"'): |
case ('"'): |
printf(""e;"); |
printf("""); |
break; |
break; |
case ('&'): |
case ('&'): |
printf("&"); |
printf("&"); |
Line 356 resp_begin_html(int code, const char *msg) |
|
Line 356 resp_begin_html(int code, const char *msg) |
|
" type=\"text/css\" media=\"all\">\n" |
" type=\"text/css\" media=\"all\">\n" |
"<title>%s</title>\n" |
"<title>%s</title>\n" |
"</head>\n" |
"</head>\n" |
"<body>\n" |
"<body>\n", |
"<!-- Begin page content. //-->\n", |
|
CSS_DIR, CUSTOMIZE_TITLE); |
CSS_DIR, CUSTOMIZE_TITLE); |
|
|
resp_copy(MAN_DIR "/header.html"); |
resp_copy(MAN_DIR "/header.html"); |
Line 378 resp_searchform(const struct req *req, enum focus focu |
|
Line 377 resp_searchform(const struct req *req, enum focus focu |
|
{ |
{ |
int i; |
int i; |
|
|
puts("<!-- Begin search form. //-->"); |
printf("<form action=\"/%s\" method=\"get\">\n" |
printf("<div id=\"mancgi\">\n" |
|
"<form action=\"/%s\" method=\"get\">\n" |
|
"<fieldset>\n" |
"<fieldset>\n" |
"<legend>Manual Page Search Parameters</legend>\n", |
"<legend>Manual Page Search Parameters</legend>\n", |
scriptname); |
scriptname); |
Line 448 resp_searchform(const struct req *req, enum focus focu |
|
Line 445 resp_searchform(const struct req *req, enum focus focu |
|
} |
} |
|
|
puts("</fieldset>\n" |
puts("</fieldset>\n" |
"</form>\n" |
"</form>"); |
"</div>"); |
|
puts("<!-- End search form. //-->"); |
|
} |
} |
|
|
static int |
static int |