| OLD | NEW |
| 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 Loading... |
| 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) |
| OLD | NEW |