Home
last modified time | relevance | path

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

/optee_benchmark/libyaml/tests/
A Dexample-reformatter.c8 main(int argc, char *argv[]) in main() argument
30 if (strcmp(argv[k], "-h") == 0 in main()
31 || strcmp(argv[k], "--help") == 0) { in main()
35 else if (strcmp(argv[k], "-c") == 0 in main()
36 || strcmp(argv[k], "--canonical") == 0) { in main()
40 else if (strcmp(argv[k], "-u") == 0 in main()
41 || strcmp(argv[k], "--unicode") == 0) { in main()
48 argv[k], argv[0]); in main()
62 argv[0], argv[0]); in main()
A Dexample-reformatter-alt.c8 main(int argc, char *argv[]) in main() argument
30 if (strcmp(argv[k], "-h") == 0 in main()
31 || strcmp(argv[k], "--help") == 0) { in main()
35 else if (strcmp(argv[k], "-c") == 0 in main()
36 || strcmp(argv[k], "--canonical") == 0) { in main()
40 else if (strcmp(argv[k], "-u") == 0 in main()
41 || strcmp(argv[k], "--unicode") == 0) { in main()
48 argv[k], argv[0]); in main()
62 argv[0], argv[0]); in main()
A Drun-loader.c12 main(int argc, char *argv[]) in main() argument
17 printf("Usage: %s file1.yaml ...\n", argv[0]); in main()
30 printf("[%d] Loading '%s': ", number, argv[number]); in main()
33 file = fopen(argv[number], "rb"); in main()
A Drun-parser.c12 main(int argc, char *argv[]) in main() argument
17 printf("Usage: %s file1.yaml ...\n", argv[0]); in main()
30 printf("[%d] Parsing '%s': ", number, argv[number]); in main()
33 file = fopen(argv[number], "rb"); in main()
A Drun-scanner.c12 main(int argc, char *argv[]) in main() argument
17 printf("Usage: %s file1.yaml ...\n", argv[0]); in main()
30 printf("[%d] Scanning '%s': ", number, argv[number]); in main()
33 file = fopen(argv[number], "rb"); in main()
A Drun-dumper.c189 main(int argc, char *argv[]) in main() argument
197 if (strcmp(argv[number], "-c") == 0) { in main()
200 else if (strcmp(argv[number], "-u") == 0) { in main()
203 else if (argv[number][0] == '-') { in main()
204 printf("Unknown option: '%s'\n", argv[number]); in main()
207 if (argv[number][0] == '-') { in main()
209 memmove(argv+number, argv+number+1, (argc-number-1)*sizeof(char *)); in main()
219 printf("Usage: %s [-c] [-u] file1.yaml ...\n", argv[0]); in main()
241 printf("[%d] Loading, dumping, and loading again '%s': ", number, argv[number]); in main()
244 file = fopen(argv[number], "rb"); in main()
[all …]
A Drun-emitter.c214 main(int argc, char *argv[]) in main() argument
222 if (strcmp(argv[number], "-c") == 0) { in main()
225 else if (strcmp(argv[number], "-u") == 0) { in main()
228 else if (argv[number][0] == '-') { in main()
229 printf("Unknown option: '%s'\n", argv[number]); in main()
232 if (argv[number][0] == '-') { in main()
234 memmove(argv+number, argv+number+1, (argc-number-1)*sizeof(char *)); in main()
244 printf("Usage: %s [-c] [-u] file1.yaml ...\n", argv[0]); in main()
268 file = fopen(argv[number], "rb"); in main()
293 print_output(argv[number], buffer, written, count)); in main()
[all …]
A Dexample-deconstructor-alt.c8 main(int argc, char *argv[]) in main() argument
34 if (strcmp(argv[k], "-h") == 0 in main()
35 || strcmp(argv[k], "--help") == 0) { in main()
39 else if (strcmp(argv[k], "-c") == 0 in main()
40 || strcmp(argv[k], "--canonical") == 0) { in main()
44 else if (strcmp(argv[k], "-u") == 0 in main()
45 || strcmp(argv[k], "--unicode") == 0) { in main()
52 argv[k], argv[0]); in main()
66 argv[0], argv[0]); in main()
A Dexample-deconstructor.c8 main(int argc, char *argv[]) in main() argument
32 if (strcmp(argv[k], "-h") == 0 in main()
33 || strcmp(argv[k], "--help") == 0) { in main()
37 else if (strcmp(argv[k], "-c") == 0 in main()
38 || strcmp(argv[k], "--canonical") == 0) { in main()
42 else if (strcmp(argv[k], "-u") == 0 in main()
43 || strcmp(argv[k], "--unicode") == 0) { in main()
50 argv[k], argv[0]); in main()
64 argv[0], argv[0]); in main()
/optee_benchmark/
A Dbenchmark_aux.c56 void alloc_argv(int argc, char *argv[], char **new_argv[]) in alloc_argv() argument
63 res = realpath(argv[1], path); in alloc_argv()
82 size_t length = strlen(argv[i]) + 1; in alloc_argv()
88 memcpy(testapp_argv[i-1], argv[i], length); in alloc_argv()
A Dmain.c377 int main(int argc, char *argv[]) in main() argument
391 usage(argv[0]); in main()
397 if (!strcmp(argv[i], "-h")) { in main()
398 usage(argv[0]); in main()
416 res = realpath(argv[1], testapp_path); in main()
420 alloc_argv(argc, argv, &testapp_argv); in main()
A Dbenchmark_aux.h21 void alloc_argv(int argc, char *argv[], char **new_argv[]);
/optee_benchmark/libyaml/tests/run-test-suite/src/
A Dlibyaml-parser.c8 int main(int argc, char *argv[]) in main() argument
17 input = fopen(argv[1], "rb"); in main()
A Dlibyaml-emitter.c13 int main(int argc, char *argv[]) in main() argument
26 input = fopen(argv[1], "rb"); in main()

Completed in 35 milliseconds