Home | History | Annotate | Download | only in tests

Lines Matching refs:file_buf

118    char  *p, *m, *model_name, *file_buf;
121 /* Slurp contents of /proc/cpuinfo into FILE_BUF */
131 file_buf = malloc(file_buf_size + 1);
134 n = read(fh, file_buf, file_buf_size);
144 free(file_buf);
146 file_buf = malloc(num_bytes + 1);
147 n = read(fh, file_buf, num_bytes);
151 file_buf[num_bytes] = '\0';
156 for (p = file_buf; *p; ++p) {
188 free(file_buf);