Lines Matching defs:target_filename
41 const char* target_filename,
688 // - if the sha1 hash of <target_filename> is <target_sha1_string>,
696 // moves it to replace <target_filename>, and exits successfully.
697 // Note that if <source_filename> and <target_filename> are not the
699 // <target_filename> may be the string "-" to mean "the same as
710 const char* target_filename,
719 if (target_filename[0] == '-' &&
720 target_filename[1] == '\0') {
721 target_filename = source_filename;
738 if (LoadFileContents(target_filename, &source_file) == 0) {
751 (target_filename != source_filename &&
752 strcmp(target_filename, source_filename) != 0)) {
795 source_filename, target_filename,
808 const char* target_filename,
820 // assume that target_filename (eg "/system/app/Foo.apk") is located
823 char target_fs[strlen(target_filename)+1];
824 char* slash = strchr(target_filename+1, '/');
826 int count = slash - target_filename;
827 strncpy(target_fs, target_filename, count);
830 strcpy(target_fs, target_filename);
837 if (strncmp(target_filename, "MTD:", 4) == 0 ||
838 strncmp(target_filename, "EMMC:", 5) == 0) {
924 if (strncmp(target_filename, "MTD:", 4) == 0 ||
925 strncmp(target_filename, "EMMC:", 5) == 0) {
939 outname = (char*)malloc(strlen(target_filename) + 10);
940 strcpy(outname, target_filename);
1013 if (WriteToPartition(msi.buffer, msi.pos, target_filename) != 0) {
1014 printf("write of patched data to %s failed\n", target_filename);
1032 if (rename(outname, target_filename) != 0) {
1034 target_filename, strerror(errno));