Lines Matching refs:st_size
305 size_t st_size; in parse_fip() local
314 st_size = st.st_size; in parse_fip()
318 if (ioctl(fileno(fp), BLKGETSIZE64, &st_size) == -1) in parse_fip()
322 buf = xmalloc(st_size, "failed to load file into memory"); in parse_fip()
323 if (fread(buf, 1, st_size, fp) != st_size) in parse_fip()
325 bufend = buf + st_size; in parse_fip()
328 if (st_size < sizeof(fip_toc_header_t)) in parse_fip()
365 if (toc_entry->size + toc_entry->offset_address > st_size) in parse_fip()
418 image->buffer = xmalloc(st.st_size, "failed to allocate image buffer"); in read_image_from_file()
419 if (fread(image->buffer, 1, st.st_size, fp) != st.st_size) in read_image_from_file()
421 image->toc_e.size = st.st_size; in read_image_from_file()