diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:24 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:24 +0000 |
commit | 36375005d9e971d2fdfc62224671f009ce7adaf9 (patch) | |
tree | 4793d82c73be374f8f7a629237af2d73874fb468 /apt-pkg/contrib/fileutl.h | |
parent | 36f610f18a9a12c02ba89c6bb84726f7ed3ba7ad (diff) |
working apt-get source
Author: jgg
Date: 1999-04-07 05:30:17 GMT
working apt-get source
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-rw-r--r-- | apt-pkg/contrib/fileutl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index 1bcb263c5..b0719bf3e 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: fileutl.h,v 1.15 1999/03/15 08:10:39 jgg Exp $ +// $Id: fileutl.h,v 1.16 1999/04/07 05:30:18 jgg Exp $ /* ###################################################################### File Utilities @@ -49,6 +49,7 @@ class FileFd // Simple manipulators inline int Fd() {return iFd;}; + inline void Fd(int fd) {iFd = fd1;}; inline bool IsOpen() {return iFd >= 0;}; inline bool Failed() {return (Flags & Fail) == Fail;}; inline void EraseOnFailure() {Flags |= DelOnFail;}; @@ -56,7 +57,7 @@ class FileFd inline string &Name() {return FileName;}; FileFd(string FileName,OpenMode Mode,unsigned long Perms = 0666); - FileFd(int Fd) : iFd(Fd), Flags(AutoClose) {}; + FileFd(int Fd = -1) : iFd(Fd), Flags(AutoClose) {}; FileFd(int Fd,bool) : iFd(Fd), Flags(0) {}; virtual ~FileFd(); }; |