simplify return from afc_file_write_from_fd