Lines Matching refs:idx
41 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source) in zip_replace() argument
43 if (idx >= za->nentry || source == NULL) { in zip_replace()
48 if (_zip_replace(za, idx, NULL, source) == -1) in zip_replace()
60 _zip_replace(struct zip *za, zip_uint64_t idx, const char *name, in _zip_replace() argument
68 if (idx == ZIP_UINT64_MAX) { in _zip_replace()
72 idx = za->nentry - 1; in _zip_replace()
75 _zip_unchange_data(za->entry+idx); in _zip_replace()
77 if (name && _zip_set_name(za, idx, name) != 0) in _zip_replace()
80 za->entry[idx].state = ((za->cdir == NULL || idx >= za->cdir->nentry) in _zip_replace()
82 za->entry[idx].source = source; in _zip_replace()
84 return idx; in _zip_replace()