posix: Implement open-input-file.