| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 patch class _WindowsCodePageDecoder { | 5 patch class _WindowsCodePageDecoder { |
| 6 /* patch */ static String _decodeBytes(List<int> bytes) | 6 /* patch */ static String _decodeBytes(List<int> bytes) |
| 7 native "SystemEncodingToString"; | 7 native "SystemEncodingToString"; |
| 8 } | 8 } |
| 9 | 9 |
| 10 | 10 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 Function _getWatchSignalInternal() => _ProcessUtils._watchSignalInternal; | 134 Function _getWatchSignalInternal() => _ProcessUtils._watchSignalInternal; |
| 135 | 135 |
| 136 | 136 |
| 137 patch class _ProcessUtils { | 137 patch class _ProcessUtils { |
| 138 /* patch */ static void _exit(int status) native "Process_Exit"; | 138 /* patch */ static void _exit(int status) native "Process_Exit"; |
| 139 /* patch */ static void _setExitCode(int status) | 139 /* patch */ static void _setExitCode(int status) |
| 140 native "Process_SetExitCode"; | 140 native "Process_SetExitCode"; |
| 141 /* patch */ static int _getExitCode() native "Process_GetExitCode"; | 141 /* patch */ static int _getExitCode() native "Process_GetExitCode"; |
| 142 /* patch */ static void _sleep(int millis) native "Process_Sleep"; | 142 /* patch */ static void _sleep(int millis) native "Process_Sleep"; |
| 143 /* patch */ static int _pid(Process process) native "Process_Pid"; | 143 /* patch */ static int _pid(Process process) native "Process_Pid"; |
| 144 static int _killPid(int pid, ProcessSignal signal) | 144 static int _killPid(int pid, int signal) |
| 145 native "Process_KillPid"; | 145 native "Process_KillPid"; |
| 146 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { | 146 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { |
| 147 if (signal != ProcessSignal.SIGHUP && | 147 if (signal != ProcessSignal.SIGHUP && |
| 148 signal != ProcessSignal.SIGINT && | 148 signal != ProcessSignal.SIGINT && |
| 149 signal != ProcessSignal.SIGTERM && | 149 signal != ProcessSignal.SIGTERM && |
| 150 (Platform.isWindows || | 150 (Platform.isWindows || |
| 151 (signal != ProcessSignal.SIGUSR1 && | 151 (signal != ProcessSignal.SIGUSR1 && |
| 152 signal != ProcessSignal.SIGUSR2 && | 152 signal != ProcessSignal.SIGUSR2 && |
| 153 signal != ProcessSignal.SIGWINCH))) { | 153 signal != ProcessSignal.SIGWINCH))) { |
| 154 throw new SignalException( | 154 throw new SignalException( |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 const _ProcessResult(int this.pid, | 631 const _ProcessResult(int this.pid, |
| 632 int this.exitCode, | 632 int this.exitCode, |
| 633 this.stdout, | 633 this.stdout, |
| 634 this.stderr); | 634 this.stderr); |
| 635 | 635 |
| 636 final int pid; | 636 final int pid; |
| 637 final int exitCode; | 637 final int exitCode; |
| 638 final stdout; | 638 final stdout; |
| 639 final stderr; | 639 final stderr; |
| 640 } | 640 } |
| OLD | NEW |