Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1142)

Unified Diff: runtime/bin/platform_macos.cc

Issue 154273003: Make std* blocking file-descriptors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update with bug. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/platform_linux.cc ('k') | runtime/bin/platform_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_macos.cc
diff --git a/runtime/bin/platform_macos.cc b/runtime/bin/platform_macos.cc
index 0b920b64d8f63c65c35e08a4a3a238934345144d..365caf1068893715138725bcaecb2a43ec9fb40a 100644
--- a/runtime/bin/platform_macos.cc
+++ b/runtime/bin/platform_macos.cc
@@ -70,24 +70,6 @@ void Platform::FreeEnvironment(char** env, intptr_t count) {
delete[] env;
}
-
-void Platform::PrintBlocking(FILE* file, const char* format, ...) {
- int fd = fileno(file);
- FDUtils::SetBlocking(fd);
- va_list args;
- va_start(args, format);
- vfprintf(file, format, args);
- fflush(file);
- va_end(args);
- FDUtils::SetNonBlocking(fd);
-}
-
-
-void Platform::Cleanup() {
- FDUtils::SetBlocking(fileno(stdout));
- FDUtils::SetBlocking(fileno(stderr));
-}
-
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/platform_linux.cc ('k') | runtime/bin/platform_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698