delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/03/12:00:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A535A71.EFFC4EAC@ece.gatech.edu>
Date: Wed, 03 Jan 2001 11:59:29 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: Jeff Lu <jklcom AT mindspring DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Is there a criteria on what can be used as a key for .PAG files
References: <NDBBIHPECLIGKCCLMACAAEPMCIAA DOT jklcom AT mindspring DOT com>

Just to cover the simple stuff first:

It seems that you are not using gdbm in its native mode.  "dbm_open" etc
are the ndbm-compatibility routines.  nbdm compatibility is broken on
FAT drives (and on Win9x/Me because they can only use FAT).  See
/usr/doc/Cygwin/cvs-1.11.0.README for more information (yes, I really do
mean the cvs package documentation).

However, if you are on NTFS, then: 

  make sure that you refer to database foo as "foo", not "foo.pag" or
"foo.dir".  The ndbm compatibility routine "dbm_open()" automatically
adds the appropriate ".pag" / ".dir" ending.

If these simple items do not explain / fix your failures, then you've
probably found a bug of some sort.  You'll have to use gdb and figure
out what's happening.

--Chuck

Jeff Lu wrote:
> 
> Hi,
> 
> I'm having problem reading the file after updating it with new info.  It
> seems to be related to the keys I use.  I get "gdbm fatal: read error"
> 
> I'm using -lgdbm to compile
> dbm_open, dbm_store, dbm_fetch etc.
> 
> For instance, when used DEPT1, DEPT2, DEPT3 etc. for keys for some records.
> The file is updated successfully.  I looked in the file all the data are
> there.  But I get gdbm fatal: read error when tried to read it.
> 
> However, when changed the keys to DP1, DP2, DP3 etc.  everything is fine.
> 
> Thanks
> -Jeff
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019