aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apropos_db.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-03-23 05:07:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-03-23 05:07:35 +0000
commit960d5317445c2b6bc7e9edaa1855111033054567 (patch)
tree386eaba4641f69311141f5e2b61fd172dfacf6b0 /apropos_db.c
parent7a4183d88d236d7852e7bc490e8fe80d7dd4c9be (diff)
downloadmandoc-960d5317445c2b6bc7e9edaa1855111033054567.tar.gz
mandoc-960d5317445c2b6bc7e9edaa1855111033054567.tar.zst
mandoc-960d5317445c2b6bc7e9edaa1855111033054567.zip
Merge some/most of schwarze@'s OpenBSD changes into mandoc: many more
warnings about grokking manpages in their respective directories. DO NOT, however, import his temporary-file routines (I don't plan on staying with a recno/btree split) nor the realpath() routines, which destroy relative path-ness. Also pull in the lorder bits. There are some changes I started to make then stopped relating to reporting errors in the correct directories. I'll clean this up in subsequent commits. This puts us more or less on parity with OpenBSD.
Diffstat (limited to 'apropos_db.c')
-rw-r--r--apropos_db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apropos_db.c b/apropos_db.c
index 477b36dd..51c32b67 100644
--- a/apropos_db.c
+++ b/apropos_db.c
@@ -1,4 +1,4 @@
-/* $Id: apropos_db.c,v 1.28 2011/12/25 14:58:39 schwarze Exp $ */
+/* $Id: apropos_db.c,v 1.29 2012/03/23 05:07:35 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -153,6 +153,7 @@ btree_open(void)
DB *db;
memset(&info, 0, sizeof(BTREEINFO));
+ info.lorder = 4321;
info.flags = R_DUP;
db = dbopen(MANDOC_DB, O_RDONLY, 0, DB_BTREE, &info);