Home | History | Annotate | Download | only in kati

Lines Matching defs:fp

646     FILE* fp = fopen(GetEnvScriptFilename().c_str(), "wb");
647 if (fp == NULL)
650 fprintf(fp, "#!/bin/sh\n");
651 fprintf(fp, "# Generated by kati %s\n", kGitVersion);
652 fprintf(fp, "\n");
657 fprintf(fp, "export '%s'='%s'\n", p.first.c_str(), val.c_str());
659 fprintf(fp, "unset '%s'\n", p.first.c_str());
663 fclose(fp);
665 fp = fopen(GetNinjaShellScriptFilename().c_str(), "wb");
666 if (fp == NULL)
669 fprintf(fp, "#!/bin/sh\n");
670 fprintf(fp, "# Generated by kati %s\n", kGitVersion);
671 fprintf(fp, "\n");
673 fprintf(fp, ". %s\n", GetEnvScriptFilename().c_str());
675 fprintf(fp, "exec ninja -f %s ", GetNinjaFilename().c_str());
677 fprintf(fp, "-j%d ", g_flags.remote_num_jobs);
679 fprintf(fp, "-j500 ");
681 fprintf(fp, "\"$@\"\n");
683 fclose(fp);
690 FILE* fp = fopen(GetStampTempFilename().c_str(), "wb");
691 CHECK(fp);
693 size_t r = fwrite(&start_time_, sizeof(start_time_), 1, fp);
698 DumpInt(fp, makefiles.size() + 1);
699 DumpString(fp, kati_binary_);
701 DumpString(fp, makefile);
704 DumpInt(fp, Evaluator::used_undefined_vars().size());
706 DumpString(fp, v.str());
709 DumpInt(fp, used_envs_.size());
711 DumpString(fp, p.first);
712 DumpString(fp, p.second);
716 DumpInt(fp, globs.size());
718 DumpString(fp, p.first);
723 DumpInt(fp, dirs.size());
725 DumpString(fp, dir);
728 DumpInt(fp, files.size());
730 DumpString(fp, file);
735 DumpInt(fp, crs.size());
737 DumpString(fp, cr->cmd);
738 DumpString(fp, cr->result);
741 DumpInt(fp, 0);
745 DumpInt(fp, 1);
753 DumpInt(fp, missing_dirs.size());
755 DumpString(fp, d);
758 DumpInt(fp, cr->find->read_dirs->size());
760 DumpString(fp, ConcatDir(cr->find->chdir, s));
764 DumpString(fp, orig_args);
766 fclose(fp);