diff options
Diffstat (limited to 'libbutl/fdstream.hxx')
-rw-r--r-- | libbutl/fdstream.hxx | 6 |
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> |