Lines Matching +refs:clang +refs:format +refs:buffer
29 static bool readErrorFile(char *buffer, const char *from);
98 bool lookforIn(char *lookfor, const char *format, pid_t child) {
99 char buffer[512];
101 sprintf(buffer, format, child);
102 bool gotOutput = readErrorFile(got, buffer);
104 printf("**** didn't get an output file %s to analyze!!??\n", buffer);
109 printf("didn't find '%s' in output file %s\n", lookfor, buffer);
112 unlink(buffer);
127 char buffer[512];
130 sprintf(buffer, "/tmp/errorfile_%d", getpid());
132 int fd = creat(buffer, 0777);
134 fprintf(stderr, "didn't open custom error file %s as 1, got %d\n", buffer, fd);
166 sprintf(buffer, "/tmp/errorfile_%d", child);
167 bool gotOutput = readErrorFile(got, buffer);
169 printf("**** didn't get an error file %s to analyze!!??\n", buffer);
174 printf("didn't find '%s' in error file %s\n", error, buffer);
177 unlink(buffer);
328 strcat(path, DoClang ? "clang++" : "g++-4.2");
331 strcat(path, DoClang ? "clang" : "gcc-4.2");
391 strcat(path, DoClang ? "-clang" : "-gcc");
583 printf(" -clang use the clang and clang++ compilers\n");
586 …printf(" <compilerpath> directory containing gcc-4.2 (or clang) that you wish to use to co…
651 else if (!strcmp(argv[1], "-clang")) {
792 static bool readErrorFile(char *buffer, const char *from) {
795 printf("didn't open %s, (might not have been created?)\n", buffer);
798 int count = read(fd, buffer, 512);
800 printf("read error on %s\n", buffer);
803 buffer[count-1] = 0; // zap newline