This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 64 bit I/O functions (such as stat/ftruncate)


On Thu, 06 Dec 2007 12:15:45 -0800
Brian Dessent <brian@dessent.net> wrote:

> John Gateley wrote:
> 
> > I'm looking for 64 bit I/O functions, such as ftruncate or
> > stat/fstat/lstat. Some functions exist in 64 bit versions
> > (such as lseek64), but for others I couldn't find anything.
> > This is using g++ on linux.
> 
> Normally you don't call the 64 bit versions explicitly, you just add
> -D_FILE_OFFSET_BITS=64 to CPPFLAGS and you get the large-file aware
> version of all interfaces without the 64 suffix.
> ...

Thanks very much...

j

-- 
John Gateley <gateley@jriver.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]