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

Unified Diff: runtime/bin/file_win.cc

Issue 9360040: Handle stdio redirection in standalone VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert test change Created 8 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/file_macos.cc ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_win.cc
diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
index 78454678f8fcb7d8a4a3b2a52fbfcd606e2069f6..500e4ec101486f7fdb410b6a1cccb6a9ebec52df 100644
--- a/runtime/bin/file_win.cc
+++ b/runtime/bin/file_win.cc
@@ -123,6 +123,12 @@ File* File::Open(const char* name, FileOpenMode mode) {
}
+File* File::OpenStdio(int fd) {
+ UNREACHABLE();
+ return NULL;
+}
+
+
bool File::Exists(const char* name) {
struct stat st;
if (stat(name, &st) == 0) {
@@ -177,3 +183,10 @@ const char* File::PathSeparator() {
const char* File::StringEscapedPathSeparator() {
return "\\\\";
}
+
+
+File::StdioHandleType File::GetStdioHandleType(int fd) {
+ // Treat all stdio handles as pipes. The Windows event handler and
+ // socket code will handle the different handle types.
+ return kPipe;
+}
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698