Home
last modified time | relevance | path

Searched refs:mapfp (Results 1 – 1 of 1) sorted by relevance

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibcpuset.c1244 FILE *mapfp; /* File stream on mapfile */ in load_map() local
1252 if ((mapfp = fopen(mapfile, "r")) == NULL) in load_map()
1256 while (flgets(buf, sizeof(buf), mapfp) != NULL) { in load_map()
1263 fclose(mapfp); in load_map()
1280 FILE *mapfp = NULL; in store_map() local
1288 if ((mapfp = fdopen(fd, "w")) == NULL) in store_map()
1293 fprintf(mapfp, "%u %u\n", cpu, mem); in store_map()
1295 fclose(mapfp); in store_map()
1303 if (mapfp != NULL) { in store_map()
1304 fclose(mapfp); in store_map()