Ran the code through MSVC & Clang. It helped fine some bugs.
Implemented fallocate, and fixed ftruncate to handle mapped files by returning EBUSY.