Lines Matching refs:buf
265 char *buf; in read_file() local
278 buf = malloc(st.st_size + 1); in read_file()
279 if (!buf) { in read_file()
283 if (read(fd, buf, st.st_size) != st.st_size) { in read_file()
287 buf[st.st_size] = '\0'; in read_file()
290 return buf; in read_file()
311 void *buf; in parse_dep_file() local
361 buf = read_file(m); in parse_dep_file()
362 parse_config_file(buf); in parse_dep_file()
363 free(buf); in parse_dep_file()
388 void *buf; in main() local
399 buf = read_file(depfile); in main()
400 parse_dep_file(buf, target); in main()
401 free(buf); in main()