Home
last modified time | relevance | path

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

123

/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 …]
Damiga.c31 MyExecute (char **argv) in MyExecute() argument
38 for (aptr=argv; *aptr; aptr++) in MyExecute()
50 for (aptr=argv; *aptr; aptr++) in MyExecute()
Dvmsjobs.c293 child_execute_job (char *argv, struct child *child) in child_execute_job() argument
306 char *cmd = alloca (strlen (argv) + 512), *p, *q; in child_execute_job()
318 DB (DB_JOBS, ("child_execute_job (%s)\n", argv)); in child_execute_job()
320 while (isspace ((unsigned char)*argv)) in child_execute_job()
321 argv++; in child_execute_job()
323 if (*argv == 0) in child_execute_job()
334 for (p = argv, q = cmd; *p; p++, q++) in child_execute_job()
/ndk/sources/host-tools/sed-4.2.1/lib/
Dgetopt.c147 exchange (char **argv, struct _getopt_data *d) in exchange() argument
192 tem = argv[bottom + i]; in exchange()
193 argv[bottom + i] = argv[top - (middle - bottom) + i]; in exchange()
194 argv[top - (middle - bottom) + i] = tem; in exchange()
209 tem = argv[bottom + i]; in exchange()
210 argv[bottom + i] = argv[middle + i]; in exchange()
211 argv[middle + i] = tem; in exchange()
228 _getopt_initialize (int argc, char **argv, const char *optstring, in _getopt_initialize() argument
260 && argc == __libc_argc && argv == __libc_argv) in _getopt_initialize()
347 _getopt_internal_r (int argc, char **argv, const char *optstring, in _getopt_internal_r() argument
[all …]
Dgetopt1.c40 getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, in getopt_long() argument
43 return _getopt_internal (argc, (char **) argv, options, long_options, in getopt_long()
48 _getopt_long_r (int argc, char **argv, const char *options, in _getopt_long_r() argument
52 return _getopt_internal_r (argc, argv, options, long_options, opt_index, in _getopt_long_r()
62 getopt_long_only (int argc, char *__getopt_argv_const *argv, in getopt_long_only() argument
66 return _getopt_internal (argc, (char **) argv, options, long_options, in getopt_long_only()
71 _getopt_long_only_r (int argc, char **argv, const char *options, in _getopt_long_only_r() argument
75 return _getopt_internal_r (argc, argv, options, long_options, opt_index, in _getopt_long_only_r()
85 main (int argc, char **argv) in main() argument
105 c = getopt_long (argc, argv, "abc:d:0123456789", in main()
[all …]
/ndk/sources/host-tools/toolbox/
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()
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()
/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/sources/host-tools/sed-4.2.1/sed/
Dsed.c172 main(argc, argv) in main() argument
174 char **argv;
209 program_name = argv[0];
210 initialize_main (&argc, &argv);
240 myname = *argv;
241 while ((opt = getopt_long(argc, argv, SHORTOPTS, longopts, NULL)) != EOF)
341 char *arg = argv[optind++];
349 return_code = process_files(the_program, argv+optind);
/ndk/sources/host-tools/sed-4.2.1/testsuite/
Dtst-regex2.c15 main (int argc, char *argv[]) in main() argument
34 fd = open (argv[1], O_RDONLY); in main()
37 printf ("Couldn't open %s: %s\n", argv[1], strerror (errno)); in main()
43 printf ("Couldn't fstat %s: %s\n", argv[1], strerror (errno)); in main()
56 printf ("Couldn't read %s", argv[1]); in main()
Druntests.c121 main (int argc, char * argv[]) in main() argument
133 lo = atoi (argv[1]); in main()
137 hi = atoi (argv[2]); in main()
Dtst-boost.c78 main (int argc, char **argv) in main() argument
101 f = fopen (argv[1], "r"); in main()
104 fprintf (stderr, "Couldn't open %s\n", argv[1]); in main()
/ndk/sources/host-tools/make-3.81/w32/subproc/
Dsub_proc.c30 static char *make_command_line(char *shell_name, char *exec_path, char **argv);
410 char **argv, in process_begin() argument
497 command_line = make_command_line( shell_name, exec_path, argv); in process_begin()
500 argv); in process_begin()
952 make_command_line( char *shell_name, char *full_exec_path, char **argv) in make_command_line() argument
975 if (*argv) argv++; in make_command_line()
979 if (*argv) bytes_required++; in make_command_line()
982 argvi = argv; in make_command_line()
998 argvi = argv; in make_command_line()
1096 if (*argv) { in make_command_line()
[all …]
/ndk/sources/host-tools/make-3.81/w32/include/
Dsub_proc.h37 EXTERN_DECL(long process_begin, (HANDLE proc, char **argv, char **envp,
45 EXTERN_DECL(HANDLE process_easy, (char** argv, char** env));
/ndk/tests/build/issue21132-__ARM_ARCH__/jni/
Dissue21132-__ARM_ARCH__.c3 int main(int argc, char *argv[]) in main() argument

123