dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions | Variables
force.h File Reference

(8389e7010)

#include <stdbool.h>
#include <dpkg/dpkg.h>
#include <dpkg/options.h>
Include dependency graph for force.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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 *format,...) DPKG_ATTR_PRINTF(2)
 
int forcible_nonroot_error (int rc)
 

Variables

enum DPKG_ATTR_ENUM_FLAGS force_flags
 
 FORCE_ARCHITECTURE = DPKG_BIT(0)
 
 FORCE_BAD_PATH = DPKG_BIT(1)
 
 FORCE_BAD_VERIFY = DPKG_BIT(2)
 
 FORCE_BAD_VERSION = DPKG_BIT(3)
 
 FORCE_BREAKS = DPKG_BIT(4)
 
 FORCE_CONFF_ASK = DPKG_BIT(5)
 
 FORCE_CONFF_DEF = DPKG_BIT(6)
 
 FORCE_CONFF_MISS = DPKG_BIT(7)
 
 FORCE_CONFF_NEW = DPKG_BIT(8)
 
 FORCE_CONFF_OLD = DPKG_BIT(9)
 
 FORCE_CONFIGURE_ANY = DPKG_BIT(10)
 
 FORCE_CONFLICTS = DPKG_BIT(11)
 
 FORCE_DEPENDS = DPKG_BIT(12)
 
 FORCE_DEPENDS_VERSION = DPKG_BIT(13)
 
 FORCE_DOWNGRADE = DPKG_BIT(14)
 
 FORCE_HOLD = DPKG_BIT(15)
 
 FORCE_NON_ROOT = DPKG_BIT(16)
 
 FORCE_OVERWRITE = DPKG_BIT(17)
 
 FORCE_OVERWRITE_DIR = DPKG_BIT(18)
 
 FORCE_OVERWRITE_DIVERTED = DPKG_BIT(19)
 
 FORCE_REMOVE_ESSENTIAL = DPKG_BIT(20)
 
 FORCE_REMOVE_REINSTREQ = DPKG_BIT(21)
 
 FORCE_SCRIPT_CHROOTLESS = DPKG_BIT(22)
 
 FORCE_UNSAFE_IO = DPKG_BIT(23)
 
 FORCE_STATOVERRIDE_ADD = DPKG_BIT(24)
 
 FORCE_STATOVERRIDE_DEL = DPKG_BIT(25)
 
 FORCE_SECURITY_MAC = DPKG_BIT(26)
 
 FORCE_REMOVE_PROTECTED = DPKG_BIT(27)
 
 FORCE_ALL = 0xffffffff
 

Function Documentation

◆ forcible_nonroot_error()

int forcible_nonroot_error ( int  rc)

References FORCE_NON_ROOT, and in_force().

Referenced by tarobject().

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

◆ forcibleerr()

void forcibleerr ( int  forceflag,
const char *  format,
  ... 
)

References _, args, in_force(), ohshitv(), warning(), and warningv().

Referenced by checkpath(), deferred_configure(), deferred_remove(), process_archive(), and tarobject().

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

◆ get_force_string()

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().

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

◆ in_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().

Here is the caller graph for this function:

◆ parse_force()

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().

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

◆ reset_force()

void reset_force ( int  flags)

Referenced by parse_force(), and reset_force_option().

Here is the caller graph for this function:

◆ reset_force_option()

void reset_force_option ( const struct cmdinfo cip,
const char *  value 
)

References cmdinfo::arg_int, and reset_force().

Here is the call graph for this function:

◆ set_force()

void set_force ( int  flags)

Referenced by parse_force(), and set_force_default().

Here is the caller graph for this function:

◆ set_force_default()

void set_force_default ( int  mask)

References FORCETYPE_ENABLED, parse_force(), and set_force().

Referenced by main().

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

◆ set_force_option()

void set_force_option ( const struct cmdinfo cip,
const char *  value 
)

References cmdinfo::arg_int, and parse_force().

Here is the call graph for this function:

Variable Documentation

◆ FORCE_ALL

FORCE_ALL = 0xffffffff

Referenced by get_force_string(), main(), and parse_force().

◆ FORCE_ARCHITECTURE

FORCE_ARCHITECTURE = DPKG_BIT(0)

Referenced by process_archive().

◆ FORCE_BAD_PATH

FORCE_BAD_PATH = DPKG_BIT(1)

Referenced by checkpath().

◆ FORCE_BAD_VERIFY

FORCE_BAD_VERIFY = DPKG_BIT(2)

◆ FORCE_BAD_VERSION

FORCE_BAD_VERSION = DPKG_BIT(3)

Referenced by process_archive().

◆ FORCE_BREAKS

FORCE_BREAKS = DPKG_BIT(4)

Referenced by force_breaks().

◆ FORCE_CONFF_ASK

FORCE_CONFF_ASK = DPKG_BIT(5)

◆ FORCE_CONFF_DEF

FORCE_CONFF_DEF = DPKG_BIT(6)

◆ FORCE_CONFF_MISS

FORCE_CONFF_MISS = DPKG_BIT(7)

◆ FORCE_CONFF_NEW

FORCE_CONFF_NEW = DPKG_BIT(8)

◆ FORCE_CONFF_OLD

FORCE_CONFF_OLD = DPKG_BIT(9)

◆ FORCE_CONFIGURE_ANY

FORCE_CONFIGURE_ANY = DPKG_BIT(10)

◆ FORCE_CONFLICTS

FORCE_CONFLICTS = DPKG_BIT(11)

Referenced by force_conflicts().

◆ FORCE_DEPENDS

FORCE_DEPENDS = DPKG_BIT(12)

Referenced by dependencies_ok(), and force_depends().

◆ FORCE_DEPENDS_VERSION

FORCE_DEPENDS_VERSION = DPKG_BIT(13)

◆ FORCE_DOWNGRADE

FORCE_DOWNGRADE = DPKG_BIT(14)

Referenced by wanttoinstall().

◆ force_flags

enum DPKG_ATTR_ENUM_FLAGS force_flags

◆ FORCE_HOLD

FORCE_HOLD = DPKG_BIT(15)

Referenced by skip_due_to_hold().

◆ FORCE_NON_ROOT

FORCE_NON_ROOT = DPKG_BIT(16)

◆ FORCE_OVERWRITE

FORCE_OVERWRITE = DPKG_BIT(17)

Referenced by tarobject().

◆ FORCE_OVERWRITE_DIR

FORCE_OVERWRITE_DIR = DPKG_BIT(18)

Referenced by tarobject().

◆ FORCE_OVERWRITE_DIVERTED

FORCE_OVERWRITE_DIVERTED = DPKG_BIT(19)

Referenced by tarobject().

◆ FORCE_REMOVE_ESSENTIAL

FORCE_REMOVE_ESSENTIAL = DPKG_BIT(20)

Referenced by check_conflict(), and deferred_remove().

◆ FORCE_REMOVE_PROTECTED

FORCE_REMOVE_PROTECTED = DPKG_BIT(27)

Referenced by check_conflict(), and deferred_remove().

◆ FORCE_REMOVE_REINSTREQ

FORCE_REMOVE_REINSTREQ = DPKG_BIT(21)

◆ FORCE_SCRIPT_CHROOTLESS

FORCE_SCRIPT_CHROOTLESS = DPKG_BIT(22)

◆ FORCE_SECURITY_MAC

FORCE_SECURITY_MAC = DPKG_BIT(26)

Referenced by dpkg_selabel_load().

◆ FORCE_STATOVERRIDE_ADD

FORCE_STATOVERRIDE_ADD = DPKG_BIT(24)

◆ FORCE_STATOVERRIDE_DEL

FORCE_STATOVERRIDE_DEL = DPKG_BIT(25)

◆ FORCE_UNSAFE_IO

FORCE_UNSAFE_IO = DPKG_BIT(23)