version 1.144, 2017/01/21 01:20:31 |
version 1.147, 2017/02/08 13:34:27 |
|
|
#include <sys/time.h> |
#include <sys/time.h> |
|
|
#include <ctype.h> |
#include <ctype.h> |
|
#if HAVE_ERR |
#include <err.h> |
#include <err.h> |
|
#endif |
#include <errno.h> |
#include <errno.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <limits.h> |
#include <limits.h> |
Line 113 static const char *const sec_names[] = { |
|
Line 115 static const char *const sec_names[] = { |
|
static const int sec_MAX = sizeof(sec_names) / sizeof(char *); |
static const int sec_MAX = sizeof(sec_names) / sizeof(char *); |
|
|
static const char *const arch_names[] = { |
static const char *const arch_names[] = { |
"amd64", "alpha", "armv7", |
"amd64", "alpha", "armv7", "arm64", |
"hppa", "i386", "landisk", |
"hppa", "i386", "landisk", |
"loongson", "luna88k", "macppc", "mips64", |
"loongson", "luna88k", "macppc", "mips64", |
"octeon", "sgi", "socppc", "sparc64", |
"octeon", "sgi", "socppc", "sparc64", |
Line 799 resp_format(const struct req *req, const char *file) |
|
Line 801 resp_format(const struct req *req, const char *file) |
|
|
|
memset(&conf, 0, sizeof(conf)); |
memset(&conf, 0, sizeof(conf)); |
conf.fragment = 1; |
conf.fragment = 1; |
|
conf.style = mandoc_strdup(CSS_DIR "/mandoc.css"); |
usepath = strcmp(req->q.manpath, req->p[0]); |
usepath = strcmp(req->q.manpath, req->p[0]); |
mandoc_asprintf(&conf.man, "/%s%s%%N.%%S", |
mandoc_asprintf(&conf.man, "/%s%s%%N.%%S", |
usepath ? req->q.manpath : "", usepath ? "/" : ""); |
usepath ? req->q.manpath : "", usepath ? "/" : ""); |
Line 826 resp_format(const struct req *req, const char *file) |
|
Line 829 resp_format(const struct req *req, const char *file) |
|
mparse_free(mp); |
mparse_free(mp); |
mchars_free(); |
mchars_free(); |
free(conf.man); |
free(conf.man); |
|
free(conf.style); |
} |
} |
|
|
static void |
static void |