Lines Matching refs:target_filename
40 const char* target_filename,
683 // - if the sha1 hash of <target_filename> is <target_sha1_string>,
691 // moves it to replace <target_filename>, and exits successfully.
692 // Note that if <source_filename> and <target_filename> are not the
694 // <target_filename> may be the string "-" to mean "the same as
705 const char* target_filename,
714 if (target_filename[0] == '-' &&
715 target_filename[1] == '\0') {
716 target_filename = source_filename;
733 if (LoadFileContents(target_filename, &source_file,
747 (target_filename != source_filename &&
748 strcmp(target_filename, source_filename) != 0)) {
793 source_filename, target_filename,
806 const char* target_filename,
818 // assume that target_filename (eg "/system/app/Foo.apk") is located
821 char target_fs[strlen(target_filename)+1];
822 char* slash = strchr(target_filename+1, '/');
824 int count = slash - target_filename;
825 strncpy(target_fs, target_filename, count);
828 strcpy(target_fs, target_filename);
835 if (strncmp(target_filename, "MTD:", 4) == 0 ||
836 strncmp(target_filename, "EMMC:", 5) == 0) {
922 if (strncmp(target_filename, "MTD:", 4) == 0 ||
923 strncmp(target_filename, "EMMC:", 5) == 0) {
937 outname = (char*)malloc(strlen(target_filename) + 10);
938 strcpy(outname, target_filename);
1004 if (WriteToPartition(msi.buffer, msi.pos, target_filename) != 0) {
1005 printf("write of patched data to %s failed\n", target_filename);
1023 if (rename(outname, target_filename) != 0) {
1025 target_filename, strerror(errno));