[Top][All Lists]
[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 11:00:04 +1030 |
User-agent: |
KMail/1.7.2 |
On Wed, 9 Feb 2005 09:15, Stephane Fillod wrote:
> > > Looks like you will have to use ftello() and define _LARGEFILE_SOURCE.
> >
> > What is the define for?
>
> This is to turn the usual 32 bit off_t type into a 64 bit type.
> Under GNU/Linux, see ftello(3) and /usr/include/features.h
Weird..
Seems kind of strange to have ftell and ftello available if your off_t is the
same size as an int.
> > On my system (FreeBSD) ftello() is all you need.
>
> Lucky you. 64bit system owners are also on the lucky side.
This is a 32 bit system :)
> Better yet, they may even mmap the whole file :*)
Heh that is probably slower on a modern x86 system than read/write (so I am
told)
--
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
pgpx2s8lARQ5E.pgp
Description: PGP signature