Lines Matching refs:argv
258 char **argv; member
276 idx_t string_bytes = (intptr_t) ss->argv[ss->argc]; in splitbuf_grow()
277 ss->argv = xpalloc (ss->argv, &ss->half_alloc, 1, in splitbuf_grow()
278 MIN (INT_MAX, IDX_MAX), 2 * sizeof *ss->argv); in splitbuf_grow()
279 memmove (ss->argv + ss->half_alloc, ss->argv + old_half_alloc, string_bytes); in splitbuf_grow()
286 idx_t string_bytes = (intptr_t) ss->argv[ss->argc]; in splitbuf_append_byte()
287 if (ss->half_alloc * sizeof *ss->argv <= string_bytes) in splitbuf_append_byte()
289 ((char *) (ss->argv + ss->half_alloc))[string_bytes] = c; in splitbuf_append_byte()
290 ss->argv[ss->argc] = (char *) (intptr_t) (string_bytes + 1); in splitbuf_append_byte()
304 ss->argv[argc + 1] = ss->argv[argc]; in check_start_new_arg()
316 char **argv = ss->argv; in splitbuf_finishup() local
317 char *stringbase = (char *) (ss->argv + ss->half_alloc); in splitbuf_finishup()
319 argv[i] = stringbase + (intptr_t) argv[i]; in splitbuf_finishup()
320 return argv; in splitbuf_finishup()
353 ss.argv = xnmalloc (extra_argc + 2, 2 * sizeof *ss.argv); in build_argv()
358 ss.argv[ss.argc] = 0; in build_argv()
749 main (int argc, char **argv) in main() argument
756 initialize_main (&argc, &argv); in main()
757 set_program_name (argv[0]); in main()
767 while ((optc = getopt_long (argc, argv, shortopts, longopts, nullptr)) != -1) in main()
800 parse_split_string (optarg, &optind, &argc, &argv); in main()
818 if (optind < argc && STREQ (argv[optind], "-")) in main()
834 while (optind < argc && (eq = strchr (argv[optind], '='))) in main()
836 devmsg ("setenv: %s\n", argv[optind]); in main()
838 if (putenv (argv[optind])) in main()
842 quote (argv[optind])); in main()
888 devmsg ("executing: %s\n", argv[optind]); in main()
890 devmsg (" arg[%d]= %s\n", i-optind, quote (argv[i])); in main()
893 execvp (argv[optind], &argv[optind]); in main()
896 error (0, errno, "%s", quote (argv[optind])); in main()
898 if (exit_status == EXIT_ENOENT && strpbrk (argv[optind], C_ISSPACE_CHARS)) in main()