Lines Matching refs:za
42 _zip_set_name(zip_t *za, zip_uint64_t idx, const char *name, zip_flags_t flags) in _zip_set_name() argument
51 if (idx >= za->nentry) { in _zip_set_name()
52 zip_error_set(&za->error, ZIP_ER_INVAL, 0); in _zip_set_name()
56 if (ZIP_IS_RDONLY(za)) { in _zip_set_name()
57 zip_error_set(&za->error, ZIP_ER_RDONLY, 0); in _zip_set_name()
63 …if ((str=_zip_string_new((const zip_uint8_t *)name, (zip_uint16_t)strlen(name), flags, &za->error)… in _zip_set_name()
72 if ((i=_zip_name_locate(za, name, 0, NULL)) >= 0 && (zip_uint64_t)i != idx) { in _zip_set_name()
74 zip_error_set(&za->error, ZIP_ER_EXISTS, 0); in _zip_set_name()
84 e = za->entry+idx; in _zip_set_name()
93 zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_set_name()
99 …if ((new_name = _zip_string_get(same_as_orig ? e->orig->filename : str, NULL, 0, &za->error)) == N… in _zip_set_name()
115 if ((old_name = _zip_string_get(old_str, NULL, 0, &za->error)) == NULL) { in _zip_set_name()
124 if (_zip_hash_add(za->names, new_name, idx, 0, &za->error) == false) { in _zip_set_name()
129 _zip_hash_delete(za->names, old_name, NULL); in _zip_set_name()