diff options
Diffstat (limited to 'libbutl/fdstream.ixx')
-rw-r--r-- | libbutl/fdstream.ixx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libbutl/fdstream.ixx b/libbutl/fdstream.ixx index 5181903..212ec98 100644 --- a/libbutl/fdstream.ixx +++ b/libbutl/fdstream.ixx @@ -286,4 +286,24 @@ namespace butl static_cast<std::uint16_t> (x) | static_cast<std::uint16_t> (y)); } + + // std*_fdmode() + // + inline fdstream_mode + stdin_fdmode (fdstream_mode m) + { + return fdmode (stdin_fd (), m); + } + + inline fdstream_mode + stdout_fdmode (fdstream_mode m) + { + return fdmode (stdout_fd (), m); + } + + inline fdstream_mode + stderr_fdmode (fdstream_mode m) + { + return fdmode (stderr_fd (), m); + } } |