~ubuntu-branches/debian/experimental/apt/experimental

« back to all changes in this revision

Viewing changes to apt-pkg/contrib/fileutl.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2010-02-18 22:07:23 UTC
  • mfrom: (9.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100218220723-zb7zdh6fmsmp30tr
Tags: 0.7.26~exp2
fix crash when LANGUAGE is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
 
25
25
#include <string>
 
26
#include <vector>
26
27
 
27
28
using std::string;
28
29
 
81
82
bool CopyFile(FileFd &From,FileFd &To);
82
83
int GetLock(string File,bool Errors = true);
83
84
bool FileExists(string File);
 
85
// FIXME: next ABI-Break: merge the two method-headers
 
86
std::vector<string> GetListOfFilesInDir(string const &Dir, string const &Ext,
 
87
                                        bool const &SortList);
 
88
std::vector<string> GetListOfFilesInDir(string const &Dir, string const &Ext,
 
89
                                        bool const &SortList, bool const &AllowNoExt);
 
90
std::vector<string> GetListOfFilesInDir(string const &Dir, std::vector<string> const &Ext,
 
91
                                        bool const &SortList);
84
92
string SafeGetCWD();
85
93
void SetCloseExec(int Fd,bool Close);
86
94
void SetNonBlock(int Fd,bool Block);