Lines Matching full:c_str
124 const char* partition = pieces[1].c_str();
132 size[i] = strtol(pieces[i*2+2].c_str(), NULL, 10);
137 sha1sum[i] = pieces[i*2+3].c_str();
222 if (ParseSha1(sha1sum[index[i]].c_str(), parsed_sha) != 0) {
223 printf("failed to parse sha1 %s in %s\n", sha1sum[index[i]].c_str(), filename);
231 size[index[i]], sha1sum[index[i]].c_str());
326 const char* partition = pieces[1].c_str();
662 printf("already %s\n", short_sha1(target_sha1).c_str());
741 if (LoadPartitionContents(fullname.c_str(), &source_file) == 0 &&
745 printf("already %s\n", short_sha1(target_sha1).c_str());
753 printf("expected: %s, found: %s\n", short_sha1(target_sha1).c_str(),
754 short_sha1(source_file.sha1).c_str());
844 size_t free_space = FreeSpaceForFile(target_fs.c_str());
884 size_t free_space = FreeSpaceForFile(target_fs.c_str());
899 output_fd = ota_open(tmp_target_filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_SYNC,
902 c_str(),
924 printf("failed to fsync file \"%s\" (%s)\n", tmp_target_filename.c_str(),
929 printf("failed to close file \"%s\" (%s)\n", tmp_target_filename.c_str(),
943 unlink(tmp_target_filename.c_str());
957 printf("now %s\n", short_sha1(target_sha1).c_str());
962 if (WriteToPartition(reinterpret_cast<const unsigned char*>(memory_sink_str.c_str()),
970 if (chmod(tmp_target_filename.c_str(), source_to_use->st.st_mode) != 0) {
971 printf("chmod of \"%s\" failed: %s\n", tmp_target_filename.c_str(), strerror(errno));
974 if (chown(tmp_target_filename.c_str(), source_to_use->st.st_uid, source_to_use->st.st_gid) != 0) {
975 printf("chown of \"%s\" failed: %s\n", tmp_target_filename.c_str(), strerror(errno));
980 if (rename(tmp_target_filename.c_str(), target_filename) != 0) {