OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "bin/io_natives.h" | 5 #include "bin/io_natives.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 V(NetworkInterface_ListSupported, 0) \ | 85 V(NetworkInterface_ListSupported, 0) \ |
86 V(Platform_NumberOfProcessors, 0) \ | 86 V(Platform_NumberOfProcessors, 0) \ |
87 V(Platform_OperatingSystem, 0) \ | 87 V(Platform_OperatingSystem, 0) \ |
88 V(Platform_PathSeparator, 0) \ | 88 V(Platform_PathSeparator, 0) \ |
89 V(Platform_LocalHostname, 0) \ | 89 V(Platform_LocalHostname, 0) \ |
90 V(Platform_ExecutableName, 0) \ | 90 V(Platform_ExecutableName, 0) \ |
91 V(Platform_ResolvedExecutableName, 0) \ | 91 V(Platform_ResolvedExecutableName, 0) \ |
92 V(Platform_Environment, 0) \ | 92 V(Platform_Environment, 0) \ |
93 V(Platform_ExecutableArguments, 0) \ | 93 V(Platform_ExecutableArguments, 0) \ |
94 V(Platform_GetVersion, 0) \ | 94 V(Platform_GetVersion, 0) \ |
| 95 V(Platform_AnsiSupported, 0) \ |
95 V(Process_Start, 11) \ | 96 V(Process_Start, 11) \ |
96 V(Process_Wait, 5) \ | 97 V(Process_Wait, 5) \ |
97 V(Process_KillPid, 2) \ | 98 V(Process_KillPid, 2) \ |
98 V(Process_SetExitCode, 1) \ | 99 V(Process_SetExitCode, 1) \ |
99 V(Process_GetExitCode, 0) \ | 100 V(Process_GetExitCode, 0) \ |
100 V(Process_Exit, 1) \ | 101 V(Process_Exit, 1) \ |
101 V(Process_Sleep, 1) \ | 102 V(Process_Sleep, 1) \ |
102 V(Process_Pid, 1) \ | 103 V(Process_Pid, 1) \ |
103 V(Process_SetSignalHandler, 1) \ | 104 V(Process_SetSignalHandler, 1) \ |
104 V(Process_ClearSignalHandler, 1) \ | 105 V(Process_ClearSignalHandler, 1) \ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 struct NativeEntries* entry = &(IOEntries[i]); | 192 struct NativeEntries* entry = &(IOEntries[i]); |
192 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 193 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
193 return reinterpret_cast<const uint8_t*>(entry->name_); | 194 return reinterpret_cast<const uint8_t*>(entry->name_); |
194 } | 195 } |
195 } | 196 } |
196 return NULL; | 197 return NULL; |
197 } | 198 } |
198 | 199 |
199 } // namespace bin | 200 } // namespace bin |
200 } // namespace dart | 201 } // namespace dart |
OLD | NEW |