Lines Matching refs:sum
94 tar_checksum(Archive_t* ap, int check, unsigned long sum)
153 if ((sum &= TAR_SUMASK) == u)
155 if (sum == (s &= TAR_SUMASK))
167 error(state.keepgoing ? 1 : 3, "%s: %s format checksum error (%ld != %ld or %ld)", ap->name, ap->format->name, sum, u, s);
169 error(state.keepgoing ? 1 : 3, "%s: %s format checksum error (%ld != %ld)", ap->name, ap->format->name, sum, u);
303 ap->sum -= 2;
318 ap->sum += 2;
665 ap->sum -= 2;
669 ap->sum += 3;
937 unsigned long sum;
947 if (!isdigit(hdr->chksum[0]) || !isdigit(hdr->chksum[1]) || !isdigit(hdr->chksum[2]) || !isdigit(hdr->chksum[3]) || !isdigit(hdr->chksum[4]) || !isdigit(hdr->chksum[5]) || !isdigit(hdr->chksum[6]) || tar_getoctal("chksum", hdr->chksum, 7, sizeof(sum), &sum) || !tar_checksum(ap, -1, sum))