dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions | Variables
update-alternatives.c File Reference

(5601b4769)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <errno.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <dirent.h>
#include <time.h>
#include <setjmp.h>
#include <assert.h>
#include <locale.h>
#include <ctype.h>
#include <limits.h>
#include <dpkg/macros.h>
#include <dpkg/i18n.h>
Include dependency graph for update-alternatives.c:

Data Structures

struct  action_name
 
struct  fileset
 
struct  fileset::slave_file
 
struct  slave_link
 
struct  commit_operation
 
struct  alternative
 
struct  altdb_context
 
struct  alternative_map
 

Macros

#define PROGNAME   "update-alternatives"
 
#define MISSING_ARGS(nb)   (argc < i + nb + 1)
 

Enumerations

enum  action {
  ACTION_NONE , ACTION_INSTALL , ACTION_SET , ACTION_SET_SELECTIONS ,
  ACTION_GET_SELECTIONS , ACTION_AUTO , ACTION_CONFIG , ACTION_CONFIG_ALL ,
  ACTION_REMOVE , ACTION_REMOVE_ALL , ACTION_LIST , ACTION_QUERY ,
  ACTION_DISPLAY
}
 
enum  output_mode { OUTPUT_QUIET = -1 , OUTPUT_NORMAL = 0 , OUTPUT_VERBOSE = 1 , OUTPUT_DEBUG = 2 }
 
enum  alternative_update_reason { ALT_UPDATE_NO , ALT_UPDATE_SLAVE_CHANGED , ALT_UPDATE_LINK_BROKEN }
 
enum  alternative_path_status { ALT_PATH_SYMLINK , ALT_PATH_MISSING , ALT_PATH_OTHER }
 

Functions

int main (int argc, char **argv)
 

Variables

enum LIBCOMPAT_ATTR_ENUM_FLAGS altdb_flags
 
 ALTDB_LAX_PARSER = 1 << 0
 
 ALTDB_WARN_PARSER = 1 << 1
 

Macro Definition Documentation

◆ MISSING_ARGS

#define MISSING_ARGS (   nb)    (argc < i + nb + 1)

◆ PROGNAME

#define PROGNAME   "update-alternatives"

Enumeration Type Documentation

◆ action

enum action
Enumerator
ACTION_NONE 
ACTION_INSTALL 
ACTION_SET 
ACTION_SET_SELECTIONS 
ACTION_GET_SELECTIONS 
ACTION_AUTO 
ACTION_CONFIG 
ACTION_CONFIG_ALL 
ACTION_REMOVE 
ACTION_REMOVE_ALL 
ACTION_LIST 
ACTION_QUERY 
ACTION_DISPLAY 

◆ alternative_path_status

Enumerator
ALT_PATH_SYMLINK 
ALT_PATH_MISSING 
ALT_PATH_OTHER 

◆ alternative_update_reason

Enumerator
ALT_UPDATE_NO 
ALT_UPDATE_SLAVE_CHANGED 
ALT_UPDATE_LINK_BROKEN 

◆ output_mode

Enumerator
OUTPUT_QUIET 
OUTPUT_NORMAL 
OUTPUT_VERBOSE 
OUTPUT_DEBUG 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ altdb_flags

enum LIBCOMPAT_ATTR_ENUM_FLAGS altdb_flags

◆ ALTDB_LAX_PARSER

ALTDB_LAX_PARSER = 1 << 0

◆ ALTDB_WARN_PARSER

ALTDB_WARN_PARSER = 1 << 1

Referenced by main().