dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
force.c File Reference

(ae03bfd28)

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

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 *  fmt,
  ... 
)

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: