Lines Matching refs:argv
853 int imgdiff(int argc, const char** argv) { in imgdiff() argument
856 if (argc >= 2 && strcmp(argv[1], "-z") == 0) { in imgdiff()
859 ++argv; in imgdiff()
863 if (argc >= 3 && strcmp(argv[1], "-b") == 0) { in imgdiff()
864 android::base::unique_fd fd(open(argv[2], O_RDONLY)); in imgdiff()
866 printf("failed to open bonus file %s: %s\n", argv[2], strerror(errno)); in imgdiff()
871 printf("failed to stat bonus file %s: %s\n", argv[2], strerror(errno)); in imgdiff()
878 printf("failed to read bonus file %s: %s\n", argv[2], strerror(errno)); in imgdiff()
883 argv += 2; in imgdiff()
888 argv[0]); in imgdiff()
898 if (!ReadZip(argv[1], &src_chunks, &src_file, true)) { in imgdiff()
902 if (!ReadZip(argv[2], &tgt_chunks, &tgt_file, false)) { in imgdiff()
907 if (!ReadImage(argv[1], &src_chunks, &src_file)) { in imgdiff()
911 if (!ReadImage(argv[2], &tgt_chunks, &tgt_file)) { in imgdiff()
1059 android::base::unique_fd patch_fd(open(argv[3], O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR)); in imgdiff()
1061 printf("failed to open \"%s\": %s\n", argv[3], strerror(errno)); in imgdiff()
1067 printf("failed to write \"IMGDIFF2\" to \"%s\": %s\n", argv[3], strerror(errno)); in imgdiff()