| 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) \ | |
| 96 V(Process_Start, 11) \ | 95 V(Process_Start, 11) \ |
| 97 V(Process_Wait, 5) \ | 96 V(Process_Wait, 5) \ |
| 98 V(Process_KillPid, 2) \ | 97 V(Process_KillPid, 2) \ |
| 99 V(Process_SetExitCode, 1) \ | 98 V(Process_SetExitCode, 1) \ |
| 100 V(Process_GetExitCode, 0) \ | 99 V(Process_GetExitCode, 0) \ |
| 101 V(Process_Exit, 1) \ | 100 V(Process_Exit, 1) \ |
| 102 V(Process_Sleep, 1) \ | 101 V(Process_Sleep, 1) \ |
| 103 V(Process_Pid, 1) \ | 102 V(Process_Pid, 1) \ |
| 104 V(Process_SetSignalHandler, 1) \ | 103 V(Process_SetSignalHandler, 1) \ |
| 105 V(Process_ClearSignalHandler, 1) \ | 104 V(Process_ClearSignalHandler, 1) \ |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 V(Socket_SetOption, 4) \ | 140 V(Socket_SetOption, 4) \ |
| 142 V(Socket_JoinMulticast, 4) \ | 141 V(Socket_JoinMulticast, 4) \ |
| 143 V(Socket_LeaveMulticast, 4) \ | 142 V(Socket_LeaveMulticast, 4) \ |
| 144 V(Socket_GetSocketId, 1) \ | 143 V(Socket_GetSocketId, 1) \ |
| 145 V(Socket_SetSocketId, 2) \ | 144 V(Socket_SetSocketId, 2) \ |
| 146 V(Stdin_ReadByte, 0) \ | 145 V(Stdin_ReadByte, 0) \ |
| 147 V(Stdin_GetEchoMode, 0) \ | 146 V(Stdin_GetEchoMode, 0) \ |
| 148 V(Stdin_SetEchoMode, 1) \ | 147 V(Stdin_SetEchoMode, 1) \ |
| 149 V(Stdin_GetLineMode, 0) \ | 148 V(Stdin_GetLineMode, 0) \ |
| 150 V(Stdin_SetLineMode, 1) \ | 149 V(Stdin_SetLineMode, 1) \ |
| 150 V(Stdin_AnsiSupported, 0) \ |
| 151 V(Stdout_GetTerminalSize, 1) \ | 151 V(Stdout_GetTerminalSize, 1) \ |
| 152 V(Stdout_AnsiSupported, 1) \ |
| 152 V(StringToSystemEncoding, 1) \ | 153 V(StringToSystemEncoding, 1) \ |
| 153 V(SystemEncodingToString, 1) \ | 154 V(SystemEncodingToString, 1) \ |
| 154 V(X509_Subject, 1) \ | 155 V(X509_Subject, 1) \ |
| 155 V(X509_Issuer, 1) \ | 156 V(X509_Issuer, 1) \ |
| 156 V(X509_StartValidity, 1) \ | 157 V(X509_StartValidity, 1) \ |
| 157 V(X509_EndValidity, 1) | 158 V(X509_EndValidity, 1) |
| 158 | 159 |
| 159 IO_NATIVE_LIST(DECLARE_FUNCTION); | 160 IO_NATIVE_LIST(DECLARE_FUNCTION); |
| 160 | 161 |
| 161 static struct NativeEntries { | 162 static struct NativeEntries { |
| (...skipping 30 matching lines...) Expand all 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 |