fdopen: don't rewind the file after creating the FILE* handle. Added
unit test for that.

4 files changed