Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Jun 1999 14:12:22 -0500 (CDT)
From:      Don Read <dread@texas.net>
To:        Mikhail Teterin <mi@kot.ne.mediaone.net>
Cc:        questions@FreeBSD.ORG
Subject:   RE: dbm_* functions missing
Message-ID:  <XFMail.990606141222.dread@texas.net>
In-Reply-To: <199906060208.WAA16306@kot.ne.mediaone.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990606141222.dread>