Lines Matching refs:st
188 struct stat st; in ReadZip() local
189 if (stat(filename, &st) != 0) { in ReadZip()
194 unsigned char* img = malloc(st.st_size); in ReadZip()
196 if (fread(img, 1, st.st_size, f) != st.st_size) { in ReadZip()
206 for (i = st.st_size-20; i >= 0 && i > st.st_size - 65600; --i) { in ReadZip()
293 curr->len = st.st_size; in ReadZip()
304 while (pos < st.st_size) { in ReadZip()
352 curr->len = st.st_size - pos; in ReadZip()
378 struct stat st; in ReadImage() local
379 if (stat(filename, &st) != 0) { in ReadImage()
384 unsigned char* img = malloc(st.st_size + 4); in ReadImage()
386 if (fread(img, 1, st.st_size, f) != st.st_size) { in ReadImage()
396 memset(img+st.st_size, 0, 4); in ReadImage()
403 while (pos < st.st_size) { in ReadImage()
406 if (st.st_size - pos >= 4 && in ReadImage()
446 strm.avail_in = st.st_size - pos; in ReadImage()
472 curr->deflate_len = st.st_size - strm.avail_in - pos; in ReadImage()
515 for (curr->len = 0; curr->len < (st.st_size - pos); ++curr->len) { in ReadImage()
634 struct stat st; in MakePatch() local
635 if (stat(ptemp, &st) != 0) { in MakePatch()
641 unsigned char* data = malloc(st.st_size); in MakePatch()
643 if (tgt->type == CHUNK_NORMAL && tgt->len <= st.st_size) { in MakePatch()
651 *size = st.st_size; in MakePatch()
658 if (fread(data, 1, st.st_size, f) != st.st_size) { in MakePatch()
803 struct stat st; in main() local
804 if (stat(argv[2], &st) != 0) { in main()
808 bonus_size = st.st_size; in main()