Lines Matching refs:za
41 zip_unchange(zip_t *za, zip_uint64_t idx) in zip_unchange() argument
43 return _zip_unchange(za, idx, 0); in zip_unchange()
48 _zip_unchange(zip_t *za, zip_uint64_t idx, int allow_duplicates) in _zip_unchange() argument
53 if (idx >= za->nentry) { in _zip_unchange()
54 zip_error_set(&za->error, ZIP_ER_INVAL, 0); in _zip_unchange()
58 …if (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_F… in _zip_unchange()
59 if (za->entry[idx].orig != NULL) { in _zip_unchange()
60 if ((orig_name=_zip_get_name(za, idx, ZIP_FL_UNCHANGED, &za->error)) == NULL) { in _zip_unchange()
64 i = _zip_name_locate(za, orig_name, 0, NULL); in _zip_unchange()
66 zip_error_set(&za->error, ZIP_ER_EXISTS, 0); in _zip_unchange()
74 if ((changed_name=_zip_get_name(za, idx, 0, &za->error)) == NULL) { in _zip_unchange()
79 if (_zip_hash_add(za->names, (const zip_uint8_t *)orig_name, idx, 0, &za->error) == false) { in _zip_unchange()
83 if (_zip_hash_delete(za->names, (const zip_uint8_t *)changed_name, &za->error) == false) { in _zip_unchange()
84 _zip_hash_delete(za->names, (const zip_uint8_t *)orig_name, NULL); in _zip_unchange()
89 _zip_dirent_free(za->entry[idx].changes); in _zip_unchange()
90 za->entry[idx].changes = NULL; in _zip_unchange()
92 _zip_unchange_data(za->entry+idx); in _zip_unchange()