Home | History | Annotate | Download | only in BlocksRuntime

Lines Matching refs:buffer

22 bool readfile(char *buffer, const char *from) {
25 int count = read(fd, buffer, 512);
27 buffer[count] = 0; // zap newline
49 char buffer[512];
52 sprintf(buffer, "/tmp/errorfile_%d", getpid());
54 int fd = creat(buffer, 0777);
56 fprintf(stderr, "didn't open custom error file %s as 1, got %d\n", buffer, fd);
79 sprintf(buffer, "/tmp/errorfile_%d", child);
85 bool gotOutput = readfile(got, buffer);
94 printf("didn't find contents of %s in %s\n", errorfile, buffer);
99 printf("errorfile %s and output %s inconsistent\n", errorfile, buffer);
103 unlink(buffer);