r22925: Sync read_and_X with 3.0.26 code (use setup_readX_header()).