| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 native "Process_SetSignalHandler"; | 118 native "Process_SetSignalHandler"; |
| 119 /* patch */ static int _clearSignalHandler(int signal) | 119 /* patch */ static int _clearSignalHandler(int signal) |
| 120 native "Process_ClearSignalHandler"; | 120 native "Process_ClearSignalHandler"; |
| 121 } | 121 } |
| 122 | 122 |
| 123 | 123 |
| 124 patch class _ProcessUtils { | 124 patch class _ProcessUtils { |
| 125 /* patch */ static void _exit(int status) native "Process_Exit"; | 125 /* patch */ static void _exit(int status) native "Process_Exit"; |
| 126 /* patch */ static void _setExitCode(int status) | 126 /* patch */ static void _setExitCode(int status) |
| 127 native "Process_SetExitCode"; | 127 native "Process_SetExitCode"; |
| 128 /* patch */ static int _getExitCode() native "Process_GetExitCode"; |
| 128 /* patch */ static void _sleep(int millis) native "Process_Sleep"; | 129 /* patch */ static void _sleep(int millis) native "Process_Sleep"; |
| 129 /* patch */ static int _pid(Process process) native "Process_Pid"; | 130 /* patch */ static int _pid(Process process) native "Process_Pid"; |
| 130 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { | 131 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { |
| 131 if (signal != ProcessSignal.SIGHUP && | 132 if (signal != ProcessSignal.SIGHUP && |
| 132 signal != ProcessSignal.SIGINT && | 133 signal != ProcessSignal.SIGINT && |
| 133 signal != ProcessSignal.SIGTERM && | 134 signal != ProcessSignal.SIGTERM && |
| 134 (Platform.isWindows || | 135 (Platform.isWindows || |
| 135 (signal != ProcessSignal.SIGUSR1 && | 136 (signal != ProcessSignal.SIGUSR1 && |
| 136 signal != ProcessSignal.SIGUSR2 && | 137 signal != ProcessSignal.SIGUSR2 && |
| 137 signal != ProcessSignal.SIGWINCH))) { | 138 signal != ProcessSignal.SIGWINCH))) { |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 const _ProcessResult(int this.pid, | 534 const _ProcessResult(int this.pid, |
| 534 int this.exitCode, | 535 int this.exitCode, |
| 535 this.stdout, | 536 this.stdout, |
| 536 this.stderr); | 537 this.stderr); |
| 537 | 538 |
| 538 final int pid; | 539 final int pid; |
| 539 final int exitCode; | 540 final int exitCode; |
| 540 final stdout; | 541 final stdout; |
| 541 final stderr; | 542 final stderr; |
| 542 } | 543 } |
| OLD | NEW |