• Kenton Varda's avatar
    Fix filesystem API: Empty mmaps should succeed. · 97673947
    Kenton Varda authored
    I had a snarky comment in the Windows code being annoyed that mapping an empty file was documented to fail... but it turns out zero-length mappings fail on Linux, too. Also my work-around on Windows didn't work (but was never tested).
    
    This PR fixes both.
    
    This was prompted by @KubaO observing that `capnp compile` on an empty source file failed with a cryptic mmap error.
    
    Closes #854, @KubaO's attempt at fixing this, since the correct fix is in the filesystem API, not in the compiler.
    97673947
Name
Last commit
Last update
c++ Loading commit data...
doc Loading commit data...
highlighting Loading commit data...
security-advisories Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
RELEASE-PROCESS.md Loading commit data...
appveyor.yml Loading commit data...
mega-test-kenton-home.cfg Loading commit data...
mega-test-kenton-work.cfg Loading commit data...
mega-test-quick.cfg Loading commit data...
mega-test.py Loading commit data...
release.sh Loading commit data...
style-guide.md Loading commit data...
super-test.sh Loading commit data...