aboutsummaryrefslogtreecommitdiff
path: root/libbutl/fdstream.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-08-05 04:06:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-08-06 12:27:55 +0300
commit561a189f49441a4d211c0217dce8127f2ce7c32e (patch)
treec7928517d65fe7ee9deeaa677d91fd95650c6a9b /libbutl/fdstream.hxx
parent07f657754b0af656ee48c38540805fcec7cee27d (diff)
Fix printing progress to non-terminal STDERR
Diffstat (limited to 'libbutl/fdstream.hxx')
-rw-r--r--libbutl/fdstream.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbutl/fdstream.hxx b/libbutl/fdstream.hxx
index fa62ff4..3bd8e8b 100644
--- a/libbutl/fdstream.hxx
+++ b/libbutl/fdstream.hxx
@@ -686,6 +686,12 @@ namespace butl
//
LIBBUTL_SYMEXPORT fdpipe
fdopen_pipe (fdopen_mode = fdopen_mode::none);
+
+ // Test whether a file descriptor refers to a terminal. Throw ios::failure on
+ // the underlying OS error.
+ //
+ LIBBUTL_SYMEXPORT bool
+ fdterm (int);
}
#include <libbutl/fdstream.ixx>