dpkg 1.21.11
Data Structures | Enumerations | Functions
force.c File Reference

(affb86e43)

#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"
Include dependency graph for force.c:

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)
 

Enumeration Type Documentation

◆ forcetype

enum forcetype
Enumerator
FORCETYPE_DISABLED 
FORCETYPE_ENABLED 
FORCETYPE_DAMAGE 

Function Documentation

◆ forcible_nonroot_error()

int forcible_nonroot_error ( int  rc)

References FORCE_NON_ROOT, and in_force().

Here is the call graph for this function:

◆ forcibleerr()

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

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

Referenced by checkpath(), deferred_configure(), deferred_remove(), 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 VARBUF_INIT.

Referenced by parse_force().

Here is the caller graph for this function:

◆ in_force()

bool in_force ( int  flags)

Referenced by archivefiles(), dpkg_selabel_load(), force_breaks(), force_conflicts(), force_depends(), forcible_nonroot_error(), forcibleerr(), packages(), skip_due_to_hold(), and wanttoinstall().

Here is the caller graph for this function:

◆ parse_force()

void parse_force ( const char *  value,
bool  set 
)

References _, dpkg_get_progname(), and get_force_string().

Referenced by 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 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)

◆ set_force_default()

void set_force_default ( int  mask)

Referenced by main().

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: