diff options
-rw-r--r-- | apropos_db.c | 5 | ||||
-rw-r--r-- | index.sgml | 11 | ||||
-rw-r--r-- | whatis.1 | 8 |
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)) @@ -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 © 2008–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> @@ -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 |