Lines Matching refs:f
160 FILE *f; in read_meminfo() local
162 f = fopen("/proc/meminfo", "r"); in read_meminfo()
163 if (!f) return errno; in read_meminfo()
165 while (fgets(line, MAX_LINE, f)) { in read_meminfo()
172 fclose(f); in read_meminfo()
178 FILE *f; in read_stat() local
180 f = fopen("/proc/stat", "r"); in read_stat()
181 if (!f) return errno; in read_stat()
183 while (fgets(line, MAX_LINE, f)) { in read_stat()
195 fclose(f); in read_stat()
201 FILE *f; in read_vmstat() local
203 f = fopen("/proc/vmstat", "r"); in read_vmstat()
204 if (!f) return errno; in read_vmstat()
206 while (fgets(line, MAX_LINE, f)) { in read_vmstat()
210 fclose(f); in read_vmstat()