Mail Archives: djgpp-workers/2001/07/12/06:20:28
On Thu, 12 Jul 2001, Martin Stromberg wrote:
> Eli said:
> > Since st_size's type is off_t, and off_t is a signed int, perhaps we
> > _should_ expect some trouble? ;-)
>
> Ok. But what should we do? (We need to do something, don't we?)
I'd begin by making sure that the reason is indeed the fact that st_size
is signed; what I said was just a hunch.
Specifically, if you write a test program which calls `stat' directly
and interprets st_size as an unsigned value, do you get the correct
result for a file larger than 2GB? (You could simply compile lstat.c
with -DTEST.)
If the answer is YES, then the change should be probably done in `ls'.
If not... well, we need another hunch.
- Raw text -