[parisc-linux] Include trouble
Paul Bame
bame@noam.fc.hp.com
Tue, 28 Nov 2000 12:27:09 -0700
= Hmm. Most 32 bit systems use "unsigned int" rather than "unsigned long".
I will be happy to change it back to unsigned int. The only reason
I used unsigned long is because it seems off_t wants to be, to a
first approximation, the word length of the machine, and 'long' does
that.
= Using "unsigned long" might cause problems with packages like libio.
= I know there is a problem if off_t is not the same as size_t.
What problem is that? I'm working on a proposal for the palinux
type sizes at the moment.
One dilema is that off_t is supposed to
be good for file offsets, which these days means it should be 64 bits.
size_t refers to the sizes of objects which are expected to fit in
RAM, so should be the word size of the machine. So there's a conflict
because one logic suggests 64-bit off_t and 32-bit size_t on 32-bit palinux,
but your statement suggests they should be the same size. Any ideas?
However I'm leaning towards leaning with the older 32-bit off_t because
we might not want to be the first ones to fix all the problems with
making it 64 bits on a 32-bit machine.
-P