Date: Tue, 6 Apr 2010 02:51:48 +0200 From: "C. P. Ghost" <cpghost@cordula.ws> To: Jim Sander <jimsander@mac.com> Cc: freebsd-questions@freebsd.org Subject: Re: example C code for reading db hash files Message-ID: <o2id74eb87c1004051751w41456e45qf7b082611fcd3b24@mail.gmail.com> In-Reply-To: <00210668-B946-42C5-87A2-70293E9263A6@mac.com> References: <5CBAB28E-839B-48D7-B2F4-75C284A419E1@mac.com> <w2zd74eb87c1004051606ocd7de402je82828cbfc1ac27a@mail.gmail.com> <00210668-B946-42C5-87A2-70293E9263A6@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 6, 2010 at 2:24 AM, Jim Sander <jimsander@mac.com> wrote: > Thank you - but unfortunately, that doesn't help (it was the first place I > checked actually) - I assume because of historical changes, but possibly > because I'm missing something obvious. > > > http://www.oracle.com/technology/documentation/berkeley-db/db/api_reference/C/dbopen.html > vs. > man 3 dbopen > > Things are *completely* different. Is the "stock BSD" db.h different than > the Oracle db.h ? Yes, they are. According to /usr/src/lib/libc/db/README "This is version 1.85 of the Berkeley DB code." The BDB version on the Oracle site is A LOT younger than 1.85, and has a very different API _and_ .db file format. Before you decide which API to use, you should make sure that you're reading the right .db file. file(1) will tell you what kind of .db file it is. -cpghost. -- Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?o2id74eb87c1004051751w41456e45qf7b082611fcd3b24>