dpkg 1.21.11
Functions
command.c File Reference

(94886592c)

#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/path.h>
#include <dpkg/command.h>
Include dependency graph for command.c:

Functions

void command_init (struct command *cmd, const char *filename, const char *name)
 Initialize a command structure. More...
 
void command_destroy (struct command *cmd)
 Destroy a command structure. More...
 
void command_add_arg (struct command *cmd, const char *arg)
 Append an argument to the command's argv. More...
 
void command_add_argl (struct command *cmd, const char **argv)
 Append an argument array to the command's argv. More...
 
void command_add_argv (struct command *cmd, va_list args)
 Append a va_list of argument to the command's argv. More...
 
void command_add_args (struct command *cmd,...)
 Append a variable list of argument to the command's argv. More...
 
void command_exec (struct command *cmd)
 Execute the command specified. More...
 
void command_shell (const char *cmd, const char *name)
 Execute a shell with a possible command. More...