aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit3c042f1c04abf0fec8866a305452f7fd2ac8639c (patch)
treea70710051aa68570973231dbad3e5af7771599a2 /mansearch.h
parentbaf73424c69a2aa19a4dbd317ca8b72d21c33c1b (diff)
downloadmandoc-3c042f1c04abf0fec8866a305452f7fd2ac8639c.tar.gz
mandoc-3c042f1c04abf0fec8866a305452f7fd2ac8639c.tar.zst
mandoc-3c042f1c04abf0fec8866a305452f7fd2ac8639c.zip
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mansearch.h b/mansearch.h
index 3644310b..6cc6f410 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -1,4 +1,4 @@
-/* $Id: mansearch.h,v 1.16 2014/08/17 03:24:47 schwarze Exp $ */
+/* $Id: mansearch.h,v 1.17 2014/09/01 22:45:53 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 */
};