Lines Matching defs:tmp_stat
105 struct stat tmp_stat;
122 if (stat(WAPI_TGZ_TMP_FILE, &tmp_stat) ||
128 if ((tmp_stat.st_size + sizeof(wapi_mtd_hdr_t)) > mtd_info.size || tmp_stat.st_size == 0) {
134 if ((buf = malloc(tmp_stat.st_size)) == NULL) {
145 if (fread(buf, 1, tmp_stat.st_size, fp) != tmp_stat.st_size) {
155 mtd_hdr.len = tmp_stat.st_size;
156 mtd_hdr.checksum = wapi_checksum(buf, tmp_stat.st_size);
162 write(mtd_fd, buf, tmp_stat.st_size) != tmp_stat.st_size) {