Lines Matching refs:error
74 int i, j, error; in zip_close() local
100 _zip_error_set(&za->error, ZIP_ER_REMOVE, errno); in zip_close()
112 if ((cd=_zip_cdir_new(survivors, &za->error)) == NULL) { in zip_close()
124 &za->error); in zip_close()
163 error = 0; in zip_close()
197 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in zip_close()
198 error = 1; in zip_close()
202 &za->error) != 0) { in zip_close()
203 error = 1; in zip_close()
219 error = 1; in zip_close()
230 error = 1; in zip_close()
259 error = 1; in zip_close()
265 error = 1; in zip_close()
280 if (_zip_dirent_write(&de, out, 1, &za->error) < 0) { in zip_close()
281 error = 1; in zip_close()
286 &za->error) < 0) { in zip_close()
287 error = 1; in zip_close()
297 if (!error) { in zip_close()
299 error = 1; in zip_close()
306 if (error) { in zip_close()
315 _zip_error_set(&za->error, ZIP_ER_CLOSE, errno); in zip_close()
327 _zip_error_set(&za->error, ZIP_ER_RENAME, errno); in zip_close()
361 _zip_error_set_from_source(&za->error, src); in add_data()
367 if (_zip_dirent_write(de, ft, 1, &za->error) < 0) in add_data()
382 _zip_error_set(&za->error, ZIP_ER_COMPNOTSUPP, 0); in add_data()
417 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in add_data()
430 if (_zip_dirent_write(de, ft, 1, &za->error) < 0) in add_data()
434 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in add_data()
444 copy_data(FILE *fs, off_t len, FILE *ft, struct zip_error *error) in copy_data() argument
455 _zip_error_set(error, ZIP_ER_READ, errno); in copy_data()
459 _zip_error_set(error, ZIP_ER_EOF, 0); in copy_data()
464 _zip_error_set(error, ZIP_ER_WRITE, errno); in copy_data()
484 _zip_error_set_from_source(&za->error, src); in copy_source()
491 _zip_error_set(&za->error, ZIP_ER_WRITE, errno); in copy_source()
499 _zip_error_set_from_source(&za->error, src); in copy_source()
517 if (_zip_cdir_write(cd, out, &za->error) < 0) in write_cdir()
528 if (_zip_filerange_crc(out, cd->offset, cd->size, &crc, &za->error) < 0) in write_cdir()
534 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in write_cdir()
539 _zip_error_set(&za->error, ZIP_ER_WRITE, errno); in write_cdir()
553 src->ch_comment_len, &src->error); in _zip_cdir_set_comment()
560 src->cdir->comment_len, &src->error); in _zip_cdir_set_comment()
609 _zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_create_temp_output()
616 _zip_error_set(&za->error, ZIP_ER_TMPOPEN, errno); in _zip_create_temp_output()
622 _zip_error_set(&za->error, ZIP_ER_TMPOPEN, errno); in _zip_create_temp_output()