|
dpkg 1.22.7-3-g89f48
|
#include <config.h>#include <compat.h>#include <errno.h>#include <string.h>#include <stdbool.h>#include <stdarg.h>#include <stdlib.h>#include <stdio.h>#include <dpkg/macros.h>#include <dpkg/i18n.h>#include <dpkg/dpkg.h>#include <dpkg/dpkg-db.h>#include <dpkg/options.h>#include "force.h"Data Structures | |
| struct | forceinfo |
Enumerations | |
| enum | forcetype { FORCETYPE_DISABLED , FORCETYPE_ENABLED , FORCETYPE_DAMAGE } |
Functions | |
| bool | in_force (int flags) |
| void | set_force (int flags) |
| void | reset_force (int flags) |
| char * | get_force_string (void) |
| void | parse_force (const char *value, bool set) |
| void | set_force_default (int mask) |
| void | set_force_option (const struct cmdinfo *cip, const char *value) |
| void | reset_force_option (const struct cmdinfo *cip, const char *value) |
| void | forcibleerr (int forceflag, const char *fmt,...) |
| int | forcible_nonroot_error (int rc) |
| enum forcetype |
| int forcible_nonroot_error | ( | int | rc | ) |
References FORCE_NON_ROOT, and in_force().
Referenced by tarobject().
| void forcibleerr | ( | int | forceflag, |
| const char * | fmt, | ||
| ... | |||
| ) |
References _, args, in_force(), ohshitv(), warning(), and warningv().
Referenced by checkpath(), deferred_configure(), deferred_remove(), process_archive(), and tarobject().
| char * get_force_string | ( | void | ) |
References FORCE_ALL, in_force(), varbuf::used, varbuf_add_char(), varbuf_add_str, varbuf_detach(), and VARBUF_INIT.
Referenced by main(), and parse_force().
| bool in_force | ( | int | flags | ) |
Referenced by archivefiles(), check_conflict(), dependencies_ok(), dpkg_selabel_load(), force_breaks(), force_conflicts(), force_depends(), forcible_nonroot_error(), forcibleerr(), get_force_string(), main(), packages(), process_archive(), skip_due_to_hold(), tarobject(), and wanttoinstall().
| void parse_force | ( | const char * | value, |
| bool | set | ||
| ) |
References _, badusage(), dpkg_get_progname(), FORCE_ALL, get_force_string(), m_output(), min, reset_force(), set_force(), and warning().
Referenced by set_force_default(), and set_force_option().
| void reset_force | ( | int | flags | ) |
| void reset_force_option | ( | const struct cmdinfo * | cip, |
| const char * | value | ||
| ) |
| void set_force | ( | int | flags | ) |
| void set_force_default | ( | int | mask | ) |
References FORCETYPE_ENABLED, parse_force(), and set_force().
Referenced by main().
| void set_force_option | ( | const struct cmdinfo * | cip, |
| const char * | value | ||
| ) |