aboutsummaryrefslogtreecommitdiff
path: root/libbutl/fdstream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/fdstream.cxx')
-rw-r--r--libbutl/fdstream.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbutl/fdstream.cxx b/libbutl/fdstream.cxx
index 377681e..fad65f7 100644
--- a/libbutl/fdstream.cxx
+++ b/libbutl/fdstream.cxx
@@ -848,6 +848,13 @@ namespace butl
}
void ifdstream::
+ open (auto_fd&& fd, fdstream_mode m, std::uint64_t pos)
+ {
+ open (mode (std::move (fd), m), pos);
+ skip_ = (m & fdstream_mode::skip) == fdstream_mode::skip;
+ }
+
+ void ifdstream::
close ()
{
if (skip_ && is_open () && good ())