aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/blaze_util_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/cpp/blaze_util_platform.h')
-rw-r--r--src/main/cpp/blaze_util_platform.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/cpp/blaze_util_platform.h b/src/main/cpp/blaze_util_platform.h
index a4c9c201c1..67b685ff90 100644
--- a/src/main/cpp/blaze_util_platform.h
+++ b/src/main/cpp/blaze_util_platform.h
@@ -19,6 +19,8 @@
#include <string>
+#include "src/main/cpp/util/port.h"
+
namespace blaze {
std::string GetProcessIdAsString();
@@ -159,6 +161,13 @@ void SetEnv(const std::string& name, const std::string& value);
void UnsetEnv(const std::string& name);
+// Terminate the process immediately.
+// This is a wrapper around POSIX's _exit(2).
+ATTRIBUTE_NORETURN void ExitImmediately(int exit_code);
+
+// Ensure we have open file descriptors for stdin/stdout/stderr.
+void SetupStdStreams();
+
} // namespace blaze
#endif // BAZEL_SRC_MAIN_CPP_BLAZE_UTIL_PLATFORM_H_