version 1.36, 2011/12/16 18:37:12 |
version 1.39, 2011/12/25 17:49:52 |
|
|
#include "man.h" |
#include "man.h" |
#include "main.h" |
#include "main.h" |
#include "manpath.h" |
#include "manpath.h" |
|
#include "mandocdb.h" |
|
|
#ifdef __linux__ |
#ifdef __linux__ |
# include <db_185.h> |
# include <db_185.h> |
Line 134 atou(const char *buf, unsigned *v) |
|
Line 135 atou(const char *buf, unsigned *v) |
|
return(0); |
return(0); |
if ((errno == ERANGE && (lval == LONG_MAX || |
if ((errno == ERANGE && (lval == LONG_MAX || |
lval == LONG_MIN)) || |
lval == LONG_MIN)) || |
(lval > UINT_MAX || lval < 0)) |
(lval > INT_MAX || lval < 0)) |
return(0); |
return(0); |
|
|
*v = (unsigned int)lval; |
*v = (unsigned int)lval; |
Line 510 resp_search(struct res *r, size_t sz, void *arg) |
|
Line 511 resp_search(struct res *r, size_t sz, void *arg) |
|
const struct req *req; |
const struct req *req; |
|
|
req = (const struct req *)arg; |
req = (const struct req *)arg; |
assert(req->q.manroot >= 0); |
|
|
if (sz > 0) |
|
assert(req->q.manroot >= 0); |
|
|
if (1 == sz) { |
if (1 == sz) { |
/* |
/* |
Line 841 pg_show(const struct req *req, char *path) |
|
Line 844 pg_show(const struct req *req, char *path) |
|
|
|
sz = strlcpy(file, ps.paths[vol], MAXPATHLEN); |
sz = strlcpy(file, ps.paths[vol], MAXPATHLEN); |
assert(sz < MAXPATHLEN); |
assert(sz < MAXPATHLEN); |
strlcat(file, "/mandoc.index", MAXPATHLEN); |
strlcat(file, "/", MAXPATHLEN); |
|
strlcat(file, MANDOC_IDX, MAXPATHLEN); |
|
|
/* Open the index recno(3) database. */ |
/* Open the index recno(3) database. */ |
|
|