summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-04-26 12:47:41 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-04-26 12:47:41 +0200
commit432b168ce4ec7a7c2caef44c0c8470c7197d58b3 (patch)
tree2b1327af6eb8d3c0f038581724b53de2bb8db049 /apt-pkg/tagfile.h
parenteda1bb3c93661da4640026153d371c474f720d28 (diff)
parent7bbc5183958e2cb5989a45ba3bf04eacd07c6534 (diff)
* apt-pkg/tagfile.{cc,h}:
- use mmap for the tagfile code (closes: #350025)
Diffstat (limited to 'apt-pkg/tagfile.h')
-rw-r--r--apt-pkg/tagfile.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h
index 8c948754d..5cff2681c 100644
--- a/apt-pkg/tagfile.h
+++ b/apt-pkg/tagfile.h
@@ -25,6 +25,7 @@
#endif
#include <apt-pkg/fileutl.h>
+#include <apt-pkg/mmap.h>
#include <stdio.h>
class pkgTagSection
@@ -69,15 +70,13 @@ class pkgTagSection
class pkgTagFile
{
FileFd &Fd;
+ MMap *Map;
char *Buffer;
char *Start;
char *End;
- bool Done;
unsigned long iOffset;
unsigned long Size;
- bool Fill();
-
public:
bool Step(pkgTagSection &Section);