128 |
struct lexgrog lg; |
struct lexgrog lg; |
129 |
char *manpage; |
char *manpage; |
130 |
struct mandata info, *exists; |
struct mandata info, *exists; |
|
struct nlist *in_cache; |
|
131 |
struct stat buf; |
struct stat buf; |
132 |
size_t len; |
size_t len; |
133 |
|
|
256 |
* clear the hash between calls. |
* clear the hash between calls. |
257 |
*/ |
*/ |
258 |
|
|
259 |
in_cache = hash_lookup (whatis_hash, ult, strlen (ult)); |
lg.whatis = xstrdup (hash_lookup (whatis_hash, ult, strlen (ult))); |
260 |
|
|
261 |
if (in_cache) { /* cache hit */ |
if (!lg.whatis) { /* cache miss */ |
|
lg.whatis = in_cache->defn ? xstrdup (in_cache->defn) : NULL; |
|
|
} else { /* cache miss */ |
|
262 |
/* go get the whatis info in its raw state */ |
/* go get the whatis info in its raw state */ |
263 |
#ifdef COMP_SRC |
#ifdef COMP_SRC |
264 |
/* if the nroff was compressed, an uncompressed version is |
/* if the nroff was compressed, an uncompressed version is |