From owner-freebsd-questions@FreeBSD.ORG Tue Apr 6 00:51:49 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB7B41065670 for ; Tue, 6 Apr 2010 00:51:49 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 615748FC1A for ; Tue, 6 Apr 2010 00:51:48 +0000 (UTC) Received: by bwz8 with SMTP id 8so3396819bwz.3 for ; Mon, 05 Apr 2010 17:51:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.135.219 with HTTP; Mon, 5 Apr 2010 17:51:48 -0700 (PDT) X-Originating-IP: [93.203.29.237] In-Reply-To: <00210668-B946-42C5-87A2-70293E9263A6@mac.com> References: <5CBAB28E-839B-48D7-B2F4-75C284A419E1@mac.com> <00210668-B946-42C5-87A2-70293E9263A6@mac.com> Date: Tue, 6 Apr 2010 02:51:48 +0200 Received: by 10.204.133.146 with SMTP id f18mr7198130bkt.153.1270515108077; Mon, 05 Apr 2010 17:51:48 -0700 (PDT) Message-ID: From: "C. P. Ghost" To: Jim Sander Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: example C code for reading db hash files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 00:51:49 -0000 On Tue, Apr 6, 2010 at 2:24 AM, Jim Sander 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/