Lines Matching defs:argv
192 extern int start_remote_job PARAMS ((char **argv, char **envp, int stdin_fd,
981 char *argv;
983 char **argv;
1025 argv = p;
1027 argv = construct_command_argv (p, &end, child->file, &child->sh_batch_file);
1042 if (argv != 0 && question_flag && !(flags & COMMANDS_RECURSE))
1045 free (argv[0]);
1046 free ((char *) argv);
1056 We construct ARGV only to find the end of the command line. */
1058 if (argv)
1060 free (argv[0]);
1061 free ((char *) argv);
1064 argv = 0;
1067 if (argv == 0)
1114 (argv[0] && !strcmp (argv[0], "/bin/sh"))
1116 && (argv[1]
1117 && argv[1][0] == '-' && argv[1][1] == 'c' && argv[1][2] == '\0')
1118 && (argv[2] && argv[2][0] == ':' && argv[2][1] == '\0')
1119 && argv[3] == NULL)
1121 free (argv[0]);
1122 free ((char *) argv);
1132 free (argv[0]);
1133 free ((char *) argv);
1194 if (start_remote_job (argv, child->environment,
1224 if (!child_execute_job (argv, child)) {
1247 argv, child->environment);
1285 argv, child->environment);
1312 char *cmdline = argv[0];
1325 cmdline = argv[2]; /* get past "shell -c" */
1336 proc_return = spawnvpe (P_WAIT, argv[0], argv, child->environment);
1356 amiga_status = MyExecute (argv);
1372 arg0 = argv[0];
1381 hPID = process_easy(argv, child->environment);
1391 for (i = 0; argv[i]; i++)
1392 fprintf(stderr, "%s ", argv[i]);
1410 free (argv[0]);
1411 free ((char *) argv);
1905 child_execute_job (int stdin_fd, int stdout_fd, char **argv, char **envp)
1939 pid = exec_command (argv, envp);
1964 Replace the current process with one executing the command in ARGV.
1968 child_execute_job (int stdin_fd, int stdout_fd, char **argv, char **envp)
1980 exec_command (argv, envp);
1987 /* Replace the current process with one running the command in ARGV,
1996 exec_command (char **argv, char **envp)
2004 execve (argv[0], argv, envp);
2005 perror_with_name ("execve: ", argv[0]);
2018 hPID = process_easy(argv, envp);
2027 for (i = 0; argv[i]; i++)
2028 fprintf(stderr, "%s ", argv[i]);
2074 pid = spawnvpe (P_NOWAIT, argv[0], argv, envp);
2087 execvp (argv[0], argv);
2094 error (NILF, _("%s: Command not found"), argv[0]);
2119 while (argv[argc] != 0)
2139 new_argv[i] = argv[0];
2142 new_argv[i + argc] = argv[argc];
2168 perror_with_name ("execvp: ", argv[0]);
2181 void exec_command (char **argv)
2183 MyExecute (argv);
2812 /* create argv */
2816 new_argv[1] = *batch_filename_ptr; /* only argv[0] gets freed later */
2940 char **argv;
2961 argv = (char **)malloc (argc * sizeof (char *));
2962 if (argv == 0)
2974 DB (DB_JOBS, ("argv[%d] = [%s]\n", argc, cptr));
2975 argv[argc++] = cptr;
3049 argv = construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr);
3054 return argv;