Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-03-25 18:05:13


Beman Dawes wrote:
> "Jonathan Turkanis" <technews_at_[hidden]> wrote in message
> news:d1v087$6r0$1_at_sea.gmane.org...
>
>>Hi All,
>>
>>Is there a reason to avoid providing a uniform interface to
>>implementation-defined standard library features?
>>
>>One of the most often heard complaints about the standard iostreams
>>library is
>>that there is no portable way to seek within a file stream using large
>>(64-bit)
>>offsets.
>
>
> I really want to see this fixed in the standard library. Any interest in
> getting a proposal together?
>
> It seems to me the first step is to fix the <cstdio> stuff inherited from
> the C library. An easy way to do that is to propose the addition of fseeko
> and ftello functions. They are already provided on Solaris, FreeBSD, HP-UX,
> NetBSD, OpenBSD, and HP/Compaq/DEC Alpha OSF/1. SGI IRIX offers the same
> functionality, but named fseek64() and ftell64(). Apparently Linux is the
> only weak spot in the POSIX world.

Hmm.. How is Linux the weak spot? It does provide lseek64 and fseeko
under certain conditions, and ftell64 is implementable as
lseek64(fd,0,SEEK_CUR).

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

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