Re: fopen() file size limitation

From: Rich Teer (rich.teer_at_rite-group.com)
Date: 11/21/03


Date: Fri, 21 Nov 2003 17:48:42 GMT

On Fri, 21 Nov 2003, Tommy wrote:

> Any work-around for opening files larger than 2GB using fopen() in stdio.h?
> fopen() will report "file size too large" when I open any file larger than
> 2^31 - 1 (around 2GB).

Which OS? Whatever, you must build your application so that
it is large file aware; i.e. pass -D_FILE_OFFSET_BITS=64 to
the compiler.

-- 
Rich Teer, SCNA, SCSA
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-online.net


Relevant Pages

  • Re: Somebody to compile me, plz!
    ... On Wed, 23 Jun 2004, jjsuterr wrote: ... Why don't you use gcc or Sun's compiler to compile it yourself? ... Rite Online Inc. ... Voice: +1 979-1638 ...
    (comp.sys.sun.misc)
  • Re: Greatest Concept Album, Vote Here:
    ... some dull patches and silly novelty songs. ... As for the longer tracks, ... his mature, golden-god voice. ... TOMMY gave Daltry the *courage* to explore his voice. ...
    (rec.music.beatles)
  • Re: Is Solaris most popular in production?
    ... Rich Teer, SCNA, SCSA, OpenSolaris CAB member ... Rite Online Inc. ... Voice: +1 979-1638 ...
    (comp.unix.solaris)
  • Re: OpenSolaris is OUT!
    ... Rich Teer, SCNA, SCSA, OpenSolaris CAB member ... Rite Online Inc. ... Voice: +1 979-1638 ...
    (comp.unix.solaris)
  • Re: What happens with ShowMeTV?
    ... Rich Teer, SCNA, SCSA, OpenSolaris CAB member ... Rite Online Inc. ... Voice: +1 979-1638 ...
    (comp.unix.solaris)