Lines Matching refs:file
45 FILE *file; in get_num_cpus() local
53 file = fopen(CPU_PRESENT_FILE, "r"); in get_num_cpus()
54 if (file == NULL) { in get_num_cpus()
59 if ((read = getline(&line, &len, file)) != -1) { in get_num_cpus()
70 fclose(file); in get_num_cpus()
89 FILE *file; in get_cpu_usages() local
99 file = fopen(CPU_USAGE_FILE, "r"); in get_cpu_usages()
100 if (file == NULL) { in get_cpu_usages()
105 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
127 fclose(file); in get_cpu_usages()
140 fclose(file); in get_cpu_usages()
146 fclose(file); in get_cpu_usages()
161 fclose(file); in get_cpu_usages()