OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 #if !defined(DART_IO_DISABLED) | 5 #if !defined(DART_IO_DISABLED) |
6 | 6 |
7 #include "platform/globals.h" | 7 #include "platform/globals.h" |
8 #if defined(HOST_OS_FUCHSIA) | 8 #if defined(HOST_OS_FUCHSIA) |
9 | 9 |
10 #include "bin/stdio.h" | 10 #include "bin/stdio.h" |
11 | 11 |
12 namespace dart { | 12 namespace dart { |
13 namespace bin { | 13 namespace bin { |
14 | 14 |
15 bool Stdin::ReadByte(int* byte) { | 15 bool Stdin::ReadByte(int* byte) { |
16 UNIMPLEMENTED(); | 16 UNIMPLEMENTED(); |
17 return false; | 17 return false; |
18 } | 18 } |
19 | 19 |
20 | |
21 bool Stdin::GetEchoMode(bool* enabled) { | 20 bool Stdin::GetEchoMode(bool* enabled) { |
22 UNIMPLEMENTED(); | 21 UNIMPLEMENTED(); |
23 return false; | 22 return false; |
24 } | 23 } |
25 | 24 |
26 | |
27 bool Stdin::SetEchoMode(bool enabled) { | 25 bool Stdin::SetEchoMode(bool enabled) { |
28 UNIMPLEMENTED(); | 26 UNIMPLEMENTED(); |
29 return false; | 27 return false; |
30 } | 28 } |
31 | 29 |
32 | |
33 bool Stdin::GetLineMode(bool* enabled) { | 30 bool Stdin::GetLineMode(bool* enabled) { |
34 UNIMPLEMENTED(); | 31 UNIMPLEMENTED(); |
35 return false; | 32 return false; |
36 } | 33 } |
37 | 34 |
38 | |
39 bool Stdin::SetLineMode(bool enabled) { | 35 bool Stdin::SetLineMode(bool enabled) { |
40 UNIMPLEMENTED(); | 36 UNIMPLEMENTED(); |
41 return false; | 37 return false; |
42 } | 38 } |
43 | 39 |
44 | |
45 bool Stdin::AnsiSupported(bool* supported) { | 40 bool Stdin::AnsiSupported(bool* supported) { |
46 UNIMPLEMENTED(); | 41 UNIMPLEMENTED(); |
47 return false; | 42 return false; |
48 } | 43 } |
49 | 44 |
50 | |
51 bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) { | 45 bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) { |
52 UNIMPLEMENTED(); | 46 UNIMPLEMENTED(); |
53 return false; | 47 return false; |
54 } | 48 } |
55 | 49 |
56 | |
57 bool Stdout::AnsiSupported(intptr_t fd, bool* supported) { | 50 bool Stdout::AnsiSupported(intptr_t fd, bool* supported) { |
58 UNIMPLEMENTED(); | 51 UNIMPLEMENTED(); |
59 return false; | 52 return false; |
60 } | 53 } |
61 | 54 |
62 } // namespace bin | 55 } // namespace bin |
63 } // namespace dart | 56 } // namespace dart |
64 | 57 |
65 #endif // defined(HOST_OS_FUCHSIA) | 58 #endif // defined(HOST_OS_FUCHSIA) |
66 | 59 |
67 #endif // !defined(DART_IO_DISABLED) | 60 #endif // !defined(DART_IO_DISABLED) |
OLD | NEW |