From 369c919f2be8d2c93b990a97436b41ba4ae1ff29 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 17 Aug 2011 12:06:37 +0200 Subject: move the interactive helper to a subdirectory of test --- test/mthdcat.cc | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 test/mthdcat.cc (limited to 'test/mthdcat.cc') diff --git a/test/mthdcat.cc b/test/mthdcat.cc deleted file mode 100644 index 25d09a3f5..000000000 --- a/test/mthdcat.cc +++ /dev/null @@ -1,20 +0,0 @@ -/* Usage, mthdcat < cmds | methods/mthd - All this does is cat a file into the method without closing the FD when - the file ends */ - -#include - -int main() -{ - char Buffer[4096]; - - while (1) - { - int Res = read(STDIN_FILENO,Buffer,sizeof(Buffer)); - if (Res <= 0) - while (1) sleep(100); - if (write(STDOUT_FILENO,Buffer,Res) != Res) - break; - } - return 0; -} -- cgit v1.2.3-70-g09d2