Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DBackupHelpers.cpp550 char* paxHeader = buf + 512; // use a different chunk of it as separate scratch in write_tarfile() local
652 memcpy(paxHeader, buf, 512); in write_tarfile()
655 memset(paxHeader, 0, 100); // rewrite the name area in write_tarfile()
656 snprintf(paxHeader, 100, "PaxHeader/%s", leaf.string()); in write_tarfile()
657 memset(paxHeader + 345, 0, 155); // rewrite the prefix area in write_tarfile()
658 strncpy(paxHeader + 345, prefix.string(), 155); in write_tarfile()
660 paxHeader[156] = 'x'; // mark it as a pax extended header in write_tarfile()
663 memset(paxHeader + 124, 0, 12); in write_tarfile()
664 snprintf(paxHeader + 124, 12, "%011o", p - paxData); in write_tarfile()
667 calc_tar_checksum(paxHeader); in write_tarfile()
[all …]