Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: runtime/bin/io_natives.cc

Issue 1319703002: Breaking Change: merge BoringSSL branch into master (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/io_impl_sources.gypi ('k') | runtime/bin/io_service_no_ssl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 V(Process_Start, 11) \ 89 V(Process_Start, 11) \
90 V(Process_Wait, 5) \ 90 V(Process_Wait, 5) \
91 V(Process_KillPid, 2) \ 91 V(Process_KillPid, 2) \
92 V(Process_SetExitCode, 1) \ 92 V(Process_SetExitCode, 1) \
93 V(Process_GetExitCode, 0) \ 93 V(Process_GetExitCode, 0) \
94 V(Process_Exit, 1) \ 94 V(Process_Exit, 1) \
95 V(Process_Sleep, 1) \ 95 V(Process_Sleep, 1) \
96 V(Process_Pid, 1) \ 96 V(Process_Pid, 1) \
97 V(Process_SetSignalHandler, 1) \ 97 V(Process_SetSignalHandler, 1) \
98 V(Process_ClearSignalHandler, 1) \ 98 V(Process_ClearSignalHandler, 1) \
99 V(SecureSocket_Connect, 10) \ 99 V(SecureSocket_Connect, 8) \
100 V(SecureSocket_Destroy, 1) \ 100 V(SecureSocket_Destroy, 1) \
101 V(SecureSocket_FilterPointer, 1) \ 101 V(SecureSocket_FilterPointer, 1) \
102 V(SecureSocket_GetSelectedProtocol, 1) \ 102 V(SecureSocket_GetSelectedProtocol, 1) \
103 V(SecureSocket_Handshake, 1) \ 103 V(SecureSocket_Handshake, 1) \
104 V(SecureSocket_Init, 1) \ 104 V(SecureSocket_Init, 1) \
105 V(SecureSocket_InitializeLibrary, 3) \
106 V(SecureSocket_PeerCertificate, 1) \ 105 V(SecureSocket_PeerCertificate, 1) \
107 V(SecureSocket_RegisterBadCertificateCallback, 2) \ 106 V(SecureSocket_RegisterBadCertificateCallback, 2) \
108 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ 107 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \
109 V(SecureSocket_Renegotiate, 4) \ 108 V(SecureSocket_Renegotiate, 4) \
109 V(SecurityContext_Allocate, 1) \
110 V(SecurityContext_UsePrivateKey, 3) \
111 V(SecurityContext_SetAlpnProtocols, 3) \
112 V(SecurityContext_SetClientAuthorities, 2) \
113 V(SecurityContext_SetTrustedCertificates, 3) \
114 V(SecurityContext_TrustBuiltinRoots, 1) \
115 V(SecurityContext_UseCertificateChain, 2) \
110 V(ServerSocket_Accept, 2) \ 116 V(ServerSocket_Accept, 2) \
111 V(ServerSocket_CreateBindListen, 6) \ 117 V(ServerSocket_CreateBindListen, 6) \
112 V(Socket_CreateConnect, 3) \ 118 V(Socket_CreateConnect, 3) \
113 V(Socket_CreateBindConnect, 4) \ 119 V(Socket_CreateBindConnect, 4) \
114 V(Socket_CreateBindDatagram, 4) \ 120 V(Socket_CreateBindDatagram, 4) \
115 V(Socket_Available, 1) \ 121 V(Socket_Available, 1) \
116 V(Socket_Read, 2) \ 122 V(Socket_Read, 2) \
117 V(Socket_RecvFrom, 1) \ 123 V(Socket_RecvFrom, 1) \
118 V(Socket_WriteList, 4) \ 124 V(Socket_WriteList, 4) \
119 V(Socket_SendTo, 6) \ 125 V(Socket_SendTo, 6) \
120 V(Socket_GetPort, 1) \ 126 V(Socket_GetPort, 1) \
121 V(Socket_GetRemotePeer, 1) \ 127 V(Socket_GetRemotePeer, 1) \
122 V(Socket_GetError, 1) \ 128 V(Socket_GetError, 1) \
123 V(Socket_GetStdioHandle, 2) \ 129 V(Socket_GetStdioHandle, 2) \
124 V(Socket_GetType, 1) \ 130 V(Socket_GetType, 1) \
125 V(Socket_GetOption, 3) \ 131 V(Socket_GetOption, 3) \
126 V(Socket_SetOption, 4) \ 132 V(Socket_SetOption, 4) \
127 V(Socket_JoinMulticast, 4) \ 133 V(Socket_JoinMulticast, 4) \
128 V(Socket_LeaveMulticast, 4) \ 134 V(Socket_LeaveMulticast, 4) \
129 V(Socket_MarkSocketAsSharedHack, 1) \ 135 V(Socket_MarkSocketAsSharedHack, 1) \
130 V(Socket_GetSocketId, 1) \ 136 V(Socket_GetSocketId, 1) \
131 V(Socket_SetSocketId, 2) \ 137 V(Socket_SetSocketId, 2) \
132 V(Stdin_ReadByte, 1) \ 138 V(Stdin_ReadByte, 1) \
133 V(Stdin_GetEchoMode, 0) \ 139 V(Stdin_GetEchoMode, 0) \
134 V(Stdin_SetEchoMode, 1) \ 140 V(Stdin_SetEchoMode, 1) \
135 V(Stdin_GetLineMode, 0) \ 141 V(Stdin_GetLineMode, 0) \
136 V(Stdin_SetLineMode, 1) \ 142 V(Stdin_SetLineMode, 1) \
137 V(Stdout_GetTerminalSize, 1) \ 143 V(Stdout_GetTerminalSize, 1) \
138 V(StringToSystemEncoding, 1) \ 144 V(StringToSystemEncoding, 1) \
139 V(SystemEncodingToString, 1) 145 V(SystemEncodingToString, 1) \
140 146 V(X509_Subject, 1) \
147 V(X509_Issuer, 1) \
148 V(X509_StartValidity, 1) \
149 V(X509_EndValidity, 1)
141 150
142 IO_NATIVE_LIST(DECLARE_FUNCTION); 151 IO_NATIVE_LIST(DECLARE_FUNCTION);
143 152
144 static struct NativeEntries { 153 static struct NativeEntries {
145 const char* name_; 154 const char* name_;
146 Dart_NativeFunction function_; 155 Dart_NativeFunction function_;
147 int argument_count_; 156 int argument_count_;
148 } IOEntries[] = { 157 } IOEntries[] = {
149 IO_NATIVE_LIST(REGISTER_FUNCTION) 158 IO_NATIVE_LIST(REGISTER_FUNCTION)
150 }; 159 };
(...skipping 26 matching lines...) Expand all
177 struct NativeEntries* entry = &(IOEntries[i]); 186 struct NativeEntries* entry = &(IOEntries[i]);
178 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 187 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
179 return reinterpret_cast<const uint8_t*>(entry->name_); 188 return reinterpret_cast<const uint8_t*>(entry->name_);
180 } 189 }
181 } 190 }
182 return NULL; 191 return NULL;
183 } 192 }
184 193
185 } // namespace bin 194 } // namespace bin
186 } // namespace dart 195 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/io_impl_sources.gypi ('k') | runtime/bin/io_service_no_ssl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698