Lines Matching refs:error
59 #error do not know safe values for umask, please report this
68 zip_error_t error; /* last error information */ member
86 static int _zip_fseek_u(FILE *f, zip_uint64_t offset, int whence, zip_error_t *error);
87 static int _zip_fseek(FILE *f, zip_int64_t offset, int whence, zip_error_t *error);
96 return zip_source_filep_create(file, start, len, &za->error); in zip_source_filep()
101 zip_source_filep_create(FILE *file, zip_uint64_t start, zip_int64_t length, zip_error_t *error) in zip_source_filep_create() argument
104 zip_error_set(error, ZIP_ER_INVAL, 0); in zip_source_filep_create()
108 return _zip_source_file_or_p(NULL, file, start, length, NULL, error); in zip_source_filep_create()
113 … *fname, FILE *file, zip_uint64_t start, zip_int64_t len, const zip_stat_t *st, zip_error_t *error) in _zip_source_file_or_p() argument
119 zip_error_set(error, ZIP_ER_INVAL, 0); in _zip_source_file_or_p()
124 zip_error_set(error, ZIP_ER_MEMORY, 0); in _zip_source_file_or_p()
131 zip_error_set(error, ZIP_ER_MEMORY, 0); in _zip_source_file_or_p()
151 zip_error_init(&ctx->error); in _zip_source_file_or_p()
165 if ((zs=zip_source_function_create(read_file, ctx, error)) == NULL) { in _zip_source_file_or_p()
184 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0); in create_temp_output()
191 zip_error_set(&ctx->error, ZIP_ER_TMPOPEN, errno); in create_temp_output()
199 zip_error_set(&ctx->error, ZIP_ER_TMPOPEN, errno); in create_temp_output()
235 zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0); in read_file()
245 zip_error_set(&ctx->error, ZIP_ER_WRITE, errno); in read_file()
249 zip_error_set(&ctx->error, ZIP_ER_RENAME, errno); in read_file()
269 return zip_error_to_data(&ctx->error, data, len); in read_file()
282 zip_error_set(&ctx->error, ZIP_ER_OPEN, errno); in read_file()
288 if (_zip_fseek_u(ctx->f, ctx->start, SEEK_SET, &ctx->error) < 0) { in read_file()
311 zip_error_set(&ctx->error, ZIP_ER_READ, errno); in read_file()
321 zip_error_set(&ctx->error, ZIP_ER_REMOVE, errno); in read_file()
339 …zip_source_args_seek_t *args = ZIP_SOURCE_GET_ARGS(zip_source_args_seek_t, data, len, &ctx->error); in read_file()
353 if (_zip_fseek(ctx->f, args->offset, SEEK_END, &ctx->error) < 0) { in read_file()
357 zip_error_set(&ctx->error, ZIP_ER_SEEK, errno); in read_file()
371 zip_error_set(&ctx->error, ZIP_ER_INVAL, 0); in read_file()
376 zip_error_set(&ctx->error, ZIP_ER_INVAL, 0); in read_file()
383 if (_zip_fseek_u(ctx->f, ctx->current, SEEK_SET, &ctx->error) < 0) { in read_file()
393 args = ZIP_SOURCE_GET_ARGS(zip_source_args_seek_t, data, len, &ctx->error); in read_file()
398 if (_zip_fseek(ctx->fout, args->offset, args->whence, &ctx->error) < 0) { in read_file()
421 zip_error_set(&ctx->error, ZIP_ER_READ, errno); in read_file()
453 zip_error_set(&ctx->error, ZIP_ER_TELL, errno); in read_file()
466 zip_error_set(&ctx->error, ZIP_ER_WRITE, errno); in read_file()
474 zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0); in read_file()
481 _zip_fseek_u(FILE *f, zip_uint64_t offset, int whence, zip_error_t *error) in _zip_fseek_u() argument
484 zip_error_set(error, ZIP_ER_SEEK, EOVERFLOW); in _zip_fseek_u()
487 return _zip_fseek(f, (zip_int64_t)offset, whence, error); in _zip_fseek_u()
492 _zip_fseek(FILE *f, zip_int64_t offset, int whence, zip_error_t *error) in _zip_fseek() argument
495 zip_error_set(error, ZIP_ER_SEEK, EOVERFLOW); in _zip_fseek()
499 zip_error_set(error, ZIP_ER_SEEK, errno); in _zip_fseek()