apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

dpkgpm.cc File Reference
#include <config.h>
#include <apt-pkg/cachefile.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/debsystem.h>
#include <apt-pkg/depcache.h>
#include <apt-pkg/dpkgpm.h>
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/install-progress.h>
#include <apt-pkg/macros.h>
#include <apt-pkg/packagemanager.h>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/statechanges.h>
#include <apt-pkg/strutl.h>
#include <apt-pkg/version.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
#include <algorithm>
#include <array>
#include <cstring>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <type_traits>
#include <unordered_set>
#include <utility>
#include <vector>
#include <apti18n.h>
Include dependency graph for dpkgpm.cc:

Go to the source code of this file.

Classes

class  pkgDPkgPMPrivate
 

Macros

#define HISTORYINFO(X, Y)   { line = &X; infostring = Y; }
 
#define ADDARG(X)   do { const char *arg = (X); Args.push_back(arg); Size += strlen(arg); } while (0)
 
#define ADDARGC(X)   ADDARG(X)
 

Functions

static APT_PURE string AptHistoryRequestingUser ()
 
static APT_PURE unsigned int EnvironmentSize ()
 
static bool ionice (int PID)
 
static pkgCache::VerIterator FindNowVersion (const pkgCache::PkgIterator &Pkg)
 
static pkgCache::VerIterator FindToBeRemovedVersion (pkgCache::PkgIterator const &Pkg)
 
static void cleanUpTmpDir (char *const tmpdir)
 
static bool ItemIsEssential (pkgDPkgPM::Item const &I)
 
static bool ItemIsProtected (pkgDPkgPM::Item const &I)
 
void SigINT (int)
 

Variables

char ** environ
 

Macro Definition Documentation

◆ ADDARG

#define ADDARG (   X)    do { const char *arg = (X); Args.push_back(arg); Size += strlen(arg); } while (0)

◆ ADDARGC

#define ADDARGC (   X)    ADDARG(X)

◆ HISTORYINFO

#define HISTORYINFO (   X,
 
)    { line = &X; infostring = Y; }

Function Documentation

◆ AptHistoryRequestingUser()

static APT_PURE string AptHistoryRequestingUser ( )
static

Definition at line 67 of file dpkgpm.cc.

References strprintf().

Referenced by pkgDPkgPM::OpenLog().

◆ cleanUpTmpDir()

static void cleanUpTmpDir ( char *const  tmpdir)
static

Definition at line 1373 of file dpkgpm.cc.

References DIR.

Referenced by pkgDPkgPM::Go().

◆ EnvironmentSize()

static APT_PURE unsigned int EnvironmentSize ( )
static

Definition at line 91 of file dpkgpm.cc.

References environ.

Referenced by pkgDPkgPM::Go().

◆ FindNowVersion()

◆ FindToBeRemovedVersion()

static pkgCache::VerIterator FindToBeRemovedVersion ( pkgCache::PkgIterator const &  Pkg)
static

Definition at line 218 of file dpkgpm.cc.

References FindNowVersion().

Referenced by pkgDPkgPM::Go().

◆ ionice()

static bool ionice ( int  PID)
static

Definition at line 180 of file dpkgpm.cc.

References ExecFork(), ExecWait(), and FileExists().

Referenced by pkgDPkgPM::Go().

◆ ItemIsEssential()

static bool ItemIsEssential ( pkgDPkgPM::Item const &  I)
static

Definition at line 1410 of file dpkgpm.cc.

References _config, pkgCache< Str, Itr >::Flag::Essential, and I.

Referenced by pkgDPkgPM::Go().

◆ ItemIsProtected()

static bool ItemIsProtected ( pkgDPkgPM::Item const &  I)
static

Definition at line 1419 of file dpkgpm.cc.

References _config, I, and pkgCache< Str, Itr >::Flag::Important.

Referenced by pkgDPkgPM::Go().

◆ SigINT()

void SigINT ( int  sig)

Definition at line 2227 of file dpkgpm.cc.

References pkgPackageManager::SigINTStop.

Referenced by pkgDPkgPM::Go().

Variable Documentation

◆ environ

char** environ
extern

Referenced by EnvironmentSize().