52 |
command *command_new_argv (const char *name, va_list argv); |
command *command_new_argv (const char *name, va_list argv); |
53 |
command *command_new_args (const char *name, ...); |
command *command_new_args (const char *name, ...); |
54 |
|
|
55 |
|
/* Return a duplicate of a command. */ |
56 |
|
command *command_dup (command *cmd); |
57 |
|
|
58 |
/* Add an argument to a command. */ |
/* Add an argument to a command. */ |
59 |
void command_arg (command *cmd, const char *arg); |
void command_arg (command *cmd, const char *arg); |
60 |
|
|
76 |
pipeline *pipeline_new_commandv (command *cmd1, va_list cmdv); |
pipeline *pipeline_new_commandv (command *cmd1, va_list cmdv); |
77 |
pipeline *pipeline_new_commands (command *cmd1, ...); |
pipeline *pipeline_new_commands (command *cmd1, ...); |
78 |
|
|
79 |
|
/* Joins two pipelines, neither of which are allowed to be started. Discards |
80 |
|
* want_out and outfd from p1, and want_in and infd from p2. |
81 |
|
*/ |
82 |
|
pipeline *pipeline_join (pipeline *p1, pipeline *p2); |
83 |
|
|
84 |
/* Add a command to a pipeline. */ |
/* Add a command to a pipeline. */ |
85 |
void pipeline_command (pipeline *p, command *cmd); |
void pipeline_command (pipeline *p, command *cmd); |
86 |
|
|