Tweak the BufferedIO class to enable a memory-mapped file implementation
authorSimon Marlow <marlowsd@gmail.com>
Wed, 5 Aug 2009 13:40:36 +0000 (13:40 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 5 Aug 2009 13:40:36 +0000 (13:40 +0000)
commit7d39e10019df33f1a19d65b3c58c4d01a7dc8d30
tree63bbbdf04f29e694930a2c8f9a927fda76e400a6
parent2c7c50ca5e6f9bf1eebf70ba633c77027952edef
Tweak the BufferedIO class to enable a memory-mapped file implementation
We have to eliminate the assumption that an empty write buffer can be
constructed by setting the buffer pointers to zero: this isn't
necessarily the case when the buffer corresponds to a memory-mapped
file, or other in-memory device implementation.
GHC/IO/Buffer.hs
GHC/IO/BufferedIO.hs
GHC/IO/FD.hs
GHC/IO/Handle/Internals.hs
GHC/IO/Handle/Text.hs