| 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 |
| 5 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; | 7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; |
| 6 const int _STDIO_HANDLE_TYPE_PIPE = 1; | 8 const int _STDIO_HANDLE_TYPE_PIPE = 1; |
| 7 const int _STDIO_HANDLE_TYPE_FILE = 2; | 9 const int _STDIO_HANDLE_TYPE_FILE = 2; |
| 8 const int _STDIO_HANDLE_TYPE_SOCKET = 3; | 10 const int _STDIO_HANDLE_TYPE_SOCKET = 3; |
| 9 const int _STDIO_HANDLE_TYPE_OTHER = -1; | 11 const int _STDIO_HANDLE_TYPE_OTHER = -1; |
| 10 | 12 |
| 11 | 13 |
| 12 InputStream _stdin; | 14 InputStream _stdin; |
| 13 OutputStream _stdout; | 15 OutputStream _stdout; |
| 14 OutputStream _stderr; | 16 OutputStream _stderr; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 35 _stderr = _StdIOUtils._getStdioOutputStream(2); | 37 _stderr = _StdIOUtils._getStdioOutputStream(2); |
| 36 } | 38 } |
| 37 return _stderr; | 39 return _stderr; |
| 38 } | 40 } |
| 39 | 41 |
| 40 | 42 |
| 41 class _StdIOUtils { | 43 class _StdIOUtils { |
| 42 external static OutputStream _getStdioOutputStream(int fd); | 44 external static OutputStream _getStdioOutputStream(int fd); |
| 43 external static InputStream _getStdioInputStream(); | 45 external static InputStream _getStdioInputStream(); |
| 44 } | 46 } |
| OLD | NEW |