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

Side by Side Diff: sdk/lib/io/process.dart

Issue 2973823002: Revert "Remaining private libs" (Closed)
Patch Set: Created 3 years, 5 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 | « sdk/lib/io/platform_impl.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of "dart:io"; 5 part of "io.dart";
6 6
7 // TODO(ager): The only reason for this class is that we 7 // TODO(ager): The only reason for this class is that we
8 // cannot patch a top-level at this point. 8 // cannot patch a top-level at this point.
9 class _ProcessUtils { 9 class _ProcessUtils {
10 external static void _exit(int status); 10 external static void _exit(int status);
11 external static void _setExitCode(int status); 11 external static void _setExitCode(int status);
12 external static int _getExitCode(); 12 external static int _getExitCode();
13 external static void _sleep(int millis); 13 external static void _sleep(int millis);
14 external static int _pid(Process process); 14 external static int _pid(Process process);
15 external static Stream<ProcessSignal> _watchSignal(ProcessSignal signal); 15 external static Stream<ProcessSignal> _watchSignal(ProcessSignal signal);
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 final int errorCode; 593 final int errorCode;
594 594
595 const ProcessException(this.executable, this.arguments, 595 const ProcessException(this.executable, this.arguments,
596 [this.message = "", this.errorCode = 0]); 596 [this.message = "", this.errorCode = 0]);
597 String toString() { 597 String toString() {
598 var msg = (message == null) ? 'OS error code: $errorCode' : message; 598 var msg = (message == null) ? 'OS error code: $errorCode' : message;
599 var args = arguments.join(' '); 599 var args = arguments.join(' ');
600 return "ProcessException: $msg\n Command: $executable $args"; 600 return "ProcessException: $msg\n Command: $executable $args";
601 } 601 }
602 } 602 }
OLDNEW
« no previous file with comments | « sdk/lib/io/platform_impl.dart ('k') | sdk/lib/io/secure_server_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698