Lines Matching refs:filename
55 char *filename, *filename_tmp; in prepare_output() local
70 filename = malloc(sizeof(char) * len); in prepare_output()
71 if (!filename) { in prepare_output()
78 filename_tmp = realloc(filename, sizeof(*filename) * len); in prepare_output()
81 free(filename); in prepare_output()
86 filename = filename_tmp; in prepare_output()
87 snprintf(filename, len - 1, "%s/benchmark_%s_%s_%li.log", in prepare_output()
90 snprintf(filename, len - 1, "%s/benchmark_%li.log", in prepare_output()
94 dprintf("logfilename: %s\n", filename); in prepare_output()
96 output = fopen(filename, "w+"); in prepare_output()
103 fprintf(stdout, "Logfile: %s\n", filename); in prepare_output()
107 free(filename); in prepare_output()