aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-03-25 00:48:47 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-03-25 00:48:47 +0000
commitc2336ba724f3a13d653b987680af33b677292cd9 (patch)
treec3ecfc56706ad6c84fab89644cf1653b74ae4c10
parentc4e7ac11a1e0fe5ca598ad83d1f0ab4f7077f508 (diff)
downloadmandoc-c2336ba724f3a13d653b987680af33b677292cd9.tar.gz
mandoc-c2336ba724f3a13d653b987680af33b677292cd9.tar.zst
mandoc-c2336ba724f3a13d653b987680af33b677292cd9.zip
Some documentation nits.
-rw-r--r--apropos_db.c5
-rw-r--r--index.sgml11
-rw-r--r--whatis.18
3 files changed, 7 insertions, 17 deletions
diff --git a/apropos_db.c b/apropos_db.c
index 8aea771d..e51b6ef1 100644
--- a/apropos_db.c
+++ b/apropos_db.c
@@ -1,4 +1,4 @@
-/* $Id: apropos_db.c,v 1.31 2012/03/24 01:46:25 kristaps Exp $ */
+/* $Id: apropos_db.c,v 1.32 2012/03/25 00:48:47 kristaps Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -19,6 +19,8 @@
#include "config.h"
#endif
+#include <sys/param.h>
+
#include <assert.h>
#include <fcntl.h>
#include <regex.h>
@@ -426,6 +428,7 @@ apropos_search(int pathsz, char **paths, const struct opts *opts,
*/
for (i = 0; i < pathsz; i++) {
+ assert('/' == paths[i][0]);
if (chdir(paths[i]))
continue;
if (single_search(&tree, opts, expr, terms, mc, i))
diff --git a/index.sgml b/index.sgml
index 4386a9eb..b32b50b1 100644
--- a/index.sgml
+++ b/index.sgml
@@ -56,15 +56,6 @@
usually taken by existing utilities.
</P>
<H2>
- <A NAME="binaries">Binaries</A>
- </H2>
- <P>
- Binary archives consist of pre-compiled binaries, manuals, and other necessary files.
- Universal (Mac OS X) binaries are compiled for the PCC, i386, and x86_64 architectures.
- Windows binaries are compiled with <A CLASS="external" HREF="http://www.mingw.org">MingW</A> for the 32-bit (i686) and
- 64-bit (x86_64) architectures.
- </P>
- <H2>
Downstream
</H2>
<P>
@@ -357,7 +348,7 @@
<SMALL>
Copyright &#169; 2008&#8211;2011
<A CLASS="external" HREF="http://kristaps.bsd.lv">Kristaps Dzonsons</A>,
- $Date: 2012/03/24 02:07:32 $
+ $Date: 2012/03/25 00:48:47 $
</SMALL>
</P>
</BODY>
diff --git a/whatis.1 b/whatis.1
index 500b0b6c..94297e36 100644
--- a/whatis.1
+++ b/whatis.1
@@ -1,4 +1,4 @@
-.\" $Id: whatis.1,v 1.8 2012/03/24 01:54:43 kristaps Exp $
+.\" $Id: whatis.1,v 1.9 2012/03/25 00:48:47 kristaps Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: March 24 2012 $
+.Dd $Mdocdate: March 25 2012 $
.Dt WHATIS 1
.Os
.Sh NAME
@@ -36,10 +36,6 @@ utility searches databases generated by
for manuals containing the word
.Ar name
in their page name, ignoring case.
-It returns the header lines from all matching pages.
-You can then use the
-.Xr man 1
-command to get more information.
.Pp
By default,
.Nm