## Török Edwin ([email protected]):

> I think I got it:
>             off_t     st_size;    /* total size, in bytes */
> 
> The st_size member of the stat buffer is a signed value, so any file over 2GB 
> in size
> would be negative. stat() won't allow that so instead it returns an error 
> telling us
> we should use the stat64() call probably.

I don't have access to 32bit Linux machines right now, but I'm quite sure
defining _FILE_OFFSET_BITS=64 would help.

Simon, can you recompile the test program with
gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE x.c -o xtest
and test again?
I think configure sets _LARGEFILE_SOURCE, but forgets about
_FILE_OFFSET_BITS.

Regards,
Christoph

-- 
Spare Space
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to