#include "factory.h" #include #include #include #ifdef _win_ // isatty #include #else #include #endif THolder OpenStdin(size_t bufSize) { if (isatty(0)) { return MakeHolder(Duplicate(0)); } return MakeHolder(Duplicate(0), bufSize); }