Lines Matching refs:za

41 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags)  in zip_file_replace()  argument
43 if (idx >= za->nentry || source == NULL) { in zip_file_replace()
44 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_file_replace()
48 if (_zip_file_replace(za, idx, NULL, source, flags) == -1) in zip_file_replace()
60 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zi… in _zip_file_replace() argument
64 if (ZIP_IS_RDONLY(za)) { in _zip_file_replace()
65 _zip_error_set(&za->error, ZIP_ER_RDONLY, 0); in _zip_file_replace()
69 za_nentry_prev = za->nentry; in _zip_file_replace()
74 i = _zip_name_locate(za, name, flags, NULL); in _zip_file_replace()
78 if ((i=_zip_add_entry(za)) < 0) in _zip_file_replace()
84 if (name && _zip_set_name(za, idx, name, flags) != 0) { in _zip_file_replace()
85 if (za->nentry != za_nentry_prev) { in _zip_file_replace()
86 _zip_entry_finalize(za->entry+idx); in _zip_file_replace()
87 za->nentry = za_nentry_prev; in _zip_file_replace()
94 _zip_unchange_data(za->entry+idx); in _zip_file_replace()
96 …if (za->entry[idx].orig != NULL && (za->entry[idx].changes == NULL || (za->entry[idx].changes->cha… in _zip_file_replace()
97 if (za->entry[idx].changes == NULL) { in _zip_file_replace()
98 if ((za->entry[idx].changes=_zip_dirent_clone(za->entry[idx].orig)) == NULL) { in _zip_file_replace()
99 _zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_file_replace()
104 za->entry[idx].changes->comp_method = ZIP_CM_REPLACED_DEFAULT; in _zip_file_replace()
105 za->entry[idx].changes->changed |= ZIP_DIRENT_COMP_METHOD; in _zip_file_replace()
108 za->entry[idx].source = source; in _zip_file_replace()