Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/glibc-2.36/posix/
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-spawn5.c63 handle_restart (int argc, char *argv[]) in handle_restart() argument
65 TEST_VERIFY (argc > 0); in handle_restart()
68 size_t nfds = argc > 1 ? argc - 1 : 0; in handle_restart()
148 int argc = 0; in spawn_closefrom_test() local
151 args[argc++] = *arg; in spawn_closefrom_test()
153 args[argc++] = xasprintf ("%d", lowfd); in spawn_closefrom_test()
156 args[argc++] = xasprintf ("%d", i); in spawn_closefrom_test()
159 args[argc++] = xasprintf ("%d", extrafds[i]); in spawn_closefrom_test()
161 args[argc] = NULL; in spawn_closefrom_test()
162 TEST_VERIFY (argc < argv_size); in spawn_closefrom_test()
[all …]
Dgetopt.c193 process_long_option (int argc, char **argv, const char *optstring, in process_long_option() argument
353 if (d->optind < argc) in process_long_option()
380 _getopt_initialize (int argc _GL_UNUSED, in _getopt_initialize()
470 _getopt_internal_r (int argc, char **argv, const char *optstring, in _getopt_internal_r() argument
476 if (argc < 1) in _getopt_internal_r()
482 optstring = _getopt_initialize (argc, argv, optstring, d, posixly_correct); in _getopt_internal_r()
517 while (d->optind < argc && NONOPTION_P) in _getopt_internal_r()
527 if (d->optind != argc && !strcmp (argv[d->optind], "--")) in _getopt_internal_r()
536 d->__last_nonopt = argc; in _getopt_internal_r()
538 d->optind = argc; in _getopt_internal_r()
[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
98 if (argc != 1) in do_test()
100 printf ("Wrong number of arguments (%d) in restart\n", argc); in do_test()
107 if (argc != 2 && argc != 5) in do_test()
109 printf ("Wrong number of arguments (%d)\n", argc); in do_test()
123 if (argc == 5) in do_test()
Dexecvpe.c41 ptrdiff_t argc; in maybe_script_execute() local
42 for (argc = 0; argv[argc] != NULL; argc++) in maybe_script_execute()
44 if (argc == INT_MAX - 1) in maybe_script_execute()
58 char *new_argv[argc > 1 ? 2 + argc : 3]; in maybe_script_execute()
61 if (argc > 1) in maybe_script_execute()
62 memcpy (new_argv + 2, argv + 1, argc * sizeof (char *)); in maybe_script_execute()
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
139 if (argc != 4) in do_test()
140 error (EXIT_FAILURE, 0, "wrong number of arguments (%d)", argc); in do_test()
145 if (argc != 2 && argc != 5) in do_test()
146 error (EXIT_FAILURE, 0, "wrong number of arguments (%d)", argc); in do_test()
177 if (argc == 5) 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()
513 if (argc < 3) in main()
517 argc -= 2; in main()
522 argc -= 1; in main()
532 if (argc > 1 && strncmp (argv[1], "-v", 2) == 0) in main()
536 if (argc < 3) in main()
541 argc -= 2; in main()
[all …]
Dtst-spawn6.c81 run_subprogram (int argc, char *argv[], const posix_spawnattr_t *attr, in run_subprogram() argument
90 TEST_VERIFY_EXIT (((argc - 1) + 4) < array_length (spargv)); in run_subprogram()
95 for (; i < argc - 1; i++) 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
232 run_test (argc, argv); in do_test()
Dexecl.c29 ptrdiff_t argc; in execl() local
32 for (argc = 1; va_arg (ap, const char *); argc++) in execl()
34 if (argc == INT_MAX) in execl()
49 char *argv[argc + 1]; in execl()
52 for (i = 1; i <= argc; i++) in execl()
Dexeclp.c30 ptrdiff_t argc; in execlp() local
33 for (argc = 1; va_arg (ap, const char *); argc++) in execlp()
35 if (argc == INT_MAX) in execlp()
49 char *argv[argc + 1]; in execlp()
52 for (i = 1; i <= argc; i++) in execlp()
Dexecle.c29 ptrdiff_t argc; in execle() local
32 for (argc = 1; va_arg (ap, const char *); argc++) in execle()
34 if (argc == INT_MAX) in execle()
49 char *argv[argc + 1]; in execle()
53 for (i = 1; i <= argc; i++) in execle()
/glibc-2.36/sysdeps/mach/hurd/i386/
Dinit-first.c53 posixland_init (int argc, char **argv, char **envp) in posixland_init() argument
75 __libc_argc = argc; in posixland_init()
82 __init_misc (argc, argv, envp); in posixland_init()
87 init1 (int argc, char *arg0, ...) in init1() argument
90 char **envp = &argv[argc + 1]; in init1()
139 int argc = *data; in init() local
141 char **envp = &argv[argc + 1]; in init()
251 _dl_init_first (int argc, ...) in _dl_init_first() argument
256 init (&argc); in _dl_init_first()
271 __libc_init_first (int argc, char **argv, char **envp) in __libc_init_first() argument
[all …]
/glibc-2.36/support/
Dtst-support_capture_subprocess.c218 int argc = 0; in do_subprogram() local
228 args[argc++] = *arg; in do_subprogram()
230 args[argc++] = (char*) "--direct"; in do_subprogram()
231 args[argc++] = (char*) "--restart"; in do_subprogram()
233 args[argc++] = test->out; in do_subprogram()
234 args[argc++] = test->err; in do_subprogram()
235 args[argc++] = (char*) write_mode_to_str (test->write_mode); in do_subprogram()
236 args[argc++] = signalstr; in do_subprogram()
237 args[argc++] = statusstr; in do_subprogram()
238 args[argc] = NULL; in do_subprogram()
[all …]
/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()
211 int argc,
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/unix/sysv/linux/arm/
Dmakecontext.c27 __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) in __makecontext() argument
42 if ((argc > NREG_ARGS) && (argc & 1) != 0) in __makecontext()
48 va_start (vl, argc); in __makecontext()
51 if (argc > NREG_ARGS) in __makecontext()
52 funcstack -= (argc - NREG_ARGS); in __makecontext()
64 for (reg = 0; (reg < argc) && (reg < NREG_ARGS); reg++) in __makecontext()
68 for (; reg < argc; reg++) in __makecontext()
/glibc-2.36/sysdeps/unix/sysv/linux/csky/
Dmakecontext.c28 __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) in __makecontext() argument
43 if ((argc > NREG_ARGS) && (argc & 1) != 0) in __makecontext()
49 va_start (vl, argc); in __makecontext()
52 if (argc > NREG_ARGS) in __makecontext()
53 funcstack -= (argc - NREG_ARGS); in __makecontext()
65 for (reg = 0; (reg < argc) && (reg < NREG_ARGS); reg++) in __makecontext()
69 for (; reg < argc; reg++) in __makecontext()
/glibc-2.36/sysdeps/unix/sysv/linux/sparc/sparc64/
Dmakecontext.c26 __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) in __makecontext() argument
34 sp -= (argc > 6 ? argc : 6) + 32; in __makecontext()
36 topsp = sp + (argc > 6 ? argc : 6) + 16; in __makecontext()
47 va_start (ap, argc); in __makecontext()
48 for (i = 0; i < argc; ++i) in __makecontext()
/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
68 if (argc != 2 && argc != 5) in do_test()
69 FAIL_EXIT1 ("wrong number of arguments (%d)", argc); in do_test()
71 if (argc == 5) in do_test()
/glibc-2.36/hurd/
Dhurdstartup.c56 int argc, envc; in _hurd_startup() local
101 argc = argcptr[0]; in _hurd_startup()
103 envp = &argv[argc + 1]; in _hurd_startup()
114 argc = __argz_count (args, argslen); in _hurd_startup()
123 + (argc + 1 + envc + 1) * sizeof (char *) in _hurd_startup()
125 *argcptr = argc; in _hurd_startup()
130 envp = &argv[argc + 1]; in _hurd_startup()
157 char *argv[argc + 1]; in _hurd_startup()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dspawni.c66 ptrdiff_t argc; member
81 ptrdiff_t argc = args->argc; in maybe_script_execute() local
84 char *new_argv[argc + 2]; in maybe_script_execute()
87 if (argc > 1) in maybe_script_execute()
88 memcpy (new_argv + 2, argv + 1, argc * sizeof (char *)); in maybe_script_execute()
325 ptrdiff_t argc = 0; in __spawnix() local
332 while (argv[argc++] != NULL) in __spawnix()
333 if (argc == limit) in __spawnix()
343 size_t argv_size = (argc * sizeof (void *)) + 512; in __spawnix()
369 args.argc = argc; in __spawnix()
/glibc-2.36/sysdeps/unix/sysv/linux/s390/s390-32/
Dmakecontext.c52 __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) in __makecontext() argument
65 va_start (ap, argc); in __makecontext()
66 for (int i = 0; i < argc && i < 5; ++i) in __makecontext()
70 if (argc > 5) in __makecontext()
72 sp -= argc - 5; in __makecontext()
73 for (int i = 5; i < argc; ++i) in __makecontext()
/glibc-2.36/sysdeps/unix/sysv/linux/s390/s390-64/
Dmakecontext.c52 __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) in __makecontext() argument
65 va_start (ap, argc); in __makecontext()
66 for (int i = 0; i < argc && i < 5; ++i) in __makecontext()
70 if (argc > 5) in __makecontext()
72 sp -= argc - 5; in __makecontext()
73 for (int i = 5; i < argc; ++i) in __makecontext()
/glibc-2.36/sysdeps/unix/sysv/linux/x86_64/
Dmakecontext.c56 __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) in __makecontext() argument
69 sp -= (argc > 6 ? argc - 6 : 0) + 1; in __makecontext()
73 idx_uc_link = (argc > 6 ? argc - 6 : 0) + 1; in __makecontext()
115 va_start (ap, argc); in __makecontext()
125 for (i = 0; i < argc; ++i) in __makecontext()
/glibc-2.36/rt/
Dtst-mqueue7.c63 do_test (int argc, char **argv) in do_test() argument
95 const char *newargv[argc + 2]; in do_test()
96 for (int i = 1; i < argc; ++i) in do_test()
98 newargv[argc - 1] = "--direct"; in do_test()
99 newargv[argc] = after_exec_arg; in do_test()
100 newargv[argc + 1] = NULL; in do_test()
/glibc-2.36/elf/
Ddl-init.c26 call_init (struct link_map *l, int argc, char **argv, char **env) in call_init() argument
56 DL_CALL_DT_INIT(l, l->l_addr + l->l_info[DT_INIT]->d_un.d_ptr, argc, argv, env); in call_init()
70 ((dl_init_t) addrs[j]) (argc, argv, env); in call_init()
76 _dl_init (struct link_map *main_map, int argc, char **argv, char **env) in _dl_init() argument
84 call_init (GL(dl_initfirst), argc, argv, env); in _dl_init()
102 ((dl_init_t) addrs[cnt]) (argc, argv, env); in _dl_init()
117 call_init (main_map->l_initfini[i], argc, argv, env); in _dl_init()

12345678910>>...15