Lines Matching refs:za

39 zip_file_replace(zip_t *za, zip_uint64_t idx, zip_source_t *source, zip_flags_t flags)  in zip_file_replace()  argument
41 if (idx >= za->nentry || source == NULL) { in zip_file_replace()
42 zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_file_replace()
46 if (_zip_file_replace(za, idx, NULL, source, flags) == -1) in zip_file_replace()
57 _zip_file_replace(zip_t *za, zip_uint64_t idx, const char *name, zip_source_t *source, zip_flags_t … in _zip_file_replace() argument
61 if (ZIP_IS_RDONLY(za)) { in _zip_file_replace()
62 zip_error_set(&za->error, ZIP_ER_RDONLY, 0); in _zip_file_replace()
66 za_nentry_prev = za->nentry; in _zip_file_replace()
71 i = _zip_name_locate(za, name, flags, NULL); in _zip_file_replace()
75 if ((i=_zip_add_entry(za)) < 0) in _zip_file_replace()
81 if (name && _zip_set_name(za, idx, name, flags) != 0) { in _zip_file_replace()
82 if (za->nentry != za_nentry_prev) { in _zip_file_replace()
83 _zip_entry_finalize(za->entry+idx); in _zip_file_replace()
84 za->nentry = za_nentry_prev; in _zip_file_replace()
91 _zip_unchange_data(za->entry+idx); in _zip_file_replace()
93 …if (za->entry[idx].orig != NULL && (za->entry[idx].changes == NULL || (za->entry[idx].changes->cha… in _zip_file_replace()
94 if (za->entry[idx].changes == NULL) { in _zip_file_replace()
95 if ((za->entry[idx].changes=_zip_dirent_clone(za->entry[idx].orig)) == NULL) { in _zip_file_replace()
96 zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_file_replace()
101 za->entry[idx].changes->comp_method = ZIP_CM_REPLACED_DEFAULT; in _zip_file_replace()
102 za->entry[idx].changes->changed |= ZIP_DIRENT_COMP_METHOD; in _zip_file_replace()
105 za->entry[idx].source = source; in _zip_file_replace()