🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1222

ndbm byte-order dependency

#1222
From: Mark W. Eichin
Date: Sun, 23 Oct 1988 15:17
22 lines
1610 bytes
Has anyone worked on/considered the problem of making NDBM database files
portable (ie. byte-order independent)? This could be done by
	1) a filter to change byte order between two databases
	2) a library change to swap bytes on one of the machine types

Especially in an environment like Athena, where we have numerous workstations
of opposite byte order (DEC VS2/VS2000 versus IBM APC/RT) it would be
convenient to create one set of files to be accessed by both (solution 2, with
the benefit of saving disk space).

Since conversion in the library might slow one machine type down, solution 1
would still be useful, since it should be faster than actually building two
full databases --- my personal application creates a database with many large
keys (38000 keys, average length 10 chars, max length 80 chars) and takes hours
on an 11/750 to local disk (and has never run to completion over NFS...  >6
hours though.)

If you have ideas, patches, or code, respond by email (I will summarize here.)

				Mark Eichin
			<eichin@athena.mit.edu>
		SIPB Member & Project Athena ``Watchmaker'' 
Technical Details
Message-ID: <7617@bloom-beacon.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!athena.mit.edu!eichin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!athena.mit.edu!eichin
From: eichin@athena.mit.edu (Mark W. Eichin)
Newsgroups: comp.bugs.4bsd
Subject: ndbm byte-order dependency
Summary: has anyone tried to deal with it?
Keywords: ndbm byte-order endian nfs shared
Message-ID: <7617@bloom-beacon.MIT.EDU>
Date: 23 Oct 88 15:17:49 GMT
Sender: daemon@bloom-beacon.MIT.EDU
Reply-To: eichin@athena.mit.edu (Mark W. Eichin)
Organization: Massachusetts Institute of Technology
Lines: 22