Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_test01.c89 char mysharesfile[FILENAME_MAX], ch; in main() local
134 sprintf(mysharesfile, "%s", mygroup); in main()
136 strcat(mysharesfile, "/cpu.shares"); in main()
139 write_to_file(mysharesfile, "w", myshares); in main()
164 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
166 mysharesfile); in main()
228 write_to_file(mysharesfile, "w", myshares); in main()
236 read_shares_file(mysharesfile)) < 2) in main()
239 mysharesfile); in main()
Dcpuctl_def_task01.c89 char mysharesfile[FILENAME_MAX], ch; in main() local
131 sprintf(mysharesfile, "%s", mygroup); in main()
133 strcat(mysharesfile, "/cpu.shares"); in main()
136 write_to_file(mysharesfile, "w", myshares); in main()
161 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
163 "in reading shares files %s ", mysharesfile); in main()
232 write_to_file(mysharesfile, "w", myshares); in main()
Dcpuctl_def_task04.c87 char mysharesfile[FILENAME_MAX], ch; in main() local
143 sprintf(mysharesfile, "%s", mygroup); in main()
145 strcat(mysharesfile, "/cpu.shares"); in main()
154 write_to_file(mysharesfile, "w", mygroup_shares); in main()
178 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
180 "in reading shares files %s ", mysharesfile); in main()
Dcpuctl_test04.c88 char mysharesfile[FILENAME_MAX], ch; in main() local
152 sprintf(mysharesfile, "%s", mygroup); in main()
153 strcat(mysharesfile, "/cpu.shares"); in main()
156 write_to_file(mysharesfile, "w", mygroup_shares); /* Write the shares of the group */ in main()
182 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
184 mysharesfile); in main()
Dcpuctl_test03.c87 char mysharesfile[FILENAME_MAX], ch; in main() local
143 sprintf(mysharesfile, "%s", mygroup); in main()
145 strcat(mysharesfile, "/cpu.shares"); in main()
171 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
173 mysharesfile); in main()
Dcpuctl_def_task03.c84 char mysharesfile[FILENAME_MAX], ch; in main() local
140 sprintf(mysharesfile, "%s", mygroup); in main()
142 strcat(mysharesfile, "/cpu.shares"); in main()
168 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
170 "in reading shares files %s ", mysharesfile); in main()
Dcpuctl_def_task02.c88 char mysharesfile[FILENAME_MAX], ch; in main() local
144 sprintf(mysharesfile, "%s", mygroup); in main()
146 strcat(mysharesfile, "/cpu.shares"); in main()
172 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
174 "in reading shares files %s ", mysharesfile); in main()
Dcpuctl_test02.c91 char mysharesfile[FILENAME_MAX], ch; in main() local
148 sprintf(mysharesfile, "%s", mygroup); in main()
150 strcat(mysharesfile, "/cpu.shares"); in main()
176 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
178 mysharesfile); in main()