diff options
author | Julian Andres Klode <jak@debian.org> | 2015-12-27 14:25:11 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-12-27 16:19:33 +0100 |
commit | 766761fd836d9e247daea924809965c21cc65dc7 (patch) | |
tree | 028937f4c1c39a7a0da6282b360777bbbf49fc02 /apt-pkg/contrib/fileutl.h | |
parent | 1d68256d525234d4fef1bb050dc2165771cdf7e3 (diff) |
FildFd: Introduce a Flush() function and call it from Close()
The flush function can be used for buffered writers.
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-rw-r--r-- | apt-pkg/contrib/fileutl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index 57d3ab841..8cfb2e989 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -85,6 +85,7 @@ class FileFd } bool Read(void *To,unsigned long long Size,unsigned long long *Actual = 0); char* ReadLine(char *To, unsigned long long const Size); + bool Flush(); bool Write(const void *From,unsigned long long Size); bool static Write(int Fd, const void *From, unsigned long long Size); bool Seek(unsigned long long To); |