delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/13/04:42:22

From: "Igor Bujna" <igor DOT bujna AT maxi-tip DOT cz>
Organization: Maxi-tip a.s.
To: djgpp AT delorie DOT com
Date: Mon, 13 Aug 2001 10:40:48 +0200
MIME-Version: 1.0
Subject: Proble with GDBM
Message-ID: <3B77AEB0.20035.869F0D@localhost>
X-Confirm-Reading-To: "Igor Bujna" <igor DOT bujna AT maxi-tip DOT cz>
X-pmrqc: 1
X-mailer: Pegasus Mail for Win32 (v3.12c)
X-Virus-Scanned: by AMaViS perl-11
Reply-To: djgpp AT delorie DOT com

--Message-Boundary-14107
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

Hi,
i have problem with function gdbm_open in gdbm-1.8.0.
When i use  GDBM_WRCREAT or GDBM_NEWDB flag and then i 
want put some data to file i get message "gdbm fatal: read error:".
This is my test.c file:
------------------------------
#include <gdbm.h>
#include <errno.h>
#include <stdio.h>
main ()
{
  GDBM_FILE dbf;
  datum key, data;
  int i;
  gdbm_error old_gdbm_errno;
  dbf = gdbm_open ("test", 512, GDBM_NEWDB, 0664, 0);
  key.dptr = "XXXXXXXX";
  key.dsize = strlen (key.dptr);
  data.dptr = "XXXXXXXXXXXXXXXXXX";
  data.dsize = strlen (data.dptr);
  i=gdbm_store(dbf, key, data, GDBM_REPLACE );
  if (dbf == NULL)
    fprintf (stderr, "!! Can't open \": %s / %s\n",
	     gdbm_strerror (gdbm_errno), sys_errlist[errno]);
  printf ("   %i   ", i);
  gdbm_close (dbf);
}
--------------------------------------------------------------------------------
I think problem somewhere when gdbm creating file,because
when i compile and run this file (test.c) on my linux is everything OK.
File test look OK.But when I run under DJGPP file test(dbf) look 
damage.
I send You this files in attachments.
Thank You

--Message-Boundary-14107
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  test_dos
     Date:  13 Aug 2001, 10:10
     Size:  1540 bytes.
     Type:  Unknown

--Message-Boundary-14107
Content-type: Application/Octet-stream; name="test_dos"; type=Unknown
Content-disposition: attachment; filename="test_dos"
Content-transfer-encoding: BASE64

zppXEwACAAAAAgAAAAIAAAcAAAAAAgAAFgAAAAAIAAA6AAAAAAAAAAAAAADgDQAAVTM4Nw0K
AAAARElSJS9iaW4vZW11Mzg3LmR4ZQArTEZOPXkAK1RFWE1GTUFJTj0lREpESVIlL3NoYXJl
L3RleG1mACtHTzMyU1RVQj0lREpESVIlL2Jpbi9zdHViaWZ5LmV4ZQArVEVSTT1hbnNpACtU
Wj0lREpESVIlL3pvbmVpbmZvL2V1cm9wZS9wcmFndWUADQpbYmlzb25dAEJJU09OX0hBSVJZ
PSVESkRJUiUvbGliL2Jpc29uLmhhaQBCSVNPTl9TSU1QTEU9JURKRElSJS9saWIvYmlzb24u
c2ltAA0KW2NwcF0AQ1BMVVNfSU5DTFVERV9QQVRIPSUvPjtDUExVU19JTkNMVURFX1BBVEgl
JURKRElSJS9sYW5nL2N4eDslREpESVIlL2luY2x1ZGUAQ19JTkNMVURFX1BBVEg9JS8+O0Nf
SU5DTFVERV9QQVRIJSVESkRJUiUvaW5jbHVkZQBPQkpDUExVU19JTkNMVURFX1BBVEg9JS8+
O09CSkNQTFVTX0lOQ0xVREVfUEFUSCUlREpESVIlL2luY2x1ZGU7JURKRElSJS9sYW5nL29i
amMAT0JKQ19JTkNMVURFX1BBVEg9JS8+O09CSkMABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAA
BAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQA
AAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAA
BAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQA
AAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAA
BAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQA
AAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAA
BAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQA
AAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAA
BAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQA
AAEAAAAAAgAAAAYAAA0KW2xzXQArTFNfQ09MT1JTPW5vPTAwOmZpPTAwOmRpPTM2OmxiPTM3
AAAAAAAAAAD/////OzAxOmV4PTMyOiouY21kPf////8udGFyPTAxOzMxOioudGd6/////zMx
OiouYXJqPTAxOzMxOir/////PTAxOzMxOioubHpoPTAxO/////8uemlwPTAxOzMxOiouej0w
/////zoqLlo9MDE7MzE6Ki5nej3/////MToqLmRlYj0wMTszMToqLv////8wMTszNDoqLmdp
Zj0wMTsz/////2JtcD0wMTszNDoqLnBwbT3/////NDoqLnRnYT0wMTszNDoqLv////8wMTsz
NDoqLnhwbT0wMTsz/////3RpZj0wMTszNDoqLm1wZz3/////NzoqLmF2aT0wMTszNzoqLv//
//8xOzM3OiouZGw9MDE7Mzc6/////zg6Ki5iYWs9MDg6AFtkaXL/////U19DT0xPUlM9bm89
MDA6Zv////86ZGk9MzY6bGI9Mzc7MDc6/////zA7MzM7MDE6ZXg9MzI6Ki7/////MzI6Ki50
YXI9MDE7MzE6Kv////89MDE7MzE6Ki5hcmo9MDE7/////y50YXo9MDE7MzE6Ki5semj/////
MzE6Ki56aXA9MDE7MzE6Ki56PTAxOzMxOiouWg==
--Message-Boundary-14107
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  test_linux
     Date:  13 Aug 2001, 9:55
     Size:  1536 bytes.
     Type:  Unknown

--Message-Boundary-14107
Content-type: Application/Octet-stream; name="test_linux"; type=Unknown
Content-disposition: attachment; filename="test_linux"
Content-transfer-encoding: BASE64

zppXEwACAAAAAgAAAAIAAAcAAAAAAgAAFgAAAAAIAAA6AAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA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P////8AAAAAAAAAAAAAAAAAAAAA/////wAA
AAAAAAAAAAAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAA
/////wAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAA
AAAAAAAA/////wAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAP////8AAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

--Message-Boundary-14107--

- Raw text -


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