improved predicate for FILE and io_file_pvt. first attempt at fdopen