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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 V(SecurityContext_Allocate, 1) \ | 115 V(SecurityContext_Allocate, 1) \ |
116 V(SecurityContext_UsePrivateKeyBytes, 3) \ | 116 V(SecurityContext_UsePrivateKeyBytes, 3) \ |
117 V(SecurityContext_AlpnSupported, 0) \ | 117 V(SecurityContext_AlpnSupported, 0) \ |
118 V(SecurityContext_SetAlpnProtocols, 3) \ | 118 V(SecurityContext_SetAlpnProtocols, 3) \ |
119 V(SecurityContext_SetClientAuthoritiesBytes, 3) \ | 119 V(SecurityContext_SetClientAuthoritiesBytes, 3) \ |
120 V(SecurityContext_SetTrustedCertificatesBytes, 3) \ | 120 V(SecurityContext_SetTrustedCertificatesBytes, 3) \ |
121 V(SecurityContext_TrustBuiltinRoots, 1) \ | 121 V(SecurityContext_TrustBuiltinRoots, 1) \ |
122 V(SecurityContext_UseCertificateChainBytes, 3) \ | 122 V(SecurityContext_UseCertificateChainBytes, 3) \ |
123 V(ServerSocket_Accept, 2) \ | 123 V(ServerSocket_Accept, 2) \ |
124 V(ServerSocket_CreateBindListen, 6) \ | 124 V(ServerSocket_CreateBindListen, 6) \ |
125 V(SocketBase_IsBindError, 2) \ | 125 V(Socket_CreateConnect, 3) \ |
126 V(Socket_Available, 1) \ | |
127 V(Socket_CreateBindConnect, 4) \ | 126 V(Socket_CreateBindConnect, 4) \ |
128 V(Socket_CreateBindDatagram, 4) \ | 127 V(Socket_CreateBindDatagram, 4) \ |
129 V(Socket_CreateConnect, 3) \ | 128 V(Socket_IsBindError, 2) \ |
| 129 V(Socket_Available, 1) \ |
| 130 V(Socket_Read, 2) \ |
| 131 V(Socket_RecvFrom, 1) \ |
| 132 V(Socket_WriteList, 4) \ |
| 133 V(Socket_SendTo, 6) \ |
130 V(Socket_GetPort, 1) \ | 134 V(Socket_GetPort, 1) \ |
131 V(Socket_GetRemotePeer, 1) \ | 135 V(Socket_GetRemotePeer, 1) \ |
132 V(Socket_GetError, 1) \ | 136 V(Socket_GetError, 1) \ |
133 V(Socket_GetOption, 3) \ | |
134 V(Socket_GetSocketId, 1) \ | |
135 V(Socket_GetStdioHandle, 2) \ | 137 V(Socket_GetStdioHandle, 2) \ |
136 V(Socket_GetType, 1) \ | 138 V(Socket_GetType, 1) \ |
| 139 V(Socket_GetOption, 3) \ |
| 140 V(Socket_SetOption, 4) \ |
137 V(Socket_JoinMulticast, 4) \ | 141 V(Socket_JoinMulticast, 4) \ |
138 V(Socket_LeaveMulticast, 4) \ | 142 V(Socket_LeaveMulticast, 4) \ |
139 V(Socket_Read, 2) \ | 143 V(Socket_GetSocketId, 1) \ |
140 V(Socket_RecvFrom, 1) \ | |
141 V(Socket_SendTo, 6) \ | |
142 V(Socket_SetOption, 4) \ | |
143 V(Socket_SetSocketId, 2) \ | 144 V(Socket_SetSocketId, 2) \ |
144 V(Socket_WriteList, 4) \ | |
145 V(Stdin_ReadByte, 0) \ | 145 V(Stdin_ReadByte, 0) \ |
146 V(Stdin_GetEchoMode, 0) \ | 146 V(Stdin_GetEchoMode, 0) \ |
147 V(Stdin_SetEchoMode, 1) \ | 147 V(Stdin_SetEchoMode, 1) \ |
148 V(Stdin_GetLineMode, 0) \ | 148 V(Stdin_GetLineMode, 0) \ |
149 V(Stdin_SetLineMode, 1) \ | 149 V(Stdin_SetLineMode, 1) \ |
150 V(Stdin_AnsiSupported, 0) \ | 150 V(Stdin_AnsiSupported, 0) \ |
151 V(Stdout_GetTerminalSize, 1) \ | 151 V(Stdout_GetTerminalSize, 1) \ |
152 V(Stdout_AnsiSupported, 1) \ | 152 V(Stdout_AnsiSupported, 1) \ |
153 V(StringToSystemEncoding, 1) \ | 153 V(StringToSystemEncoding, 1) \ |
154 V(SystemEncodingToString, 1) \ | 154 V(SystemEncodingToString, 1) \ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 struct NativeEntries* entry = &(IOEntries[i]); | 193 struct NativeEntries* entry = &(IOEntries[i]); |
194 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 194 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
195 return reinterpret_cast<const uint8_t*>(entry->name_); | 195 return reinterpret_cast<const uint8_t*>(entry->name_); |
196 } | 196 } |
197 } | 197 } |
198 return NULL; | 198 return NULL; |
199 } | 199 } |
200 | 200 |
201 } // namespace bin | 201 } // namespace bin |
202 } // namespace dart | 202 } // namespace dart |
OLD | NEW |