[Patch draft] Fix libstdc++/8610
Paolo Carlini
pcarlini@suse.de
Mon Oct 20 22:02:00 GMT 2003
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?
IMPORTANT: don't do my same error: if you want to try the patch on
the attached testcase or whatelse of your like, remember to set
appropriate 'ulimit -f' in the shell! For instance, my bash 2.0.5b
has only 1 Gigabyte, by default!
Paolo.
//////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_8610_draft
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031020/a7eed79e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_8610_draft
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031020/a7eed79e/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test64.cc
Type: text/x-c++src
Size: 767 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031020/a7eed79e/attachment.bin>
More information about the Libstdc++
mailing list