Mail Archives: djgpp-workers/2001/11/02/14:13:11
Hello.
DJ Delorie wrote:
> Changing the size of struct stat will cause problems with pre-built
> objects, especially third party libraries.
How would we indicate with DJGPP's version that binary compatibility has
been broken? Would this kind of change be in DJGPP 3.x?
> *If* we decide to change the size of struct stat (I recommend
> against), let's add a few dummy fields at the end, so that we can
> "expand" it next time without changing its size.
Unix98 says that struct stat should contain st_blocks. This is the only
member of struct stat that we are currently missing, according to Unix98.
BTW I'm just stating facts. I understand and agree that preserving binary
compatibility is more important than this small gain in functionality,
especially as it's easy to work around not having st_blocks.
If we're not expanding the size of struct stat, I can make another patch
that at least fills in st_blksize correctly. In fact, if you ignore the
bits in the patch that refer to st_blocks (e.g. _get_blkcnt, calls to
_get_blkcnt and the extra field in the header), is the patch OK?
Thanks, bye, Rich =]
--
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/
- Raw text -