#include <apt-pkg/macros.h>
#include <apt-pkg/aptconfiguration.h>
#include <string>
#include <vector>
#include <zlib.h>
Classes | |
class | FileFd |
Macros | |
#define | APT_HAS_GZIP 1 |
Functions | |
bool | CopyFile (FileFd &From, FileFd &To) |
bool | CreateAPTDirectoryIfNeeded (std::string const &Parent, std::string const &Path) |
Ensure the existence of the given Path. More... | |
bool | CreateDirectory (std::string const &Parent, std::string const &Path) |
bool | DirectoryExists (std::string const &Path) __attrib_const |
pid_t | ExecFork () |
bool | ExecWait (pid_t Pid, const char *Name, bool Reap=false) |
bool | FileExists (std::string File) |
std::string | flCombine (std::string Dir, std::string File) |
std::string | flExtension (std::string File) |
std::string | flNoLink (std::string File) |
std::string | flNotDir (std::string File) |
std::string | flNotFile (std::string File) |
std::vector< std::string > | GetListOfFilesInDir (std::string const &Dir, std::string const &Ext, bool const &SortList, bool const &AllowNoExt=false) |
std::vector< std::string > | GetListOfFilesInDir (std::string const &Dir, std::vector< std::string > const &Ext, bool const &SortList) |
std::vector< std::string > | GetListOfFilesInDir (std::string const &Dir, bool SortList) |
int | GetLock (std::string File, bool Errors=true) |
time_t | GetModificationTime (std::string const &Path) |
bool | RealFileExists (std::string File) |
bool | RunScripts (const char *Cnf) |
std::string | SafeGetCWD () |
void | SetCloseExec (int Fd, bool Close) |
void | SetNonBlock (int Fd, bool Block) |
bool | StartsWithGPGClearTextSignature (std::string const &FileName) |
bool | WaitFd (int Fd, bool write=false, unsigned long timeout=0) |
#define APT_HAS_GZIP 1 |
bool CreateAPTDirectoryIfNeeded | ( | std::string const & | Parent, |
std::string const & | Path | ||
) |
Ensure the existence of the given Path.
Parent | directory of the Path directory - a trailing /apt/ will be removed before CreateDirectory call. |
Path | which should exist after (successful) call |
bool CreateDirectory | ( | std::string const & | Parent, |
std::string const & | Path | ||
) |
bool DirectoryExists | ( | std::string const & | Path | ) | const |
pid_t ExecFork | ( | ) |
bool ExecWait | ( | pid_t | Pid, |
const char * | Name, | ||
bool | Reap = false |
||
) |
bool FileExists | ( | std::string | File | ) |
std::string flCombine | ( | std::string | Dir, |
std::string | File | ||
) |
std::string flExtension | ( | std::string | File | ) |
std::string flNoLink | ( | std::string | File | ) |
std::string flNotDir | ( | std::string | File | ) |
std::string flNotFile | ( | std::string | File | ) |
std::vector<std::string> GetListOfFilesInDir | ( | std::string const & | Dir, |
std::string const & | Ext, | ||
bool const & | SortList, | ||
bool const & | AllowNoExt = false |
||
) |
std::vector<std::string> GetListOfFilesInDir | ( | std::string const & | Dir, |
std::vector< std::string > const & | Ext, | ||
bool const & | SortList | ||
) |
std::vector<std::string> GetListOfFilesInDir | ( | std::string const & | Dir, |
bool | SortList | ||
) |
int GetLock | ( | std::string | File, |
bool | Errors = true |
||
) |
time_t GetModificationTime | ( | std::string const & | Path | ) |
bool RealFileExists | ( | std::string | File | ) |
bool RunScripts | ( | const char * | Cnf | ) |
std::string SafeGetCWD | ( | ) |
void SetCloseExec | ( | int | Fd, |
bool | Close | ||
) |
void SetNonBlock | ( | int | Fd, |
bool | Block | ||
) |
bool StartsWithGPGClearTextSignature | ( | std::string const & | FileName | ) |
bool WaitFd | ( | int | Fd, |
bool | write = false , |
||
unsigned long | timeout = 0 |
||
) |