bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42762] Large file support


From: Yavor Doganov
Subject: [bug #42762] Large file support
Date: Sun, 13 Jul 2014 14:05:47 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?42762>

                 Summary: Large file support
                 Project: GNUstep
            Submitted by: yavor
            Submitted on: Sun 13 Jul 2014 05:05:46 PM EEST
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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...



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 13 Jul 2014 05:05:46 PM EEST  Name: lfs.patch  Size: 5kB   By: yavor

<http://savannah.gnu.org/bugs/download.php?file_id=31707>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42762>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]