Lines Matching refs:error

111             _zip_error_set(&za->error, ZIP_ER_MEMORY, errno);  in zip_archive_set_tempdir()
202 unsigned int flags, struct zip_error *error) in _zip_readcdir() argument
213 _zip_error_set(error, ZIP_ER_NOZIP, 0); in _zip_readcdir()
219 _zip_error_set(error, ZIP_ER_NOZIP, 0); in _zip_readcdir()
224 _zip_error_set(error, ZIP_ER_MULTIDISK, 0); in _zip_readcdir()
229 cd = _zip_read_eocd64(fp, eocd-EOCD64LOCLEN, buf, buf_offset, buflen, flags, error); in _zip_readcdir()
231 cd = _zip_read_eocd(eocd, buf, buf_offset, buflen, flags, error); in _zip_readcdir()
241 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_readcdir()
247 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_readcdir()
253 …if ((cd->comment=_zip_string_new(eocd+EOCDLEN, (zip_uint16_t)comment_len, ZIP_FL_ENC_GUESS, error)… in _zip_readcdir()
274 _zip_error_set(error, ZIP_ER_SEEK, errno); in _zip_readcdir()
276 _zip_error_set(error, ZIP_ER_NOZIP, 0); in _zip_readcdir()
286 || (_zip_dirent_read(cd->entry[i].orig, fp, bufp, &left, 0, error)) < 0) { in _zip_readcdir()
293 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_readcdir()
310 _zip_checkcons(FILE *fp, struct zip_cdir *cd, struct zip_error *error) in _zip_checkcons() argument
327 _zip_error_set(error, ZIP_ER_NOZIP, 0); in _zip_checkcons()
336 _zip_error_set(error, ZIP_ER_NOZIP, 0); in _zip_checkcons()
341 _zip_error_set(error, ZIP_ER_SEEK, errno); in _zip_checkcons()
345 if (_zip_dirent_read(&temp, fp, NULL, NULL, 1, error) == -1) in _zip_checkcons()
349 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_checkcons()
437 struct zip_error error; in _zip_allocate_new() local
439 if ((za=_zip_new(&error)) == NULL) { in _zip_allocate_new()
440 set_error(zep, &error, 0); in _zip_allocate_new()
599 unsigned int flags, struct zip_error *error) in _zip_read_eocd() argument
606 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_read_eocd()
618 _zip_error_set(error, ZIP_ER_NOZIP, 0); in _zip_read_eocd()
626 _zip_error_set(error, ZIP_ER_SEEK, EFBIG); in _zip_read_eocd()
632 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_read_eocd()
637 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_read_eocd()
641 if ((cd=_zip_cdir_new(nentry, error)) == NULL) in _zip_read_eocd()
654 off_t buf_offset, size_t buflen, unsigned int flags, struct zip_error *error) in _zip_read_eocd64() argument
667 _zip_error_set(error, ZIP_ER_SEEK, EFBIG); in _zip_read_eocd64()
672 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_read_eocd64()
680 _zip_error_set(error, ZIP_ER_SEEK, errno); in _zip_read_eocd64()
686 _zip_error_set(error, ZIP_ER_READ, errno); in _zip_read_eocd64()
691 _zip_error_set(error, ZIP_ER_READ, errno); in _zip_read_eocd64()
699 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_read_eocd64()
707 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_read_eocd64()
718 _zip_error_set(error, ZIP_ER_MULTIDISK, 0); in _zip_read_eocd64()
726 _zip_error_set(error, ZIP_ER_SEEK, EFBIG); in _zip_read_eocd64()
731 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_read_eocd64()
735 _zip_error_set(error, ZIP_ER_INCONS, 0); in _zip_read_eocd64()
739 if ((cd=_zip_cdir_new(nentry, error)) == NULL) in _zip_read_eocd64()