[Patch draft] Fix libstdc++/8610
Andreas Jaeger
aj@suse.de
Tue Oct 21 06:16:00 GMT 2003
Paolo Carlini <pcarlini@suse.de> writes:
> Hi!
>
> So, here comes my first draft. Everything seems to work :), but I
> encourage your feedback for refining it. For instance, perhaps I'm
> being naive in checking if a value passed to 'lseek' doesn't
> overflow off_t like this:
>
> if (__off != static_cast<off_t>(__off))
>
> ???
> It works, but probably we can do better...
>
> Also, is it safe to assume that a libc making available lseek64
> does also provide fopen64?
For both you need to define -D_LARGEFILE_SOURCE64 on glibc, otherwise
the header will not make the prototypes visible. I don't think this
is done yet and therefore I expect that you get warnings that there's
no prototype for these functions...
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031021/af18c62c/attachment.sig>
More information about the Libstdc++
mailing list