| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 V(NetworkInterface_ListSupported, 0) \ | 84 V(NetworkInterface_ListSupported, 0) \ |
| 85 V(Platform_NumberOfProcessors, 0) \ | 85 V(Platform_NumberOfProcessors, 0) \ |
| 86 V(Platform_OperatingSystem, 0) \ | 86 V(Platform_OperatingSystem, 0) \ |
| 87 V(Platform_PathSeparator, 0) \ | 87 V(Platform_PathSeparator, 0) \ |
| 88 V(Platform_LocalHostname, 0) \ | 88 V(Platform_LocalHostname, 0) \ |
| 89 V(Platform_ExecutableName, 0) \ | 89 V(Platform_ExecutableName, 0) \ |
| 90 V(Platform_ResolvedExecutableName, 0) \ | 90 V(Platform_ResolvedExecutableName, 0) \ |
| 91 V(Platform_Environment, 0) \ | 91 V(Platform_Environment, 0) \ |
| 92 V(Platform_ExecutableArguments, 0) \ | 92 V(Platform_ExecutableArguments, 0) \ |
| 93 V(Platform_GetVersion, 0) \ | 93 V(Platform_GetVersion, 0) \ |
| 94 V(Platform_LocaleName, 0) \ |
| 94 V(Process_Start, 11) \ | 95 V(Process_Start, 11) \ |
| 95 V(Process_Wait, 5) \ | 96 V(Process_Wait, 5) \ |
| 96 V(Process_KillPid, 2) \ | 97 V(Process_KillPid, 2) \ |
| 97 V(Process_SetExitCode, 1) \ | 98 V(Process_SetExitCode, 1) \ |
| 98 V(Process_GetExitCode, 0) \ | 99 V(Process_GetExitCode, 0) \ |
| 99 V(Process_Exit, 1) \ | 100 V(Process_Exit, 1) \ |
| 100 V(Process_Sleep, 1) \ | 101 V(Process_Sleep, 1) \ |
| 101 V(Process_Pid, 1) \ | 102 V(Process_Pid, 1) \ |
| 102 V(Process_SetSignalHandler, 1) \ | 103 V(Process_SetSignalHandler, 1) \ |
| 103 V(Process_ClearSignalHandler, 1) \ | 104 V(Process_ClearSignalHandler, 1) \ |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 struct NativeEntries* entry = &(IOEntries[i]); | 193 struct NativeEntries* entry = &(IOEntries[i]); |
| 193 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 194 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
| 194 return reinterpret_cast<const uint8_t*>(entry->name_); | 195 return reinterpret_cast<const uint8_t*>(entry->name_); |
| 195 } | 196 } |
| 196 } | 197 } |
| 197 return NULL; | 198 return NULL; |
| 198 } | 199 } |
| 199 | 200 |
| 200 } // namespace bin | 201 } // namespace bin |
| 201 } // namespace dart | 202 } // namespace dart |
| OLD | NEW |