Use standard fds of 0,1,2 rather than 1,2,3
Differentiate between file pointers and file descriptors.
Merge pull request #1408 from rfk/move-std-fds

Make stdin/stdout/stderr be 0/1/2 per standard posix convention