Lines Matching refs:file
77 FILE *file; in read_temperature() local
80 file = fopen(file_name, "r"); in read_temperature()
81 if (file == NULL) { in read_temperature()
85 if (1 != fscanf(file, temperature_format, &temp)) { in read_temperature()
86 fclose(file); in read_temperature()
91 fclose(file); in read_temperature()
187 FILE *file; in get_cpu_usages() local
194 file = fopen(CPU_USAGE_FILE, "r"); in get_cpu_usages()
195 if (file == NULL) { in get_cpu_usages()
200 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
223 fclose(file); in get_cpu_usages()
236 fclose(file); in get_cpu_usages()
242 fclose(file); in get_cpu_usages()
258 fclose(file); in get_cpu_usages()