Flutter Engine
The Flutter Engine
stdio_fuchsia.cc
Go to the documentation of this 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
3// BSD-style license that can be found in the LICENSE file.
4
5#include "platform/globals.h"
6#if defined(DART_HOST_OS_FUCHSIA)
7
8#include "bin/stdio.h"
9
10#include <errno.h>
11
13
14namespace dart {
15namespace bin {
16
17bool Stdin::ReadByte(intptr_t fd, int* byte) {
18 unsigned char b;
19 ssize_t s = TEMP_FAILURE_RETRY(read(fd, &b, 1));
20 if (s < 0) {
21 return false;
22 }
23 *byte = (s == 0) ? -1 : b;
24 return true;
25}
26
27bool Stdin::GetEchoMode(intptr_t fd, bool* enabled) {
28 errno = ENOSYS;
29 return false;
30}
31
32bool Stdin::SetEchoMode(intptr_t fd, bool enabled) {
33 errno = ENOSYS;
34 return false;
35}
36
37bool Stdin::GetEchoNewlineMode(intptr_t fd, bool* enabled) {
38 errno = ENOSYS;
39 return false;
40}
41
42bool Stdin::SetEchoNewlineMode(intptr_t fd, bool enabled) {
43 errno = ENOSYS;
44 return false;
45}
46
47bool Stdin::GetLineMode(intptr_t fd, bool* enabled) {
48 errno = ENOSYS;
49 return false;
50}
51
52bool Stdin::SetLineMode(intptr_t fd, bool enabled) {
53 errno = ENOSYS;
54 return false;
55}
56
57bool Stdin::AnsiSupported(intptr_t fd, bool* supported) {
58 *supported = false;
59 return true;
60}
61
62bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) {
63 errno = ENOSYS;
64 return false;
65}
66
67bool Stdout::AnsiSupported(intptr_t fd, bool* supported) {
68 *supported = false;
69 return true;
70}
71
72} // namespace bin
73} // namespace dart
74
75#endif // defined(DART_HOST_OS_FUCHSIA)
static bool read(SkStream *stream, void *buffer, size_t amount)
static bool GetEchoNewlineMode(intptr_t fd, bool *enabled)
static bool GetEchoMode(intptr_t fd, bool *enabled)
static bool SetEchoMode(intptr_t fd, bool enabled)
static bool ReadByte(intptr_t fd, int *byte)
static bool AnsiSupported(intptr_t fd, bool *supported)
static bool SetLineMode(intptr_t fd, bool enabled)
static bool GetLineMode(intptr_t fd, bool *enabled)
static bool SetEchoNewlineMode(intptr_t fd, bool enabled)
static bool GetTerminalSize(intptr_t fd, int size[2])
static bool AnsiSupported(intptr_t fd, bool *supported)
static bool b
struct MyStruct s
Definition: dart_vm.cc:33
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
#define TEMP_FAILURE_RETRY(expression)