summaryrefslogtreecommitdiffstats
path: root/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-09-01 22:45:53 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-09-01 22:45:53 +0000
commit34f785b90475baa4a0b2012afc259927b0484605 (patch)
tree672023130caf49797bf4f1aefc8daca9e9292329 /mansearch.h
parent24387bf29bff146c16b4c293b9c384cb99730d62 (diff)
downloadmandoc-34f785b90475baa4a0b2012afc259927b0484605.tar.gz
In man(1) mode, change to the right directory before starting the parser,
just like traditional man(1) does, such that .so links have a chance to work. After this point, we don't need the current directory for anything else before exit, so we don't need to worry about getting back and we can safely ignore failure.
Diffstat (limited to 'mansearch.h')
-rw-r--r--mansearch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mansearch.h b/mansearch.h
index d36173fd..80c9e6a7 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -79,6 +79,7 @@ struct manpage {
char *file; /* to be prefixed by manpath */
char *names; /* a list of names with sections */
char *output; /* user-defined additional output */
+ size_t ipath; /* number of the manpath */
int sec; /* section number, 10 means invalid */
int form; /* 0 == catpage */
};