Lines Matching refs:file
94 FILE* file; in TEST_IMPL() local
100 file = fopen("/sys/fs/cgroup/cpu.max", "r"); in TEST_IMPL()
101 if (file) { in TEST_IMPL()
102 if (fscanf(file, "%lu %lu", "a, &period) == 2 && quota > 0) { in TEST_IMPL()
106 fclose(file); in TEST_IMPL()
111 file = fopen("/sys/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us", "r"); in TEST_IMPL()
112 if (file) { in TEST_IMPL()
113 if (fscanf(file, "%lu", "a) == 1 && quota > 0 && quota < ~0ULL) { in TEST_IMPL()
114 fclose(file); in TEST_IMPL()
115 file = fopen("/sys/fs/cgroup/cpu,cpuacct/cpu.cfs_period_us", "r"); in TEST_IMPL()
116 if (file && fscanf(file, "%lu", &period) == 1) { in TEST_IMPL()
121 if (file) fclose(file); in TEST_IMPL()