Re: File > 2gb

From: Andrew Gabriel (andrew_at_cucumber.demon.co.uk)
Date: 07/29/03

  • Next message: cc: "Re: File > 2gb"
    Date: 29 Jul 2003 15:10:13 GMT
    
    

    In article <qdvVa.48540$PD3.4511978@nnrp1.uunet.ca>,
            "cc" <ultraman@rogers.com> writes:
    > Hi there,
    > I compiled my program under sun 5.4 and ran it in 5.7, but stat call
    > failed with file > 2GB and returns error code 79. I did
    > se -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 to compile. I checked stat.h
    > in 5.4 and there is no stat64. Any idea to compile under 5.4 and make it
    > work on 5.7 and up with 2GB file? TIA

    Solaris 2.6 is the first release you can build largefile(5) aware apps.
    Prior to that, -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 won't have
    any effect.

    -- 
    Andrew Gabriel
    

  • Next message: cc: "Re: File > 2gb"