xosgbpb_write
extern os_error *xosgbpb_write(int, char const *, int, int *);
error = xosgbpb_write(rf->file, buf, size, &resid);