Lines Matching defs:command

131  *	doshell(command, ignore_error)
133 * Used to run command lines that include shell meta-characters.
140 * command The command to run
148 doshell(wchar_t *command, register Boolean ignore_error, char *stdout_file, char *stderr_file, int nice_prio)
170 * Only prepend the /usr/bin/nice command to the original command
181 if ((length = wcslen(command)) >= MAXPATHLEN) {
183 (void) wcstombs(tmp_mbs_buffer, command, (length * MB_LEN_MAX) + 1);
188 WCSTOMBS(mbs_buffer, command);
224 * This starts command when make invokes it directly (without a shell).
230 * name The name of the command to run
231 * argv Arguments for the command
297 * doexec(command, ignore_error)
306 * command The command to run
313 doexec(register wchar_t *command, register Boolean ignore_error, char *stdout_file, char *stderr_file, pathpt vroot_path, int nice_prio)
325 * Only prepend the /usr/bin/nice command to the original command
332 for (t = command; *t != (int) nul_char; t++) {
340 * Don't worry about prepending /usr/bin/nice command to argv[0].
341 * In fact, doing it may cause the sh command to fail!
344 if ((length = wcslen(command)) >= MAXPATHLEN) {
346 (void) wcstombs(tmp_mbs_buffer, command, (length * MB_LEN_MAX) + 1);
350 WCSTOMBS(mbs_buffer, command);
360 for (t = command; *t;) {
363 WCSTOMBS(mbs_buffer, command);
387 /* Then exec the command with that argument list. */
397 fatal_mksh(gettext("Cannot load command `%s': %s"), argv[1], errmsg(errno));
410 * await(ignore_error, silent_error, target, command, running_pid)
422 * command The command we ran, for error msgs
433 await(register Boolean ignore_error, register Boolean silent_error, Name target, wchar_t *command, pid_t running_pid, void *xdrs_p, int job_msg_id)
512 * sh_command2string(command, destination)
514 * Run one sh command and capture the output from it.
519 * command The command to run
520 * destination Where to deposit the output from the command
527 sh_command2string(register String command, register String destination)
534 command->text.p = (int) nul_char;
535 WCSTOMBS(mbs_buffer, command->buffer.start);
537 WCSTOMBS(mbs_buffer, command->buffer.start);
538 fatal_mksh(gettext("Could not run command `%s' for :sh transformation"),
551 * the output of the 'sh:' command is used to evaluate
562 * If the command didn't generate any output,
570 WCSTOMBS(mbs_buffer, command->buffer.start);
571 fatal_mksh(gettext("The command `%s' returned status `%d'"),