Home
last modified time | relevance | path

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

12345678910>>...18

/glibc-2.36/support/
Dshell-container.c65 true_func (char **argv) in true_func() argument
73 echo_func (char **argv) in echo_func() argument
77 for (i = 0; argv[i]; i++) in echo_func()
81 fputs (argv[i], stdout); in echo_func()
92 copy_func (char **argv) in copy_func() argument
94 char *sname = argv[0]; in copy_func()
95 char *dname = argv[1]; in copy_func()
145 exit_func (char **argv) in exit_func() argument
149 if (argv[0] != 0) in exit_func()
150 exit_val = atoi (argv[0]) & 0xff; in exit_func()
[all …]
Dsupport_test_main.c186 run_test_function (int argc, char **argv, const struct test_config *config) in run_test_function() argument
209 gdb_script_name = (char *) xmalloc (strlen (argv[0]) + strlen (".gdb") + 1); in run_test_function()
210 sprintf (gdb_script_name, "%s.gdb", argv[0]); in run_test_function()
218 fprintf (gdb_script, "file %s\n", argv[0]); in run_test_function()
219 fprintf (gdb_script, "symbol-file %s\n", argv[0]); in run_test_function()
220 fprintf (gdb_script, "exec-file %s\n", argv[0]); in run_test_function()
236 memcpy (argv_, &argv[1], sizeof (char *) * (argc - 1)); in run_test_function()
246 return config->test_function_argv (argc, argv); in run_test_function()
270 support_test_main (int argc, char **argv, const struct test_config *config) in support_test_main() argument
307 while ((opt = getopt_long (argc, argv, config->optstring, options, NULL)) in support_test_main()
[all …]
/glibc-2.36/posix/
Dgetopt.c130 exchange (char **argv, struct _getopt_data *d) in exchange() argument
153 tem = argv[bottom + i]; in exchange()
154 argv[bottom + i] = argv[top - (middle - bottom) + i]; in exchange()
155 argv[top - (middle - bottom) + i] = tem; in exchange()
169 tem = argv[bottom + i]; in exchange()
170 argv[bottom + i] = argv[middle + i]; in exchange()
171 argv[middle + i] = tem; in exchange()
193 process_long_option (int argc, char **argv, const char *optstring, in process_long_option() argument
278 argv[0], prefix, d->__nextchar); in process_long_option()
284 argv[0], prefix, d->__nextchar); in process_long_option()
[all …]
Dtst-execvp2.c11 static void prepare (int argc, char *argv[]);
13 #define PREPARE(argc, argv) prepare (argc, argv) argument
18 # define EXECVP(file, argv) execvp (file, argv) argument
24 prepare (int argc, char *argv[]) in prepare() argument
28 asprintf (&buf, "cp %s %n%s-copy", argv[0], &off, argv[0]); in prepare()
74 char *argv[] = { basename (copy), NULL }; in do_test() local
76 EXECVP (argv[0], argv); in do_test()
Dtst-exec.c36 extern void do_prepare (int argc, char *argv[]);
37 extern int do_test (int argc, char *argv[]);
60 do_prepare (int argc, char *argv[]) in do_prepare() argument
119 do_test (int argc, char *argv[]) in do_test() argument
142 return handle_restart (argv[1], argv[2], argv[3]); in do_test()
178 execl (argv[1], argv[1], argv[2], argv[3], argv[4], "--direct", in do_test()
181 execl (argv[1], argv[1], "--direct", in do_test()
Dexecvpe.c39 maybe_script_execute (const char *file, char *const argv[], char *const envp[]) in maybe_script_execute() argument
42 for (argc = 0; argv[argc] != NULL; argc++) in maybe_script_execute()
62 memcpy (new_argv + 2, argv + 1, argc * sizeof (char *)); in maybe_script_execute()
71 __execvpe_common (const char *file, char *const argv[], char *const envp[], in __execvpe_common() argument
84 __execve (file, argv, envp); in __execvpe_common()
87 maybe_script_execute (file, argv, envp); in __execvpe_common()
136 __execve (buffer, argv, envp); in __execvpe_common()
143 maybe_script_execute (buffer, argv, envp); in __execvpe_common()
188 __execvpe (const char *file, char *const argv[], char *const envp[]) in __execvpe() argument
190 return __execvpe_common (file, argv, envp, true); in __execvpe()
[all …]
Dgetopt1.c28 getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, in getopt_long() argument
31 return _getopt_internal (argc, (char **) argv, options, long_options, in getopt_long()
36 _getopt_long_r (int argc, char **argv, const char *options, in _getopt_long_r() argument
40 return _getopt_internal_r (argc, argv, options, long_options, opt_index, in _getopt_long_r()
50 getopt_long_only (int argc, char *__getopt_argv_const *argv, in getopt_long_only() argument
54 return _getopt_internal (argc, (char **) argv, options, long_options, in getopt_long_only()
59 _getopt_long_only_r (int argc, char **argv, const char *options, in _getopt_long_only_r() argument
63 return _getopt_internal_r (argc, argv, options, long_options, opt_index, in _getopt_long_only_r()
74 main (int argc, char **argv) in main() argument
94 c = getopt_long (argc, argv, "abc:d:0123456789", in main()
[all …]
Dtst-execv2.c7 static void prepare (int argc, char *argv[]);
9 #define PREPARE(argc, argv) prepare (argc, argv) argument
17 prepare (int argc, char *argv[]) in prepare() argument
21 asprintf (&buf, "cp %s %n%s-copy", argv[0], &off, argv[0]); in prepare()
48 char *argv[] = { copy, NULL }; in do_test() local
51 execv (copy, argv); in do_test()
Dtst-execve2.c7 static void prepare (int argc, char *argv[]);
9 #define PREPARE(argc, argv) prepare (argc, argv) argument
17 prepare (int argc, char *argv[]) in prepare() argument
21 asprintf (&buf, "cp %s %n%s-copy", argv[0], &off, argv[0]); in prepare()
48 char *argv[] = { copy, NULL }; in do_test() local
52 execve (copy, argv, envp); in do_test()
Dgetconf.c470 main (int argc, char *argv[]) in main() argument
482 if (argc > 1 && strcmp (argv[1], "--version") == 0) in main()
494 if (argc > 1 && strcmp (argv[1], "--help") == 0) in main()
509 if (argc > 1 && strncmp (argv[1], "-v", 2) == 0) in main()
511 if (argv[1][2] == '\0') in main()
516 argv += 2; in main()
521 argv += 1; in main()
531 char *argv0 = argv[0]; in main()
532 if (argc > 1 && strncmp (argv[1], "-v", 2) == 0) in main()
534 if (argv[1][2] == '\0') in main()
[all …]
Dtst-spawn6.c81 run_subprogram (int argc, char *argv[], const posix_spawnattr_t *attr, in run_subprogram() argument
96 spargv[i] = argv[i + 1]; in run_subprogram()
111 TEST_COMPARE (posix_spawn (&pid, argv[1], actions, attr, spargv, environ), in run_subprogram()
125 run_test (int argc, char *argv[]) in run_test() argument
148 run_subprogram (argc, argv, &attr, &actions, -1, 0); in run_test()
162 run_subprogram (argc, argv, &attr, &actions, -1, 0); in run_test()
177 run_subprogram (argc, argv, &attr, &actions, tcfd, 0); in run_test()
191 run_subprogram (argc, argv, &attr, &actions, -1, ENOTTY); in run_test()
200 do_test (int argc, char *argv[]) in do_test() argument
203 return handle_restart (argv[1], argv[2]); in do_test()
[all …]
Dtst-execvpe5.c35 extern void do_prepare (int argc, char *argv[]);
36 extern int do_test (int argc, char *argv[]);
80 do_test (int argc, char *argv[]) in do_test() argument
125 char *args[] = { argv[1], argv[2], argv[3], argv[4], in do_test()
131 char *args[] = { argv[0], in do_test()
Dtst-spawn.c63 do_prepare (int argc, char *argv[]) in do_prepare() argument
144 do_test (int argc, char *argv[]) in do_test() argument
178 return handle_restart (argv[1], argv[2], argv[3], argv[4], argv[5], in do_test()
179 argv[6]); in do_test()
225 spargv[i] = argv[i + 1]; in do_test()
236 TEST_COMPARE (posix_spawn (&pid, argv[1], &actions, NULL, spargv, environ), in do_test()
246 TEST_COMPARE (posix_spawn (NULL, argv[1], &actions, NULL, spargv, environ), in do_test()
/glibc-2.36/localedata/
Dtst-fmon.c40 main (int argc, char *argv[]) in main() argument
44 if (setlocale (LC_MONETARY, argv[1]) == NULL) in main()
46 fprintf (stderr, "setlocale(LC_MONETARY, \"%s\"): %m\n", argv[1]); in main()
50 if (strfmon (s, sizeof (s), argv[2], (double) atof (argv[3])) == -1) in main()
56 if (strcmp (s, argv[4]) != 0) in main()
60 argv[1], argv[2], argv[3], s, argv[4], in main()
61 strcmp (s, argv[4]) != 0 ? "false" : "correct"); in main()
Dtst-numeric.c40 main (int argc, char *argv[]) in main() argument
47 val = strtod (argv[3], NULL); in main()
49 if (setlocale (LC_ALL, argv[1]) == NULL) in main()
51 fprintf (stderr, "setlocale(LC_ALL, \"%s\"): %m\n", argv[1]); in main()
55 if (snprintf (s, sizeof (s), argv[2], val) == -1) in main()
61 if (strcmp (s, argv[4]) != 0) in main()
65 argv[1], argv[2], argv[4], s, in main()
66 strcmp (s, argv[4]) != 0 ? "false" : "correct"); in main()
Dtst-rpmatch.c24 main (int argc, char* argv[]) in main() argument
26 setlocale (LC_ALL, argv[1]); in main()
28 if (rpmatch (argv[2]) != atol (argv[3])) in main()
31 argv[1], argv[2], argv[3], rpmatch (argv[2])); in main()
Dtst-localedef-hardlinks.c50 const char * argv[16]; member
76 one->argv[0] = prog; in run_localedef()
77 execv (prog, (char * const *) one->argv); in run_localedef()
87 { .argv = { NULL, "--no-archive", "-i", "/test1_locale", TEST1DIR, NULL },
90 { .argv = { NULL, "--no-archive", "-i", "/test2_locale", TEST2DIR, NULL },
93 { .argv = { NULL, "--no-archive", "--no-hard-links", "-i", "/test1_locale",
97 { .argv = { NULL, "--no-archive", "--no-hard-links", "-i", "/test2_locale",
/glibc-2.36/locale/
Dtst-localedef-path-norm.c50 char **argv = args; in execv_wrapper() local
52 execv (prog, argv); in execv_wrapper()
59 const char *const argv[16]; member
72 const char * const *args = data->argv; in run_test()
122 .argv = { (const char *const) prog, in do_test()
135 .argv = { prog, in do_test()
148 .argv = { prog, in do_test()
160 .argv = { prog, in do_test()
172 .argv = { prog, in do_test()
184 .argv = { prog, in do_test()
[all …]
/glibc-2.36/sysdeps/x86/
Dtst-cet-legacy-1a.c31 extern int do_test (int argc, char *argv[]);
55 do_test (int argc, char *argv[]) in do_test() argument
72 execl (argv[1], argv[1], argv[2], argv[3], argv[4], "--direct", in do_test()
75 execl (argv[1], argv[1], "--direct", "--restart", NULL); in do_test()
/glibc-2.36/csu/
Dlibc-start.c42 extern void __libc_init_first (int argc, char **argv, char **envp);
125 call_init (int argc, char **argv, char **env) in call_init() argument
136 argc, argv, env); in call_init()
145 ((dl_init_t) addrs[j]) (argc, argv, env); in call_init()
173 call_init (int argc, char **argv, char **envp) in call_init() argument
180 (*__preinit_array_start [i]) (argc, argv, envp); in call_init()
189 (*__init_array_start [i]) (argc, argv, envp); in call_init()
212 char **argv,
235 int argc, char **argv, in LIBC_START_MAIN() argument
244 char **ev = &argv[argc + 1]; in LIBC_START_MAIN()
[all …]
/glibc-2.36/sysdeps/mach/hurd/i386/
Dinit-first.c53 posixland_init (int argc, char **argv, char **envp) in posixland_init() argument
56 _hurd_libc_proc_init (argv); in posixland_init()
76 __libc_argv = argv; in posixland_init()
82 __init_misc (argc, argv, envp); in posixland_init()
89 char **argv = &arg0; in init1() local
90 char **envp = &argv[argc + 1]; in init1()
97 if ((void *) d == argv[0]) in init1()
124 _hurd_init (d->flags, argv, in init1()
140 char **argv = (void *) (data + 1); in init() local
141 char **envp = &argv[argc + 1]; in init()
[all …]
/glibc-2.36/nptl/
Dtst-exec4.c46 char **argv = (char **) alloca ((n + 1) * sizeof (char *)); in tf() local
48 argv[n] = oldargv[n + 1]; in tf()
49 argv[n++] = (char *) "--direct"; in tf()
50 argv[n] = NULL; in tf()
52 execv (argv[0], argv); in tf()
61 do_test (int argc, char *argv[]) in do_test() argument
95 if (pthread_create (&th, NULL, tf, argv) != 0) in do_test()
109 #define TEST_FUNCTION do_test (argc, argv)
/glibc-2.36/hurd/
Dhurdstartup.c55 char **argv, **envp; in _hurd_startup() local
102 argv = (char **) &argcptr[1]; in _hurd_startup()
103 envp = &argv[argc + 1]; in _hurd_startup()
126 argv = (void *) (argcptr + 1); in _hurd_startup()
127 __argz_extract (args, argslen, argv); in _hurd_startup()
130 envp = &argv[argc + 1]; in _hurd_startup()
149 else if ((void *) &envp[envc + 1] == argv[0]) in _hurd_startup()
157 char *argv[argc + 1]; in _hurd_startup() member
165 argv = args->argv; in _hurd_startup()
172 if ((void *) d != argv[0]) in _hurd_startup()
/glibc-2.36/stdlib/
Dtest-canon.c31 extern int do_test (int argc, char *argv[]);
120 do_test (int argc, char ** argv) in do_test() argument
133 " for realpath(NULL,...)\n", argv[0]); in do_test()
143 " for realpath(...,NULL)\n", argv[0]); in do_test()
152 " for realpath(\"\",...)\n", argv[0]); in do_test()
171 argv[0], i, tests[i].out ? tests[i].out : "NULL", in do_test()
182 argv[0], i, tests[i].out ? tests[i].out : tests[i].resolved, in do_test()
191 argv[0], i, tests[i].error, errno); in do_test()
202 argv[0], result2, result); in do_test()
212 argv[0], cwd, buf); in do_test()
/glibc-2.36/misc/
Dinit-misc.c29 __init_misc (int argc, char **argv, char **envp) in weak_alias()
31 if (argv && argv[0]) in weak_alias()
33 char *p = strrchr (argv[0], '/'); in weak_alias()
35 __progname = argv[0]; in weak_alias()
38 __progname_full = argv[0]; in weak_alias()

12345678910>>...18