[llvm-commits] CVS: llvm/include/llvm/System/Process.h

Reid Spencer reid at x10sys.com
Sat Jan 1 14:29:38 PST 2005



Changes in directory llvm/include/llvm/System:

Process.h updated: 1.3 -> 1.4
---
Log message:

Add functions for determining if the stdin/out/err is connected to a
console or not.


---
Diffs of the changes:  (+15 -0)

Index: llvm/include/llvm/System/Process.h
diff -u llvm/include/llvm/System/Process.h:1.3 llvm/include/llvm/System/Process.h:1.4
--- llvm/include/llvm/System/Process.h:1.3	Mon Dec 27 00:17:27 2004
+++ llvm/include/llvm/System/Process.h	Sat Jan  1 16:29:26 2005
@@ -69,6 +69,21 @@
       /// @brief Prevent core file generation.
       static void PreventCoreFiles();
 
+      /// This function determines if the standard input is connected directly
+      /// to a user's input (keyboard probably), rather than coming from a file
+      /// or pipe.
+      static bool StandardInIsUserInput();
+
+      /// This function determines if the standard output is connected to a 
+      /// "tty" or "console" window. That is, the output would be displayed to
+      /// the user rather than being put on a pipe or stored in a file.
+      static bool StandardOutIsDisplayed();
+
+      /// This function determines if the standard error is connected to a 
+      /// "tty" or "console" window. That is, the output would be displayed to
+      /// the user rather than being put on a pipe or stored in a file.
+      static bool StandardErrIsDisplayed();
+
     /// @}
   };
 }






More information about the llvm-commits mailing list