Home
last modified time | relevance | path

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

12345

/ndk/sources/host-tools/nawk-20071023/
Dmain.c56 int main(int argc, char *argv[]) in main() argument
62 cmdname = argv[0]; in main()
72 while (argc > 1 && argv[1][0] == '-' && argv[1][1] != '\0') { in main()
73 if (strcmp(argv[1],"-version") == 0 || strcmp(argv[1],"--version") == 0) { in main()
78 if (strncmp(argv[1], "--", 2) == 0) { /* explicit end of args */ in main()
80 argv++; in main()
83 switch (argv[1][1]) { in main()
85 if (strcmp(argv[1], "-safe") == 0) in main()
90 argv++; in main()
95 pfile[npfile++] = argv[1]; in main()
[all …]
/ndk/sources/host-tools/make-3.81/
Dgetopt.c264 store_args_and_env (int argc, char *const *argv) in store_args_and_env() argument
269 original_argv = argv; in store_args_and_env()
300 exchange (char **argv) in exchange() argument
345 tem = argv[bottom + i]; in exchange()
346 argv[bottom + i] = argv[top - (middle - bottom) + i]; in exchange()
347 argv[top - (middle - bottom) + i] = tem; in exchange()
362 tem = argv[bottom + i]; in exchange()
363 argv[bottom + i] = argv[middle + i]; in exchange()
364 argv[middle + i] = tem; in exchange()
384 _getopt_initialize (int argc, char *const *argv, const char *optstring) in _getopt_initialize() argument
[all …]
Dfunction.c39 char *(*func_ptr) PARAMS ((char *output, char **argv, const char *fname));
404 func_patsubst (char *o, char **argv, const char *funcname UNUSED) in func_patsubst() argument
406 o = patsubst_expand (o, argv[2], argv[0], argv[1], (char *) 0, (char *) 0); in func_patsubst()
412 func_join (char *o, char **argv, const char *funcname UNUSED) in func_join() argument
422 char *list1_iterator = argv[0]; in func_join()
423 char *list2_iterator = argv[1]; in func_join()
452 func_origin (char *o, char **argv, const char *funcname UNUSED) in func_origin() argument
455 register struct variable *v = lookup_variable (argv[0], strlen (argv[0])); in func_origin()
492 func_flavor (char *o, char **argv, const char *funcname UNUSED) in func_flavor() argument
494 register struct variable *v = lookup_variable (argv[0], strlen (argv[0])); in func_flavor()
[all …]
Dgetopt1.c69 getopt_long (int argc, char *const *argv, const char *options, in getopt_long() argument
72 return _getopt_internal (argc, argv, options, long_options, opt_index, 0); in getopt_long()
81 getopt_long_only (int argc, char *const *argv, const char *options, in getopt_long_only() argument
84 return _getopt_internal (argc, argv, options, long_options, opt_index, 1); in getopt_long_only()
95 main (int argc, char **argv) in main() argument
115 c = getopt_long (argc, argv, "abc:d:0123456789", in main()
173 printf ("%s ", argv[optind++]); in main()
Djob.h75 extern int child_execute_job PARAMS ((char *argv, struct child *child));
77 extern int child_execute_job PARAMS ((int stdin_fd, int stdout_fd, char **argv, char **envp));
79 extern void child_execute_job PARAMS ((int stdin_fd, int stdout_fd, char **argv, char **envp));
82 extern void exec_command PARAMS ((char **argv));
84 extern int exec_command PARAMS ((char **argv, char **envp));
86 extern void exec_command PARAMS ((char **argv, char **envp));
Djob.c192 extern int start_remote_job PARAMS ((char **argv, char **envp, int stdin_fd,
975 char *argv; in start_job_command() local
977 char **argv; in start_job_command() local
1019 argv = p; in start_job_command()
1021 argv = construct_command_argv (p, &end, child->file, &child->sh_batch_file); in start_job_command()
1036 if (argv != 0 && question_flag && !(flags & COMMANDS_RECURSE)) in start_job_command()
1039 free (argv[0]); in start_job_command()
1040 free ((char *) argv); in start_job_command()
1052 if (argv) in start_job_command()
1054 free (argv[0]); in start_job_command()
[all …]
Dgetopt.h106 extern int getopt (int argc, char *const *argv, const char *shortopts);
110 extern int getopt_long (int argc, char *const *argv, const char *shortopts,
112 extern int getopt_long_only (int argc, char *const *argv,
117 extern int _getopt_internal (int argc, char *const *argv,
Dmain.c87 static void decode_switches PARAMS ((int argc, char **argv, int env));
891 main (int argc, char **argv) in main() argument
894 main (int argc, char **argv, char **envp) in main()
935 initialize_main(&argc, &argv); in main()
1032 if (argv[0] == 0) in main()
1033 argv[0] = ""; in main()
1034 if (argv[0][0] == '\0') in main()
1039 program = strrchr (argv[0], ']'); in main()
1041 program = strrchr (argv[0], '/'); in main()
1045 program = strrchr (argv[0], '\\'); in main()
[all …]
Dansi2knr.c230 main(argc, argv) in main() argument
232 char *argv[];
236 char *program_name = argv[0];
255 while ( argc > 1 && argv[1][0] == '-' ) {
256 if ( !strcmp(argv[1], "--varargs") ) {
259 argv++;
262 if ( !strcmp(argv[1], "--filename") && argc > 2 ) {
263 filename = argv[2];
265 argv += 2;
269 argv[1]);
[all …]
/ndk/sources/host-tools/toolbox/
Decho_win.c45 TCHAR** argv = CommandLineToArgvW(GetCommandLine(), &argc); in main() local
52 if (argc > 1 && argv[1][0] == L'-' && argv[1][1] == L'n' && argv[1][2] == L'\0') { in main()
55 argv++; in main()
60 _tprintf(L"%s%s", comma, argv[1]); in main()
63 argv++; in main()
Dcmp_win.c44 TCHAR** argv = CommandLineToArgvW(GetCommandLine(), &argc); in main() local
49 if (argc > 1 && argv[1][0] == L'-' && argv[1][1] == L's' && argv[1][2] == L'\0') { in main()
51 argv++; in main()
57 FILE *f1 = _tfopen(argv[1], L"rb"); in main()
59 _tprintf(L"ERROR: can't open file %s\n", argv[1]); in main()
62 FILE *f2 = _tfopen(argv[2], L"rb"); in main()
64 _tprintf(L"ERROR: can't open file %s\n", argv[2]); in main()
/ndk/tests/device/test-gnustl-full/unit/cppunit/
Dtest_main.cpp67 int main(int argc, char** argv) { in main() argument
83 if (argv[i][0] == '-') { in main()
84 if (!strncmp(argv[i], "-t=", 3)) { in main()
85 testName = argv[i]+3; in main()
88 else if (!strncmp(argv[i], "-f=", 3)) { in main()
89 fileName = argv[i]+3; in main()
92 else if (!strncmp(argv[i], "-x=", 3)) { in main()
93 xtestName = argv[i]+3; in main()
96 else if (Timer::supported() && !strncmp(argv[i], "-m", 2)) { in main()
103 usage(argv[0]); in main()
/ndk/tests/device/test-stlport/unit/cppunit/
Dtest_main.cpp67 int main(int argc, char** argv) { in main() argument
83 if (argv[i][0] == '-') { in main()
84 if (!strncmp(argv[i], "-t=", 3)) { in main()
85 testName = argv[i]+3; in main()
88 else if (!strncmp(argv[i], "-f=", 3)) { in main()
89 fileName = argv[i]+3; in main()
92 else if (!strncmp(argv[i], "-x=", 3)) { in main()
93 xtestName = argv[i]+3; in main()
96 else if (Timer::supported() && !strncmp(argv[i], "-m", 2)) { in main()
103 usage(argv[0]); in main()
/ndk/sources/host-tools/ndk-stack/
Dndk-stack.c35 int main(int argc, char **argv, char **envp) in main() argument
45 if (!strcmp(argv[n], "-dump")) { in main()
48 dump_file = argv[n]; in main()
50 } else if (!strcmp(argv[n], "-sym")) { in main()
53 sym_path = argv[n]; in main()
/ndk/tests/build/issue79114-__builtin___stpncpy_chk/jni/
D__builtin___stpncpy_chk.c3 int main(int argc, char *argv[]) in main() argument
5 stpncpy(argv[1], argv[2], argc); in main()
/ndk/tests/abcc/jni/host/
Dmain.cpp22 static int parseArguments(char **argv, in parseArguments() argument
27 while (argv[idx] != 0) { in parseArguments()
28 std::string arg = argv[idx++]; in parseArguments()
46 input = argv[idx++]; in parseArguments()
47 output = argv[idx++]; in parseArguments()
66 int main(int argc, char **argv) { in main() argument
68 std::string this_bin = argv[0]; in main()
86 if (parseArguments(argv, in main()
/ndk/sources/third_party/googletest/googletest/test/
Dgtest_test_utils.py66 _flag_map = {'source_dir': os.path.dirname(sys.argv[0]),
67 'build_dir': os.path.dirname(sys.argv[0])}
71 def _ParseAndStripGTestFlags(argv): argument
88 while i < len(argv):
90 if argv[i].startswith(prefix):
91 _flag_map[flag] = argv[i][len(prefix):]
92 del argv[i]
106 _ParseAndStripGTestFlags(sys.argv)
297 _ParseAndStripGTestFlags(sys.argv)
Dgtest_no_test_unittest.cc37 int main(int argc, char **argv) { in main() argument
38 testing::InitGoogleTest(&argc, argv); in main()
Dgtest_throw_on_failure_test_.cc53 int main(int argc, char** argv) { in main() argument
57 testing::InitGoogleTest(&argc, argv); in main()
Dgtest_env_var_test_.cc116 int main(int argc, char** argv) { in main() argument
117 testing::InitGoogleTest(&argc, argv); in main()
124 testing::PrintFlag(argv[1]); in main()
Dgtest_color_test_.cc58 int main(int argc, char** argv) { in main() argument
59 testing::InitGoogleTest(&argc, argv); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/
Dunit_test.hpp46 int BOOST_TEST_DECL unit_test_main( init_unit_test_func init_func, int argc, char* argv[] );
57 main( int argc, char* argv[] ) in main() argument
59 return ::boost::unit_test::unit_test_main( &init_unit_test, argc, argv ); in main()
/ndk/sources/third_party/googletest/googletest/src/
Dgtest_main.cc34 GTEST_API_ int main(int argc, char **argv) { in main() argument
36 testing::InitGoogleTest(&argc, argv); in main()
/ndk/sources/host-tools/gdb-stub/
Dgdb-stub.c75 int main(int argc, char** argv) { in main() argument
140 for ( ++argv; *argv; ++argv ) { in main()
142 snprintf(cmdbuf+len, cmdbufsize-len, "%s ", *argv); in main()
/ndk/sources/third_party/googletest/googletest/samples/
Dsample10_unittest.cc112 int main(int argc, char **argv) { in main() argument
113 InitGoogleTest(&argc, argv); in main()
116 if (argc > 1 && strcmp(argv[1], "--check_for_leaks") == 0 ) in main()

12345