Lines Matching refs:file
41 FILE *file; in get_temperatures() local
59 file = fopen(file_name, "r"); in get_temperatures()
60 if (file == NULL) { in get_temperatures()
63 if (1 != fscanf(file, "%f", &temp)) { in get_temperatures()
64 fclose(file); in get_temperatures()
78 fclose(file); in get_temperatures()
95 FILE *file = fopen(CPU_USAGE_FILE, "r"); in get_cpu_usages() local
97 if (file == NULL) { in get_cpu_usages()
102 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
119 fclose(file); in get_cpu_usages()
138 fclose(file); in get_cpu_usages()
157 fclose(file); in get_cpu_usages()