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

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

Issue 1293533002: DO NOT SUBMIT: Unix domain sockets. From CL 1061283003. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Added Mac OS fix Created 5 years, 4 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/file_macos.cc ('k') | runtime/bin/socket.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) \ 105 V(SecureSocket_InitializeLibrary, 3) \
106 V(SecureSocket_PeerCertificate, 1) \ 106 V(SecureSocket_PeerCertificate, 1) \
107 V(SecureSocket_RegisterBadCertificateCallback, 2) \ 107 V(SecureSocket_RegisterBadCertificateCallback, 2) \
108 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ 108 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \
109 V(SecureSocket_Renegotiate, 4) \ 109 V(SecureSocket_Renegotiate, 4) \
110 V(ServerSocket_Accept, 2) \ 110 V(ServerSocket_Accept, 2) \
111 V(ServerSocket_CreateBindListen, 6) \ 111 V(ServerSocket_CreateBindListen, 6) \
112 V(ServerSocket_CreateBindListenUnix, 4) \
112 V(Socket_CreateConnect, 3) \ 113 V(Socket_CreateConnect, 3) \
113 V(Socket_CreateBindConnect, 4) \ 114 V(Socket_CreateBindConnect, 4) \
115 V(Socket_CreateConnectUnix, 2) \
114 V(Socket_CreateBindDatagram, 4) \ 116 V(Socket_CreateBindDatagram, 4) \
115 V(Socket_Available, 1) \ 117 V(Socket_Available, 1) \
116 V(Socket_Read, 2) \ 118 V(Socket_Read, 2) \
117 V(Socket_RecvFrom, 1) \ 119 V(Socket_RecvFrom, 1) \
118 V(Socket_WriteList, 4) \ 120 V(Socket_WriteList, 4) \
119 V(Socket_SendTo, 6) \ 121 V(Socket_SendTo, 6) \
120 V(Socket_GetPort, 1) \ 122 V(Socket_GetPort, 1) \
121 V(Socket_GetRemotePeer, 1) \ 123 V(Socket_GetRemotePeer, 1) \
122 V(Socket_GetError, 1) \ 124 V(Socket_GetError, 1) \
123 V(Socket_GetStdioHandle, 2) \ 125 V(Socket_GetStdioHandle, 2) \
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 struct NativeEntries* entry = &(IOEntries[i]); 179 struct NativeEntries* entry = &(IOEntries[i]);
178 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 180 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
179 return reinterpret_cast<const uint8_t*>(entry->name_); 181 return reinterpret_cast<const uint8_t*>(entry->name_);
180 } 182 }
181 } 183 }
182 return NULL; 184 return NULL;
183 } 185 }
184 186
185 } // namespace bin 187 } // namespace bin
186 } // namespace dart 188 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698