bugGNUstep - Bugs: bug #42762, Large file support

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42762: Large file support

Submitted by:  Yavor Doganov <yavor>
Submitted on:  Sun 13 Jul 2014 02:05:46 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 25 Jul 2014 11:59:42 AM UTC, comment #1:

Thanks ... that seems to work fine.

Richard Frith-Macdonald <CaS>
Project Member
Sun 13 Jul 2014 02:05:46 PM UTC, original submission:

It seems that -[NSData initWithContentsOfFile:] (and +dataWithContentsOfFile:, -initWithContentsOfMappedFile:, etc as consequence) will fail with large files on 32bit systems.

The standard GNU way of dealing with this is to use gnulib which provides replacements for fseeko/ftello with all possible workarounds. Not doable currently, so the attached patch enables such support only on systems that have these functions available (most systems these days).

Unfortunately I was not able to test it as none of my machines has enough memory and I get (expected) NSMallocException...

Yavor Doganov <yavor>

 

Attached Files
file #31707:  lfs.patch added by yavor (5KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by yavor (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 25 Jul 2014 11:59:42 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 13 Jul 2014 02:05:46 PM UTCyavorAttached File-=>Added lfs.patch, #31707

    Back to the top


    Powered by Savane 3.1-cleanup1