Lines Matching refs:ustar
48 } ustar; in tarsum() local
55 if ((ret = fread(&ustar, 1, sizeof(ustar), in)) < 0) in tarsum()
59 else if ((size_t)ret < sizeof(ustar)) in tarsum()
61 if (strcmp(ustar.magic, "ustar") == 0 && in tarsum()
62 ustar.version[0] == '0' && ustar.version[1] == '0') { in tarsum()
65 (int)sizeof(ustar.checksum), ustar.checksum); in tarsum()
66 memset(ustar.checksum, ' ', sizeof(ustar.checksum)); in tarsum()
67 for (sum = i = 0; i < sizeof(ustar); i++) in tarsum()
68 sum += ustar.bytes[i]; in tarsum()
70 sprintf(ustar.checksum, "%#lo", sum); in tarsum()
72 if ((ret = fwrite(&ustar, 1, sizeof(ustar), out)) < 0) in tarsum()
74 else if ((size_t)ret < sizeof(ustar)) in tarsum()
76 offset += sizeof(ustar); in tarsum()