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 "bin/process.h" | 7 #include "bin/process.h" |
8 | 8 |
9 #include "bin/builtin.h" | 9 #include "bin/builtin.h" |
10 #include "bin/dartutils.h" | 10 #include "bin/dartutils.h" |
11 #include "include/dart_api.h" | 11 #include "include/dart_api.h" |
12 | 12 |
13 namespace dart { | 13 namespace dart { |
14 namespace bin { | 14 namespace bin { |
15 | 15 |
16 int Process::global_exit_code_ = 0; | 16 int Process::global_exit_code_ = 0; |
17 Mutex* Process::global_exit_code_mutex_ = new Mutex(); | 17 Mutex* Process::global_exit_code_mutex_ = new Mutex(); |
18 Process::ExitHook Process::exit_hook_ = NULL; | 18 Process::ExitHook Process::exit_hook_ = NULL; |
19 | 19 |
20 void Process::TerminateExitCodeHandler() {} | 20 void Process::TerminateExitCodeHandler() {} |
21 | 21 |
22 void Process::ClearAllSignalHandlers() {} | 22 void Process::ClearAllSignalHandlers() {} |
23 | 23 |
24 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) { | 24 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) { |
25 Dart_ThrowException( | 25 Dart_ThrowException( |
26 DartUtils::NewInternalError("Process is not supported on this platform")); | 26 DartUtils::NewInternalError("Process is not supported on this platform")); |
27 } | 27 } |
28 | 28 |
29 | |
30 void FUNCTION_NAME(Process_Wait)(Dart_NativeArguments args) { | 29 void FUNCTION_NAME(Process_Wait)(Dart_NativeArguments args) { |
31 Dart_ThrowException( | 30 Dart_ThrowException( |
32 DartUtils::NewInternalError("Process is not supported on this platform")); | 31 DartUtils::NewInternalError("Process is not supported on this platform")); |
33 } | 32 } |
34 | 33 |
35 | |
36 void FUNCTION_NAME(Process_KillPid)(Dart_NativeArguments args) { | 34 void FUNCTION_NAME(Process_KillPid)(Dart_NativeArguments args) { |
37 Dart_ThrowException( | 35 Dart_ThrowException( |
38 DartUtils::NewInternalError("Process is not supported on this platform")); | 36 DartUtils::NewInternalError("Process is not supported on this platform")); |
39 } | 37 } |
40 | 38 |
41 | |
42 void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) { | 39 void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) { |
43 Dart_ThrowException( | 40 Dart_ThrowException( |
44 DartUtils::NewInternalError("Process is not supported on this platform")); | 41 DartUtils::NewInternalError("Process is not supported on this platform")); |
45 } | 42 } |
46 | 43 |
47 | |
48 void FUNCTION_NAME(Process_SetExitCode)(Dart_NativeArguments args) { | 44 void FUNCTION_NAME(Process_SetExitCode)(Dart_NativeArguments args) { |
49 Dart_ThrowException( | 45 Dart_ThrowException( |
50 DartUtils::NewInternalError("Process is not supported on this platform")); | 46 DartUtils::NewInternalError("Process is not supported on this platform")); |
51 } | 47 } |
52 | 48 |
53 | |
54 void FUNCTION_NAME(Process_GetExitCode)(Dart_NativeArguments args) { | 49 void FUNCTION_NAME(Process_GetExitCode)(Dart_NativeArguments args) { |
55 Dart_ThrowException( | 50 Dart_ThrowException( |
56 DartUtils::NewInternalError("Process is not supported on this platform")); | 51 DartUtils::NewInternalError("Process is not supported on this platform")); |
57 } | 52 } |
58 | 53 |
59 | |
60 void FUNCTION_NAME(Process_Sleep)(Dart_NativeArguments args) { | 54 void FUNCTION_NAME(Process_Sleep)(Dart_NativeArguments args) { |
61 Dart_ThrowException( | 55 Dart_ThrowException( |
62 DartUtils::NewInternalError("Process is not supported on this platform")); | 56 DartUtils::NewInternalError("Process is not supported on this platform")); |
63 } | 57 } |
64 | 58 |
65 | |
66 void FUNCTION_NAME(Process_Pid)(Dart_NativeArguments args) { | 59 void FUNCTION_NAME(Process_Pid)(Dart_NativeArguments args) { |
67 Dart_ThrowException( | 60 Dart_ThrowException( |
68 DartUtils::NewInternalError("Process is not supported on this platform")); | 61 DartUtils::NewInternalError("Process is not supported on this platform")); |
69 } | 62 } |
70 | 63 |
71 | |
72 void FUNCTION_NAME(Process_SetSignalHandler)(Dart_NativeArguments args) { | 64 void FUNCTION_NAME(Process_SetSignalHandler)(Dart_NativeArguments args) { |
73 Dart_ThrowException( | 65 Dart_ThrowException( |
74 DartUtils::NewInternalError("Process is not supported on this platform")); | 66 DartUtils::NewInternalError("Process is not supported on this platform")); |
75 } | 67 } |
76 | 68 |
77 | |
78 void FUNCTION_NAME(Process_ClearSignalHandler)(Dart_NativeArguments args) { | 69 void FUNCTION_NAME(Process_ClearSignalHandler)(Dart_NativeArguments args) { |
79 Dart_ThrowException( | 70 Dart_ThrowException( |
80 DartUtils::NewInternalError("Process is not supported on this platform")); | 71 DartUtils::NewInternalError("Process is not supported on this platform")); |
81 } | 72 } |
82 | 73 |
83 | |
84 void FUNCTION_NAME(SystemEncodingToString)(Dart_NativeArguments args) { | 74 void FUNCTION_NAME(SystemEncodingToString)(Dart_NativeArguments args) { |
85 Dart_ThrowException( | 75 Dart_ThrowException( |
86 DartUtils::NewInternalError("Process is not supported on this platform")); | 76 DartUtils::NewInternalError("Process is not supported on this platform")); |
87 } | 77 } |
88 | 78 |
89 | |
90 void FUNCTION_NAME(StringToSystemEncoding)(Dart_NativeArguments args) { | 79 void FUNCTION_NAME(StringToSystemEncoding)(Dart_NativeArguments args) { |
91 Dart_ThrowException( | 80 Dart_ThrowException( |
92 DartUtils::NewInternalError("Process is not supported on this platform")); | 81 DartUtils::NewInternalError("Process is not supported on this platform")); |
93 } | 82 } |
94 | 83 |
95 | |
96 void FUNCTION_NAME(ProcessInfo_CurrentRSS)(Dart_NativeArguments args) { | 84 void FUNCTION_NAME(ProcessInfo_CurrentRSS)(Dart_NativeArguments args) { |
97 Dart_ThrowException( | 85 Dart_ThrowException( |
98 DartUtils::NewInternalError("Process is not supported on this platform")); | 86 DartUtils::NewInternalError("Process is not supported on this platform")); |
99 } | 87 } |
100 | 88 |
101 | |
102 void FUNCTION_NAME(ProcessInfo_MaxRSS)(Dart_NativeArguments args) { | 89 void FUNCTION_NAME(ProcessInfo_MaxRSS)(Dart_NativeArguments args) { |
103 Dart_ThrowException( | 90 Dart_ThrowException( |
104 DartUtils::NewInternalError("Process is not supported on this platform")); | 91 DartUtils::NewInternalError("Process is not supported on this platform")); |
105 } | 92 } |
106 | 93 |
107 } // namespace bin | 94 } // namespace bin |
108 } // namespace dart | 95 } // namespace dart |
109 | 96 |
110 #endif // !defined(DART_IO_DISABLED) | 97 #endif // !defined(DART_IO_DISABLED) |
OLD | NEW |