Lines Matching refs:hi

293 free_holesdata(holes_info_t *hi)  in free_holesdata()  argument
297 for (hl = hi->holes_list; hl != NULL; hl = nhl) { in free_holesdata()
301 hi->holes_list = NULL; in free_holesdata()
303 if (hi->holesdata != NULL) in free_holesdata()
304 free(hi->holesdata); in free_holesdata()
305 hi->holesdata = NULL; in free_holesdata()
323 holes_info_t *hi; in get_holes_info() local
331 hi = e_zalloc(E_EXIT, sizeof (holes_info_t)); in get_holes_info()
332 hi->holes_list = hl; in get_holes_info()
352 hi->data_size = get_compressed_filesz(hl); in get_holes_info()
353 hi->holesdata = str; in get_holes_info()
354 hi->holesdata_sz = MIN_HOLES_HDRSIZE + len + 1; in get_holes_info()
356 return (hi); in get_holes_info()
370 holes_info_t *hi; in read_holes_header() local
373 hi = e_zalloc(E_EXIT, sizeof (holes_info_t)); in read_holes_header()
378 free(hi); in read_holes_header()
381 hi->holesdata_sz = (size_t)ull; in read_holes_header()
386 hi->orig_size = (off_t)ull; in read_holes_header()
389 if (hi->holesdata_sz > filesz || in read_holes_header()
390 hi->holesdata_sz <= MIN_HOLES_HDRSIZE) { in read_holes_header()
393 return (hi); in read_holes_header()
397 parse_holesdata(holes_info_t *hi, const char *str) in parse_holesdata() argument
404 hlp = &hi->holes_list; in parse_holesdata()
429 for (hl = hi->holes_list; hl != NULL; hl = hl->hl_next) { in parse_holesdata()
439 if (hi->orig_size != loff) { in parse_holesdata()
441 free_holesdata(hi); in parse_holesdata()
445 hi->data_size = get_compressed_filesz(hi->holes_list); in parse_holesdata()
451 free_holes_info(holes_info_t *hi) in free_holes_info() argument
453 free_holesdata(hi); in free_holes_info()
454 free(hi); in free_holes_info()