Use -1 when opening anonymous mmap files or else we'll try to open stdout on most systems.