Lines Matching defs:fp
151 FILE *fp;
159 fp = fopen("/proc/cpuinfo", "r");
160 if (fp == NULL)
163 while (fscanf(fp, "%255s : ", buf) != EOF) {
165 fscanf(fp, "%255s", buf) == 1)
167 fclose(fp);
171 fclose(fp);
179 FILE *fp;
182 fp = fopen(path, "r");
183 if (fp == NULL)
185 if (fscanf(fp, "%d", &i) != 1)
187 fclose(fp);
194 FILE *fp;
197 fp = fopen(path, "w");
198 if (fp == NULL)
200 r = fprintf(fp, "%s\n", val);
201 fclose(fp);
1626 FILE *fp;
1631 fp = fopen(PROC_INET6, "r");
1632 if (fp == NULL)
1641 while (fscanf(fp, "%32[a-f0-9] %x %x %x %x %"TOSTRING(IF_NAMESIZE)"s\n",
1645 fclose(fp);
1652 fclose(fp);
1657 fclose(fp);