dpkg 1.21.11
Data Structures | Functions | Variables
enquiry.c File Reference

(9d3574c74)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/arch.h>
#include <dpkg/pkg-array.h>
#include <dpkg/pkg-show.h>
#include <dpkg/triglib.h>
#include <dpkg/options.h>
#include <dpkg/db-ctrl.h>
#include <dpkg/db-fsys.h>
#include "main.h"
Include dependency graph for enquiry.c:

Data Structures

struct  audit_problem
 
struct  sectionentry
 
struct  assert_feature
 

Functions

int audit (const char *const *argv)
 
int unpackchk (const char *const *argv)
 
int assert_feature (const char *const *argv)
 
int predeppackage (const char *const *argv)
 Print a single package which: (a) is the target of one or more relevant predependencies. More...
 
int printarch (const char *const *argv)
 
int print_foreign_arches (const char *const *argv)
 
int validate_pkgname (const char *const *argv)
 
int validate_trigname (const char *const *argv)
 
int validate_archname (const char *const *argv)
 
int validate_version (const char *const *argv)
 
int cmpversions (const char *const *argv)
 

Variables

const char * assert_feature_name
 

Function Documentation

◆ assert_feature()

int assert_feature ( const char *const *  argv)

References _, assert_feature(), assert_feature_name, and dpkg_get_progname().

Referenced by assert_feature().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ audit()

int audit ( const char *const *  argv)

References modstatdb_open(), msdbrw_readonly, pkg_array_init_from_hash(), and pkg_array_init_from_names().

Here is the call graph for this function:

◆ cmpversions()

int cmpversions ( const char *const *  argv)

References _, badusage(), cipaction, dbg_general, debug(), dpkg_error_destroy(), dpkg_error_print(), dpkg_version_blank(), dpkg_version_compare(), dpkg_version_is_informative(), cmdinfo::olong, parseversion(), vdew_always, versiondescribe_c(), and warning().

Here is the call graph for this function:

◆ predeppackage()

int predeppackage ( const char *const *  argv)

Print a single package which: (a) is the target of one or more relevant predependencies.

(b) has itself no unsatisfied pre-dependencies.

If such a package is present output is the Packages file entry, which can be massaged as appropriate.

Exit status: 0 = a package printed, OK 1 = no suitable package available 2 = error

References _, pkginfo::archives, pkginfo::available, pkgset::available, badusage(), varbuf::buf, cipaction, clear_istobes(), pkginfo::clientdata, dep_predepends, dep_provides, pkgset::depended, pkgbin::depends, depisok(), deppossi_pkg_iter_free(), deppossi_pkg_iter_new(), deppossi_pkg_iter_next(), describedepcon(), deppossi::ed, internerr, perpackagestate::istobe, dependency::list, m_output(), modstatdb_open(), msdbrw_available_readonly, msdbrw_readonly, dependency::next, deppossi::next, notice(), ohshit(), cmdinfo::olong, pkg_hash_iter_free(), pkg_hash_iter_new(), pkg_hash_iter_next_pkg(), PKG_ISTOBE_NORMAL, PKG_ISTOBE_PREINSTALL, pkg_virtual_deppossi_satisfied(), PKG_WANT_INSTALL, pkgbin_name(), pnaw_nonambig, deppossi_pkg_iterator::possi, dependency::type, dependency::up, deppossi::up, varbuf_end_str(), varbuf_reset(), versionsatisfied(), pkginfo::want, wpb_available, and writerecord().

Here is the call graph for this function:

◆ print_foreign_arches()

int print_foreign_arches ( const char *const *  argv)

References _, badusage(), cipaction, DPKG_ARCH_FOREIGN, dpkg_arch_get_list(), dpkg_arch_load_list(), m_output(), dpkg_arch::name, dpkg_arch::next, cmdinfo::olong, and dpkg_arch::type.

Here is the call graph for this function:

◆ printarch()

int printarch ( const char *const *  argv)

References _, badusage(), cipaction, dpkg_arch_get(), DPKG_ARCH_NATIVE, m_output(), and cmdinfo::olong.

Here is the call graph for this function:

◆ unpackchk()

int unpackchk ( const char *const *  argv)

References _, badusage(), cipaction, modstatdb_open(), msdbrw_readonly, cmdinfo::olong, pkg_hash_iter_new(), and pkg_hash_iter_next_pkg().

Here is the call graph for this function:

◆ validate_archname()

int validate_archname ( const char *const *  argv)

References _, badusage(), cipaction, dpkg_arch_name_is_illegal(), ohshit(), and cmdinfo::olong.

Here is the call graph for this function:

◆ validate_pkgname()

int validate_pkgname ( const char *const *  argv)

References _, badusage(), cipaction, ohshit(), cmdinfo::olong, and pkg_name_is_illegal().

Here is the call graph for this function:

◆ validate_trigname()

int validate_trigname ( const char *const *  argv)

References _, badusage(), cipaction, ohshit(), cmdinfo::olong, and trig_name_is_illegal().

Here is the call graph for this function:

◆ validate_version()

int validate_version ( const char *const *  argv)

Variable Documentation

◆ assert_feature_name

const char* assert_feature_name

Referenced by assert_feature().