bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

host byte order in gdbm


From: Xiaotao Wu
Subject: host byte order in gdbm
Date: Thu, 8 Nov 2001 22:55:21 -0500 (EST)

Hi,

I have an application using gdbm as its data storage. This application can
support Solaris, Linux and Windows.

The data stored under Solaris cannot be ported to Linux and Windows. But
the data stored under Linux and Windows can exchange with each other. The
error reported by gdbm is 'Bad magic number'.

I looked into the gdbm code and I noticed it's due to
Linux and Windows use host byte order but Solaris does not. And only
change the byte order of the magic number cannot work. I am just wondering
whether there is any existing solution to make the data stored under
different operating system can be exchanged.

Thank you and I am looking forward to your response!

Regards,

-Xiaotao

=========================================================
Name  : Xiaotao Wu
Email : address@hidden, address@hidden
URL   : http://www.cs.columbia.edu/~xiaotaow
Phone : (212)939-7020, (212)939-7133,  Fax: (801)751-0217
SIP   : sip:address@hidden
Office: Room 463, Mudd building, West 120th
=========================================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]