From owner-freebsd-hackers Sun Jul 8 6:59:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from femail12.sdc1.sfba.home.com (femail12.sdc1.sfba.home.com [24.0.95.108]) by hub.freebsd.org (Postfix) with ESMTP id 1BBBC37B407; Sun, 8 Jul 2001 06:59:28 -0700 (PDT) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu ([24.12.197.197]) by femail12.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010708135927.WART1573.femail12.sdc1.sfba.home.com@math.missouri.edu>; Sun, 8 Jul 2001 06:59:27 -0700 Message-ID: <3B48673E.FE13F587@math.missouri.edu> Date: Sun, 08 Jul 2001 08:59:26 -0500 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG, freebsd-doc@freebsd.org Subject: dbopen man page Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have some questions about the dbopen(3) man page. 1. It seems to me that the list of includes should include something like #include otherwise the various flags for open(2) are not defined (like O_RDWR, etc), and these are needed for dbopen. 2. If I do something like this: db->get(db,&key,&data,0); db->del(db,&key,0); then after the del command, the values pointed to by data are no longer valid (that is *(data.data) will have a new value). With hindsight this is obvious, but it caught me out, and maybe a warning in the man page would be appropriate. (Or maybe it is there and I didn't see it.) 3. This is nothing to do with FreeBSD, but maybe someone here knows. In Red-Hat Linux the dbopen man page is the same as for FreeBSD, but in the include files dbopen is supposed to have an extra 2nd argument of type DBX*. Anyone know what this is? The programs I wrote for FreeBSD won't compile in Red-Hat Linux. -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message