Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2004-02-10 09:32:05


On Mon, 09 Feb 2004 21:18:08 -0500, Beman Dawes wrote
> At 01:35 AM 2/9/2004, Jonathan Ultis wrote:
> >::exists is implemented using ::stat. The ::stat routine returns an
> >error on file sizes larger than 2 gigs in libc-2.3.2, and several
> >others. So, very large files never exists (). Using ::access seems
> to >fix the problem.
>
> Good grief! Are you saying that ::stat() cannot be used at all
> because it fails for all uses when file sizes are larger than 2 gigs?
> ...
> That would be a disaster.
> ...
>
> I don't mean to doubt your report, but it seems hard to believe that
> such a commonly used function could fail for large files. Is there
> more to the story?

Why? As I recall the history here, it has only been fairly recent that many
operating systems would support files larger than 2 gig. AFAIK Microsoft's
FAT filesystems are all limited to 2 gig file size limits. So it might be the
case that the majority of filesystems currently in use still have this limit....

Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk