Lines Matching refs:header
116 static unsigned int tarCheckSum(PosixTarHeader *header) { in tarCheckSum() argument
118 char *p = (char *)header; in tarCheckSum()
121 header->chksum[i] = ' '; in tarCheckSum()
129 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
130 memset(header, 0, sizeof(PosixTarHeader)); in tarHeader()
131 strcpy(header->name, fileName); in tarHeader()
132 sprintf(header->mode, "%07o", 0600); in tarHeader()
133 sprintf(header->size, "%011llo", (long long unsigned int)fileSize); in tarHeader()
134 sprintf(header->mtime, "%011o", 0); in tarHeader()
135 header->typeflag = '0'; in tarHeader()
136 strcpy(header->magic, "ustar"); in tarHeader()
137 strcpy(header->version, " "); in tarHeader()
138 sprintf(header->chksum, "%06o", tarCheckSum(header)); in tarHeader()
139 return header; in tarHeader()
146 PosixTarHeader header; in createTarFile() local
178 &header, dirent->d_name, st.st_size), blockSize)) <= 0) { in createTarFile()