mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Add functions for determining if the stdin/out/err is connected to a
console or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19233 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -69,6 +69,21 @@ namespace sys {
|
||||
/// @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();
|
||||
|
||||
/// @}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user