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

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

Issue 250513002: Add support for cloning server-sockets. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback. Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/eventhandler_linux.cc ('k') | runtime/bin/socket.cc » ('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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 V(Socket_SendTo, 6) \ 75 V(Socket_SendTo, 6) \
76 V(Socket_GetPort, 1) \ 76 V(Socket_GetPort, 1) \
77 V(Socket_GetRemotePeer, 1) \ 77 V(Socket_GetRemotePeer, 1) \
78 V(Socket_GetError, 1) \ 78 V(Socket_GetError, 1) \
79 V(Socket_GetStdioHandle, 2) \ 79 V(Socket_GetStdioHandle, 2) \
80 V(Socket_GetType, 1) \ 80 V(Socket_GetType, 1) \
81 V(Socket_GetOption, 3) \ 81 V(Socket_GetOption, 3) \
82 V(Socket_SetOption, 4) \ 82 V(Socket_SetOption, 4) \
83 V(Socket_JoinMulticast, 4) \ 83 V(Socket_JoinMulticast, 4) \
84 V(Socket_LeaveMulticast, 4) \ 84 V(Socket_LeaveMulticast, 4) \
85 V(Socket_GetSocketId, 1) \
85 V(Socket_SetSocketId, 2) \ 86 V(Socket_SetSocketId, 2) \
86 V(Stdin_ReadByte, 1) \ 87 V(Stdin_ReadByte, 1) \
87 V(Stdin_GetEchoMode, 0) \ 88 V(Stdin_GetEchoMode, 0) \
88 V(Stdin_SetEchoMode, 1) \ 89 V(Stdin_SetEchoMode, 1) \
89 V(Stdin_GetLineMode, 0) \ 90 V(Stdin_GetLineMode, 0) \
90 V(Stdin_SetLineMode, 1) \ 91 V(Stdin_SetLineMode, 1) \
91 V(Stdout_GetTerminalSize, 0) \ 92 V(Stdout_GetTerminalSize, 0) \
92 V(StringToSystemEncoding, 1) \ 93 V(StringToSystemEncoding, 1) \
93 V(SystemEncodingToString, 1) 94 V(SystemEncodingToString, 1)
94 95
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 struct NativeEntries* entry = &(IOEntries[i]); 132 struct NativeEntries* entry = &(IOEntries[i]);
132 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 133 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
133 return reinterpret_cast<const uint8_t*>(entry->name_); 134 return reinterpret_cast<const uint8_t*>(entry->name_);
134 } 135 }
135 } 136 }
136 return NULL; 137 return NULL;
137 } 138 }
138 139
139 } // namespace bin 140 } // namespace bin
140 } // namespace dart 141 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler_linux.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698