Lines Matching refs:fp
1753 FILE* fp; in uv_cpu_info() local
1782 fp = uv__open_file("/proc/stat"); in uv_cpu_info()
1783 if (fp == NULL) { in uv_cpu_info()
1788 if (NULL == fgets(buf, sizeof(buf), fp)) in uv_cpu_info()
1794 n = fscanf(fp, "cpu%u %llu %llu %llu %llu %llu %llu", in uv_cpu_info()
1800 if (NULL == fgets(buf, sizeof(buf), fp)) in uv_cpu_info()
1814 fclose(fp); in uv_cpu_info()
1816 fp = uv__open_file("/proc/cpuinfo"); in uv_cpu_info()
1817 if (fp == NULL) in uv_cpu_info()
1821 if (1 != fscanf(fp, "processor\t: %u\n", &cpu)) in uv_cpu_info()
1825 while (!found && fgets(buf, sizeof(buf), fp)) in uv_cpu_info()
1858 while (fgets(buf, sizeof(buf), fp)) in uv_cpu_info()
1863 fclose(fp); in uv_cpu_info()
1864 fp = NULL; in uv_cpu_info()
1877 fp = uv__open_file(buf); in uv_cpu_info()
1878 if (fp == NULL) in uv_cpu_info()
1881 if (1 != fscanf(fp, "%llu", &(*cpus)[cpu].freq)) in uv_cpu_info()
1883 fclose(fp); in uv_cpu_info()
1884 fp = NULL; in uv_cpu_info()