Home
last modified time | relevance | path

Searched refs:paxHeader (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/libs/androidfw/
DBackupHelpers.cpp557 char* const paxHeader = buf + PAXHEADER_OFFSET; // use a different chunk of in write_tarfile() local
559 char* const paxData = paxHeader + PAXHEADER_SIZE; in write_tarfile()
655 memcpy(paxHeader, buf, 512); in write_tarfile()
658 memset(paxHeader, 0, 100); // rewrite the name area in write_tarfile()
659 snprintf(paxHeader, 100, "PaxHeader/%s", leaf.string()); in write_tarfile()
660 memset(paxHeader + 345, 0, 155); // rewrite the prefix area in write_tarfile()
661 strncpy(paxHeader + 345, prefix.string(), 155); in write_tarfile()
663 paxHeader[156] = 'x'; // mark it as a pax extended header in write_tarfile()
666 memset(paxHeader + 124, 0, 12); in write_tarfile()
667 snprintf(paxHeader + 124, 12, "%011o", (unsigned int)paxLen); in write_tarfile()
[all …]