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

Side by Side Diff: runtime/bin/process_unsupported.cc

Issue 1839463002: Really remove io support when dart:io is unsupported. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
(Empty)
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 #if defined(DART_IO_DISABLED)
6
7 #include "bin/process.h"
8
9 #include "bin/builtin.h"
10 #include "bin/dartutils.h"
11 #include "include/dart_api.h"
12
13 namespace dart {
14 namespace bin {
15
16 int Process::global_exit_code_ = 0;
17 Mutex* Process::global_exit_code_mutex_ = new Mutex();
18
19 void Process::TerminateExitCodeHandler() {
20 }
21
22
23 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) {
24 Dart_ThrowException(DartUtils::NewInternalError(
25 "Process is not supported on this platform"));
26 }
27
28
29 void FUNCTION_NAME(Process_Wait)(Dart_NativeArguments args) {
30 Dart_ThrowException(DartUtils::NewInternalError(
31 "Process is not supported on this platform"));
32 }
33
34
35 void FUNCTION_NAME(Process_KillPid)(Dart_NativeArguments args) {
36 Dart_ThrowException(DartUtils::NewInternalError(
37 "Process is not supported on this platform"));
38 }
39
40
41 void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) {
42 Dart_ThrowException(DartUtils::NewInternalError(
43 "Process is not supported on this platform"));
44 }
45
46
47 void FUNCTION_NAME(Process_SetExitCode)(Dart_NativeArguments args) {
48 Dart_ThrowException(DartUtils::NewInternalError(
49 "Process is not supported on this platform"));
50 }
51
52
53 void FUNCTION_NAME(Process_GetExitCode)(Dart_NativeArguments args) {
54 Dart_ThrowException(DartUtils::NewInternalError(
55 "Process is not supported on this platform"));
56 }
57
58
59 void FUNCTION_NAME(Process_Sleep)(Dart_NativeArguments args) {
60 Dart_ThrowException(DartUtils::NewInternalError(
61 "Process is not supported on this platform"));
62 }
63
64
65 void FUNCTION_NAME(Process_Pid)(Dart_NativeArguments args) {
66 Dart_ThrowException(DartUtils::NewInternalError(
67 "Process is not supported on this platform"));
68 }
69
70
71 void FUNCTION_NAME(Process_SetSignalHandler)(Dart_NativeArguments args) {
72 Dart_ThrowException(DartUtils::NewInternalError(
73 "Process is not supported on this platform"));
74 }
75
76
77 void FUNCTION_NAME(Process_ClearSignalHandler)(Dart_NativeArguments args) {
78 Dart_ThrowException(DartUtils::NewInternalError(
79 "Process is not supported on this platform"));
80 }
81
82
83 void FUNCTION_NAME(SystemEncodingToString)(Dart_NativeArguments args) {
84 Dart_ThrowException(DartUtils::NewInternalError(
85 "Process is not supported on this platform"));
86 }
87
88
89 void FUNCTION_NAME(StringToSystemEncoding)(Dart_NativeArguments args) {
90 Dart_ThrowException(DartUtils::NewInternalError(
91 "Process is not supported on this platform"));
92 }
93
94 } // namespace bin
95 } // namespace dart
96
97 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/process_macos.cc ('k') | runtime/bin/process_win.cc » ('j') | runtime/bin/socket.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698