Subject: Re: endianness-agnostic getpwent()
To: None <firstname.lastname@example.org>
From: Simon Burge <email@example.com>
Date: 11/11/2000 13:51:22
Jaromír Dolecek <firstname.lastname@example.org> wrote:
> > only (like mips family). not sure what we should do... is there
> > any chance to put endian indication into pwd.db and make password
> > library bi-endian?
> This would not be too hard if dbopen()/DB would provide a way to find
> out the endiannes of the database.
Better solutions would be to either use network byte order all keys, or
use ASCII keys instead of binary keys. The problem with any solution
is that you still need to keep native byte-order keys to support older
statically linked programs.
And yes, I agree that not knowing the endianness of the database is a
bit of a pain...
Simon Burge <email@example.com>
NetBSD Sales, Support and Service: http://www.wasabisystems.com/