From owner-freebsd-questions@FreeBSD.ORG Tue Apr 6 00:25:06 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 71BCB106566B for ; Tue, 6 Apr 2010 00:25:06 +0000 (UTC) (envelope-from jimsander@mac.com) Received: from asmtpout014.mac.com (asmtpout014.mac.com [17.148.16.89]) by mx1.freebsd.org (Postfix) with ESMTP id 57ADA8FC13 for ; Tue, 6 Apr 2010 00:25:06 +0000 (UTC) MIME-version: 1.0 Received: from [192.168.15.101] ([76.106.175.11]) by asmtp014.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L0F007WEIHKIH00@asmtp014.mac.com> for freebsd-questions@freebsd.org; Mon, 05 Apr 2010 17:24:58 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1004050219 In-reply-to: References: <5CBAB28E-839B-48D7-B2F4-75C284A419E1@mac.com> Message-id: <00210668-B946-42C5-87A2-70293E9263A6@mac.com> Cc: freebsd-questions@freebsd.org From: Jim Sander Date: Mon, 05 Apr 2010 20:24:55 -0400 X-Mailer: Apple Mail (2.753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:25:06 -0000 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 ? On Apr 5, 2010, at 7:06 PM, C. P. Ghost wrote: > On Mon, Apr 5, 2010 at 10:28 PM, Jim Sander wrote: > Is there a handy C code reference or examples for db files? (google > has not been kind to me) I have a tied hash from Perl using > DB_File, and need read only access in a C program. > > You mean a reference... like this? > > http://www.oracle.com/technology/documentation/berkeley-db/db/ > index.html > > There are C, C++ and other bindings for the Berkeley DB, > each of which comes with some examples. > Use the bindings you feel most comfortable with. > > -cpghost. > > -- > Cordula's Web. http://www.cordula.ws/