You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Doug MacEachern <do...@opengroup.org> on 1997/07/22 03:13:29 UTC

Re: dbmmanage overhaul

Brian Behlendorf <br...@organic.com> wrote:

> 
> Well I personally liked that fact the old one was still perl 4 compatible,
> but maybe I'm the only one still in the dark ages with /usr/local/bin/perl
> = perl4.  At any rate I won't protest it.

I think you are the only one ;-)
 
> Since there are now a myriad of dbm file formats, is there any way to
> distinguish between them when presented with a file of unknown dbm type?
> I.e. if I have a file called passwd.db, how can I tell whether it's ndbm,
> gdbm, sdbm, etc?  Could we have that be an option in the dbmmanage program?

I'm not sure of the best (portable) way.  I'll think about it and look
into Marc's file(1) suggestion.

-Doug

> 
> 	Brian
> 
> 
> --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
> "Why not?" - TL           brian@organic.com - hyperreal.org - apache.org
> 

Re: dbmmanage overhaul

Posted by Marc Slemko <ma...@worldgate.com>.
On Mon, 21 Jul 1997, Doug MacEachern wrote:

> I'm not sure of the best (portable) way.  I'll think about it and look
> into Marc's file(1) suggestion.

Don't listen to me.  It is impossible to make file(1) work right on all
platforms.  Writing your own code to do the same thing would work, but...
but...

Sigh.  I say trash the dbms and make a new format.  <g>



Re: dbmmanage overhaul

Posted by Brian Behlendorf <br...@organic.com>.
At 09:13 PM 7/21/97 -0400, you wrote:
>Brian Behlendorf <br...@organic.com> wrote:
>> Since there are now a myriad of dbm file formats, is there any way to
>> distinguish between them when presented with a file of unknown dbm type?
>> I.e. if I have a file called passwd.db, how can I tell whether it's ndbm,
>> gdbm, sdbm, etc?  Could we have that be an option in the dbmmanage program?
>
>I'm not sure of the best (portable) way.  I'll think about it and look
>into Marc's file(1) suggestion.

Mainly I want to make sure no one tries to use ndbm routines on an sdbm
database, etc.  Abstracting those differences would be real nice.

	Brian


--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
"Why not?" - TL           brian@organic.com - hyperreal.org - apache.org