[commit: ghc] master: Remove MAX_PATH restrictions from RTS, I/O manager and various utilities (4de585a)

git at git.haskell.org git at git.haskell.org
Sat Mar 31 09:12:14 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4de585a5c1ac3edc2914cebcac1753b514051a89/ghc

>---------------------------------------------------------------

commit 4de585a5c1ac3edc2914cebcac1753b514051a89
Author: Tamar Christina <tamar at zhox.com>
Date:   Thu Mar 29 14:22:09 2018 +0100

    Remove MAX_PATH restrictions from RTS, I/O manager and various utilities
    
    Summary:
    This shims out fopen and sopen so that they use modern APIs under the hood
    along with namespaced paths.
    
    This lifts the MAX_PATH restrictions from Haskell programs and makes the new
    limit ~32k.
    
    There are only some slight caveats that have been documented.
    
    Some utilities have not been upgraded such as lndir, since all these things are
    different cabal packages I have been forced to copy the source in different places
    which is less than ideal. But it's the only way to keep sdist working.
    
    Test Plan: ./validate
    
    Reviewers: hvr, bgamari, erikd, simonmar
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie, carter
    
    GHC Trac Issues: #10822
    
    Differential Revision: https://phabricator.haskell.org/D4416


>---------------------------------------------------------------

4de585a5c1ac3edc2914cebcac1753b514051a89
 .gitignore                       |   5 +
 configure.ac                     |   9 ++
 docs/users_guide/8.6.1-notes.rst |  48 ++++++-
 ghc.mk                           |  10 ++
 libraries/base/base.cabal        |   2 +
 libraries/base/include/HsBase.h  |  16 ++-
 rts/Hpc.c                        |   5 +-
 rts/Linker.c                     |   3 +-
 rts/PathUtils.h                  |   2 +-
 rts/ProfHeap.c                   |   3 +-
 rts/Profiling.c                  |   5 +-
 rts/RtsFlags.c                   |   6 +-
 rts/RtsSymbols.c                 |   1 +
 rts/eventlog/EventLogWriter.c    |   3 +-
 rts/fs_rts.h                     |  15 ++
 rts/ghc.mk                       |   2 +-
 rts/linker/LoadArchive.c         |   1 +
 rts/linker/PEi386.c              |   3 +
 rts/rts.cabal.in                 |   3 +
 utils/fs/README                  |   4 +
 utils/fs/fs.c                    | 293 +++++++++++++++++++++++++++++++++++++++
 utils/fs/fs.h                    |  36 +++++
 utils/lndir/lndir.c              |   5 +-
 utils/unlit/ghc.mk               |   2 +-
 utils/unlit/unlit.c              |   5 +-
 utils/unlit/unlit.cabal          |   3 +-
 26 files changed, 469 insertions(+), 21 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 4de585a5c1ac3edc2914cebcac1753b514051a89


More information about the ghc-commits mailing list