From 8adeb23f44e116bab3711839074b351405efed4b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 20 Nov 2011 15:43:14 +0000 Subject: Integrate a moderately-patched version of schwarze@'s support for multiple directories containing mandocdb(8) databases. Some changes follow: (1) don't support -M yet; (2) fall back to cwd if no prior manpath has been specified; (3) resolve manpages using realpath() to prevent consecutive chdir()'s over relative paths; (4) note where further error-reporting is required; (5) fix leaking memory on exit in several cases. --- apropos_db.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apropos_db.h') diff --git a/apropos_db.h b/apropos_db.h index 9151c959..ce6d96f9 100644 --- a/apropos_db.h +++ b/apropos_db.h @@ -1,4 +1,4 @@ -/* $Id: apropos_db.h,v 1.5 2011/11/18 07:02:19 kristaps Exp $ */ +/* $Id: apropos_db.h,v 1.6 2011/11/20 15:43:14 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -35,7 +35,7 @@ __BEGIN_DECLS struct expr; -int apropos_search(const struct opts *, +int apropos_search(int, char **, const struct opts *, const struct expr *, size_t, void *, void (*)(struct res *, size_t, void *)); struct expr *exprcomp(int, char *[], size_t *); -- cgit v1.2.3-56-ge451