Subject: Re: endianness-agnostic getpwent()
To: None <tech-userlevel@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-userlevel
Date: 11/11/2000 13:51:22
Jaromír Dolecek <dolecek@ibis.cz>  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.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Sales, Support and Service:  http://www.wasabisystems.com/