Subject: Re: fortune makefiles incorrect ?
To: Simon Burge <simonb@netbsd.org>
From: Chris G. Demetriou <cgd@netbsd.org>
List: current-users
Date: 09/06/1999 18:32:07
Simon Burge <simonb@netbsd.org> writes:
> So how do we solve the problem of generating a file, in this particular
> case of having 64 bit data of a specific endianness?

Actually, if you're going to push that line of questioning, it's
worse: how can you get a 64-bit data type in a portable manner?  "you
can't."

However, that doesn't mean that you can't do it.  It's a simple
problem of converting data structures to disk.  it doesn't have to be
fast, or anything.  People have been outputting data of a specific
endianness, or specific file formats, for years, in portable manners,
without using the latest, greatest NetBSD features...

Do you really want me to write the code here to show you how to
portably output a 32-bit number in little-endian order or something,
using no NetBSD special features?



cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.