Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_test01.c91 char mysharesfile[FILENAME_MAX], ch; in main() local
136 sprintf(mysharesfile, "%s", mygroup); in main()
138 strcat(mysharesfile, "/cpu.shares"); in main()
141 write_to_file(mysharesfile, "w", myshares); in main()
166 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
168 mysharesfile); in main()
230 write_to_file(mysharesfile, "w", myshares); in main()
238 read_shares_file(mysharesfile)) < 2) in main()
241 mysharesfile); in main()
Dcpuctl_def_task01.c91 char mysharesfile[FILENAME_MAX], ch; in main() local
133 sprintf(mysharesfile, "%s", mygroup); in main()
135 strcat(mysharesfile, "/cpu.shares"); in main()
138 write_to_file(mysharesfile, "w", myshares); in main()
163 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
165 "in reading shares files %s ", mysharesfile); in main()
234 write_to_file(mysharesfile, "w", myshares); in main()
Dcpuctl_def_task04.c89 char mysharesfile[FILENAME_MAX], ch; in main() local
145 sprintf(mysharesfile, "%s", mygroup); in main()
147 strcat(mysharesfile, "/cpu.shares"); in main()
156 write_to_file(mysharesfile, "w", mygroup_shares); in main()
180 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
182 "in reading shares files %s ", mysharesfile); in main()
Dcpuctl_test04.c90 char mysharesfile[FILENAME_MAX], ch; in main() local
154 sprintf(mysharesfile, "%s", mygroup); in main()
155 strcat(mysharesfile, "/cpu.shares"); in main()
158 write_to_file(mysharesfile, "w", mygroup_shares); /* Write the shares of the group */ in main()
184 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
186 mysharesfile); in main()
Dcpuctl_def_task02.c90 char mysharesfile[FILENAME_MAX], ch; in main() local
146 sprintf(mysharesfile, "%s", mygroup); in main()
148 strcat(mysharesfile, "/cpu.shares"); in main()
174 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
176 "in reading shares files %s ", mysharesfile); in main()
Dcpuctl_test03.c89 char mysharesfile[FILENAME_MAX], ch; in main() local
145 sprintf(mysharesfile, "%s", mygroup); in main()
147 strcat(mysharesfile, "/cpu.shares"); in main()
173 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
175 mysharesfile); in main()
Dcpuctl_def_task03.c86 char mysharesfile[FILENAME_MAX], ch; in main() local
142 sprintf(mysharesfile, "%s", mygroup); in main()
144 strcat(mysharesfile, "/cpu.shares"); in main()
170 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
172 "in reading shares files %s ", mysharesfile); in main()
Dcpuctl_test02.c92 char mysharesfile[FILENAME_MAX], ch; in main() local
149 sprintf(mysharesfile, "%s", mygroup); in main()
151 strcat(mysharesfile, "/cpu.shares"); in main()
177 if ((fmyshares = read_shares_file(mysharesfile)) < 2) in main()
179 mysharesfile); in main()