diff options
author | iddqd <iddqd@yandex-team.com> | 2024-06-07 13:22:53 +0300 |
---|---|---|
committer | iddqd <iddqd@yandex-team.com> | 2024-06-07 13:41:05 +0300 |
commit | 89aed776bc90bfaf56bab8fb2d4cd1a47a6c8c86 (patch) | |
tree | e209172bf3b27e9063a2f3f11020ea4586c11e56 /library/cpp/streams/factory/open_common/factory.cpp | |
parent | 327232940ecda2082cbcd9551049456522bbaffe (diff) | |
download | ydb-89aed776bc90bfaf56bab8fb2d4cd1a47a6c8c86.tar.gz |
Revert commit rXXXXXX, temporary add library/cpp/streams/factory/open_by_signature to export
6c14e61e6b845e2aa92a25daf61de10267e9e8a0
Diffstat (limited to 'library/cpp/streams/factory/open_common/factory.cpp')
-rw-r--r-- | library/cpp/streams/factory/open_common/factory.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/library/cpp/streams/factory/open_common/factory.cpp b/library/cpp/streams/factory/open_common/factory.cpp deleted file mode 100644 index c99ac44121..0000000000 --- a/library/cpp/streams/factory/open_common/factory.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "factory.h" - -#include <util/stream/file.h> -#include <util/system/file.h> -#include <util/generic/ptr.h> - -#ifdef _win_ // isatty -#include <io.h> -#else -#include <unistd.h> -#endif - -THolder<IInputStream> OpenStdin(size_t bufSize) { - if (isatty(0)) { - return MakeHolder<TUnbufferedFileInput>(Duplicate(0)); - } - return MakeHolder<TFileInput>(Duplicate(0), bufSize); -} - |