| 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 part of dart_io; | |
| 6 | |
| 7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; | 5 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; |
| 8 const int _STDIO_HANDLE_TYPE_PIPE = 1; | 6 const int _STDIO_HANDLE_TYPE_PIPE = 1; |
| 9 const int _STDIO_HANDLE_TYPE_FILE = 2; | 7 const int _STDIO_HANDLE_TYPE_FILE = 2; |
| 10 const int _STDIO_HANDLE_TYPE_SOCKET = 3; | 8 const int _STDIO_HANDLE_TYPE_SOCKET = 3; |
| 11 const int _STDIO_HANDLE_TYPE_OTHER = -1; | 9 const int _STDIO_HANDLE_TYPE_OTHER = -1; |
| 12 | 10 |
| 13 | 11 |
| 14 InputStream _stdin; | 12 InputStream _stdin; |
| 15 OutputStream _stdout; | 13 OutputStream _stdout; |
| 16 OutputStream _stderr; | 14 OutputStream _stderr; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 _stderr = _getStdioOutputStream(2); | 70 _stderr = _getStdioOutputStream(2); |
| 73 } | 71 } |
| 74 return _stderr; | 72 return _stderr; |
| 75 } | 73 } |
| 76 | 74 |
| 77 | 75 |
| 78 class _StdIOUtils { | 76 class _StdIOUtils { |
| 79 external static _getStdioHandle(Socket socket, int num); | 77 external static _getStdioHandle(Socket socket, int num); |
| 80 external static _getStdioHandleType(int num); | 78 external static _getStdioHandleType(int num); |
| 81 } | 79 } |
| OLD | NEW |