Split error handling into separate branch
Current patch, mostly complete
Prefer flags instead of boolean arguments
Fix a couple of file-test fails on Mac
Add `getenv' wrappers (UTF-8 safety on Windows)
Small style fixes
Get rid of useless TR_DIR macro
Patch command-line args (UTF-8 safety on Windows)
Small indentation fix for r249fcf633f
Eliminate easy FILE* usage cases
Eliminate the rest of FILE* usages
Fix empty line reading corner case
Use correct flags when opening files for writing
Add file.c to Xcode project
Fix dirname/basename edge cases on Windows
Use O_CLOEXEC (inheritance is unlikely)
Make asserts on type sizes static
Remove "_t" suffix from names of struct types
Allow NULL buffer in read/write if size is 0
Remove residuals of rdfa29d9263