discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] fseek cont: reading file position beyond 32 bits


From: Daniel O'Connor
Subject: Re: [Discuss-gnuradio] fseek cont: reading file position beyond 32 bits
Date: Wed, 9 Feb 2005 09:02:54 +1030
User-agent: KMail/1.7.1

On Wed, 9 Feb 2005 08:33, Stephane Fillod wrote:
> On Tue, Feb 08, 2005 at 04:21:48PM -0500, cswiger wrote:
> > Hi - Not a big issue, I'm experiment with 'ftell' to read the
> > current position in a big file, it would be nice to know 'where'
> > in a 1.5 hour recording we are listening to for later reference.
> > pos=ftell(*fp) works as expected, but only up to 2^32/2. It
> > appears to be a limitation in ftell(), as returning "long long"
> > and pre-dividing by d_itemsize still hit the same barrier -
> > returning "long long" made no difference and pos=ftell(*fp)/d_itemsize
> > returns errors at the 2^32/2/4 (float data in this case).
> >
> > Any ideas? Again, not a showstopper. Current data file is 13Gb.
>
> Looks like you will have to use ftello() and define _LARGEFILE_SOURCE.

What is the define for?
On my system (FreeBSD) ftello() is all you need.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: pgpW0nlzZQBiC.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]