|
dpkg 1.22.7-3-g89f48
|
#include <config.h>#include <compat.h>#include <stdarg.h>#include <stdlib.h>#include <unistd.h>#include <dpkg/dpkg.h>#include <dpkg/i18n.h>#include <dpkg/string.h>#include <dpkg/varbuf.h>#include <dpkg/file.h>#include <dpkg/path.h>#include <dpkg/command.h>Functions | |
| void | command_init (struct command *cmd, const char *filename, const char *name) |
| Initialize a command structure. | |
| void | command_destroy (struct command *cmd) |
| Destroy a command structure. | |
| void | command_add_arg (struct command *cmd, const char *arg) |
| Append an argument to the command's argv. | |
| void | command_add_argl (struct command *cmd, const char **argv) |
| Append an argument array to the command's argv. | |
| void | command_add_argv (struct command *cmd, va_list args) |
| Append a va_list of argument to the command's argv. | |
| void | command_add_args (struct command *cmd,...) |
| Append a variable list of argument to the command's argv. | |
| void | command_exec (struct command *cmd) |
| Execute the command specified. | |
| void | command_shell (const char *cmd, const char *name) |
| Execute a shell with a possible command. | |
| bool | command_in_path (const char *cmd) |
| Check whether a command can be found in PATH. | |