solv_xfopen
extern FILE *solv_xfopen(const char *fn, const char *mode);
if (!(fp = solv_xfopen(out, "w")))
rfp = solv_xfopen(rdata, "r");