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