Lines Matching defs:filesize
133 int fd, filesize, old_filesize;
165 filesize = read(fd, buf, st.st_size);
166 if (filesize != st.st_size) {
222 printf("%s: hdr_len=0x%x img_offset=0x%x img_len=0x%x crc=0x%04x fsz=0x%06x\n", infile, (int) hdr_len, (int) img_offset, (int) img_len, crc, filesize);
228 put_be_32(p+4, filesize);
235 if(write(fd, buf, filesize) != filesize) {
241 /* Check the crc and filesize fields in the file */
243 if((crc == old_crc) && (filesize == old_filesize)) {
244 printf("%s: NCD crc and filesize seem ok.\n", infile);