dpkg 1.21.11
Data Structures | Macros | Functions | Variables
main.c File Reference

(c9cfffceb)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <limits.h>
#include <string.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <dpkg/macros.h>
#include <dpkg/i18n.h>
#include <dpkg/c-ctype.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/arch.h>
#include <dpkg/subproc.h>
#include <dpkg/command.h>
#include <dpkg/pager.h>
#include <dpkg/options.h>
#include <dpkg/db-fsys.h>
#include "main.h"
#include "filters.h"
Include dependency graph for main.c:

Data Structures

struct  debuginfo
 

Macros

#define DBG_DEF(n, d)    { .flag = dbg_##n, .name = #n, .desc = d }
 
#define ACTIONBACKEND(longopt, shortopt, backend)    { longopt, shortopt, 0, NULL, NULL, setaction, 0, (void *)backend, execbackend }
 

Functions

int execbackend (const char *const *argv) DPKG_ATTR_NORET
 
int commandfd (const char *const *argv)
 
int main (int argc, const char *const *argv)
 

Variables

int f_robot = 0
 
int f_pending =0
 
int f_recursive =0
 
int f_alsoselect =1
 
int f_skipsame =0
 
int f_noact =0
 
int f_autodeconf =0
 
int f_nodebsig =0
 
int f_triggers = 0
 
int errabort = 50
 
struct pkg_listignoredependss = NULL
 

Macro Definition Documentation

◆ ACTIONBACKEND

#define ACTIONBACKEND (   longopt,
  shortopt,
  backend 
)     { longopt, shortopt, 0, NULL, NULL, setaction, 0, (void *)backend, execbackend }

◆ DBG_DEF

#define DBG_DEF (   n,
 
)     { .flag = dbg_##n, .name = #n, .desc = d }

Function Documentation

◆ commandfd()

int commandfd ( const char *const *  argv)

References _, badusage(), cipaction, dpkg_options_parse_arg_int(), ohshite(), cmdinfo::olong, push_error_context(), and VARBUF_INIT.

Here is the call graph for this function:

◆ execbackend()

int execbackend ( const char *const *  argv)

References cmdinfo::arg_ptr, command::argv, cipaction, command_add_arg(), command_add_argl(), command_exec(), command_init(), cmdinfo::olong, and str_fmt().

Here is the call graph for this function:

◆ main()

int main ( int  argc,
const char *const *  argv 
)

References DPKG, dpkg_locales_init(), dpkg_options_load(), dpkg_program_init(), FORCE_ALL, and set_force_default().

Here is the call graph for this function:

Variable Documentation

◆ errabort

int errabort = 50

◆ f_alsoselect

int f_alsoselect =1

Referenced by wanttoinstall().

◆ f_autodeconf

int f_autodeconf =0

Referenced by check_breaks().

◆ f_noact

int f_noact =0

◆ f_nodebsig

int f_nodebsig =0

◆ f_pending

int f_pending =0

Referenced by deferred_remove(), and packages().

◆ f_recursive

int f_recursive =0

Referenced by archivefiles().

◆ f_robot

int f_robot = 0

◆ f_skipsame

int f_skipsame =0

Referenced by wanttoinstall().

◆ f_triggers

int f_triggers = 0

◆ ignoredependss

struct pkg_list* ignoredependss = NULL

Referenced by ignore_depends().