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

Side by Side Diff: runtime/bin/platform_linux.cc

Issue 3007703002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Remove namespace_unsupported.cc Created 3 years, 3 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/platform_fuchsia.cc ('k') | runtime/bin/platform_macos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(HOST_OS_LINUX) 6 #if defined(HOST_OS_LINUX)
7 7
8 #include "bin/platform.h" 8 #include "bin/platform.h"
9 9
10 #include <signal.h> // NOLINT 10 #include <signal.h> // NOLINT
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 result[current] = environ[current]; 107 result[current] = environ[current];
108 } 108 }
109 return result; 109 return result;
110 } 110 }
111 111
112 const char* Platform::GetExecutableName() { 112 const char* Platform::GetExecutableName() {
113 return executable_name_; 113 return executable_name_;
114 } 114 }
115 115
116 const char* Platform::ResolveExecutablePath() { 116 const char* Platform::ResolveExecutablePath() {
117 return File::LinkTarget("/proc/self/exe"); 117 return File::ReadLink("/proc/self/exe");
118 } 118 }
119 119
120 void Platform::Exit(int exit_code) { 120 void Platform::Exit(int exit_code) {
121 exit(exit_code); 121 exit(exit_code);
122 } 122 }
123 123
124 } // namespace bin 124 } // namespace bin
125 } // namespace dart 125 } // namespace dart
126 126
127 #endif // defined(HOST_OS_LINUX) 127 #endif // defined(HOST_OS_LINUX)
OLDNEW
« no previous file with comments | « runtime/bin/platform_fuchsia.cc ('k') | runtime/bin/platform_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698