Lines Matching refs:error
73 int error; in zip_close() local
95 _zip_error_set(&za->error, ZIP_ER_REMOVE, errno); in zip_close()
109 _zip_error_set(&za->error, ZIP_ER_INTERNAL, 0); in zip_close()
134 _zip_error_set(&za->error, ZIP_ER_INTERNAL, 0); in zip_close()
144 _zip_error_set(&za->error, ZIP_ER_INTERNAL, 0); in zip_close()
162 error = 0; in zip_close()
176 _zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in zip_close()
177 error = 1; in zip_close()
184 error = 1; in zip_close()
200 error = 1; in zip_close()
207 error = 1; in zip_close()
220 if (_zip_dirent_write(de, out, ZIP_FL_LOCAL, &za->error) < 0) { in zip_close()
221 error = 1; in zip_close()
224 if ((offset=_zip_file_get_offset(za, i, &za->error)) == 0) { in zip_close()
225 error = 1; in zip_close()
229 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in zip_close()
230 error = 1; in zip_close()
233 if (copy_data(za->zp, de->comp_size, out, &za->error) < 0) { in zip_close()
234 error = 1; in zip_close()
240 if (!error) { in zip_close()
242 error = 1; in zip_close()
247 if (error) { in zip_close()
255 _zip_error_set(&za->error, ZIP_ER_CLOSE, errno); in zip_close()
267 _zip_error_set(&za->error, ZIP_ER_RENAME, errno); in zip_close()
301 _zip_error_set_from_source(&za->error, src); in add_data()
343 if ((is_zip64=_zip_dirent_write(de, ft, flags, &za->error)) < 0) in add_data()
353 _zip_error_set(&za->error, ZIP_ER_COMPNOTSUPP, 0); in add_data()
373 _zip_error_set(&za->error, ZIP_ER_COMPNOTSUPP, 0); in add_data()
413 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in add_data()
418 _zip_error_set(&za->error, ZIP_ER_INTERNAL, 0); in add_data()
434 if ((ret=_zip_dirent_write(de, ft, flags, &za->error)) < 0) in add_data()
439 _zip_error_set(&za->error, ZIP_ER_INTERNAL, 0); in add_data()
445 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in add_data()
455 copy_data(FILE *fs, zip_uint64_t len, FILE *ft, struct zip_error *error) in copy_data() argument
467 _zip_error_set(error, ZIP_ER_READ, errno); in copy_data()
471 _zip_error_set(error, ZIP_ER_EOF, 0); in copy_data()
477 _zip_error_set(error, ZIP_ER_WRITE, errno); in copy_data()
497 _zip_error_set_from_source(&za->error, src); in copy_source()
504 _zip_error_set(&za->error, ZIP_ER_WRITE, errno); in copy_source()
512 _zip_error_set_from_source(&za->error, src); in copy_source()
544 if (_zip_filerange_crc(out, cd_start, size, &crc, &za->error) < 0) in write_cdir()
550 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in write_cdir()
555 _zip_error_set(&za->error, ZIP_ER_WRITE, errno); in write_cdir()
600 _zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_create_temp_output()
607 _zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_create_temp_output()
614 _zip_error_set(&za->error, ZIP_ER_TMPOPEN, errno); in _zip_create_temp_output()
620 _zip_error_set(&za->error, ZIP_ER_TMPOPEN, errno); in _zip_create_temp_output()