20 #ifndef PALUDIS_GUARD_PALUDIS_UTIL_SAFE_IFSTREAM_HH 21 #define PALUDIS_GUARD_PALUDIS_UTIL_SAFE_IFSTREAM_HH 1 25 #include <paludis/util/fs_path-fwd.hh> 54 static const int lookbehind_size = 16;
55 static const int buffer_size = 512 + lookbehind_size;
56 char buffer[buffer_size];
58 virtual int_type underflow();
59 virtual pos_type seekoff(off_type, std::ios_base::seekdir, std::ios_base::openmode);
60 virtual pos_type seekpos(pos_type, std::ios_base::openmode);
Definition: about_metadata-fwd.hh:23
int fd
Our file descriptor.
Definition: safe_ifstream.hh:71
Definition: safe_ifstream.hh:102
SafeIFStreamBuf buf
Our buffer.
Definition: safe_ifstream.hh:84
Definition: safe_ifstream.hh:80
Definition: safe_ifstream.hh:50
Definition: exception.hh:74
Definition: safe_ifstream.hh:126
Definition: fs_path.hh:33
#define PALUDIS_VISIBLE
Definition: attributes.hh:59