bugGNUstep - Bugs: bug #42762, Large file support

Group
 
 

bug #42762: Large file support

Submitter:  Yavor Doganov <yavor>
Submitted:  Sun 13 Jul 2014 02:05:46 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Thanks ... that seems to work fine.

Richard Frith-Macdonald <CaS>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

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
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by yavor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-07-25 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2014-07-13 yavor Attached File- Added lfs.patch, #31707

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code