From owner-freebsd-questions Sun Jun 6 12:13:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from donhm.calcasieu.com (tcnet02-11.austin.texas.net [209.99.40.74]) by hub.freebsd.org (Postfix) with ESMTP id 6D26415084 for ; Sun, 6 Jun 1999 12:13:01 -0700 (PDT) (envelope-from dread@texas.net) Received: from donhm.calcasieu.com (localhost.calcasieu.com [127.0.0.1]) by donhm.calcasieu.com (8.8.8/8.8.8) with ESMTP id OAA25837; Sun, 6 Jun 1999 14:12:23 -0500 (CDT) (envelope-from dread@texas.net) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199906060208.WAA16306@kot.ne.mediaone.net> Date: Sun, 06 Jun 1999 14:12:22 -0500 (CDT) From: Don Read To: Mikhail Teterin Subject: RE: dbm_* functions missing Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 06-Jun-99 Mikhail Teterin wrote: > Hello! > Hiya, > Is there a good reason FreeBSD's ndbm does not implement > > dbm_error Uh-oh, PR time. The source has it (/usr/src/lib/libc/db/hash/ndbm.c) but it's not declared. add to /usr/include/ndbm.h: int dbm_error(DBM *); int dbm_clearerr(DBM *); > dbm_pagfno ndbm is a wrapper over the 'db' package which deals with a single *.db file. There isn't a separate *.pag file (see README in src/lib/libc/db/hash). Alternative (don't even _think_ of doing any dups or writes on this): #undefine dbm_pagfno #define dbm_pagfno(a) dbm_dirfno(a) > dbm_rdonly no idea, do you use this often ? > ? gdbm has them... Thanks, > install gdbm from the ports ? Regards, --- Don Read dread@calcasieu.com EDP Manager dread@texas.net Calcasieu Lumber Co. Austin TX -- Meddle not in the affairs of dragons, for you are crunchy and taste good with ketchup. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message