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

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

Issue 2585443002: Error checking for Stdio calls (Closed)
Patch Set: Fix Windows Created 4 years 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 | « no previous file | runtime/bin/stdio.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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 V(Socket_GetRemotePeer, 1) \ 131 V(Socket_GetRemotePeer, 1) \
132 V(Socket_GetError, 1) \ 132 V(Socket_GetError, 1) \
133 V(Socket_GetStdioHandle, 2) \ 133 V(Socket_GetStdioHandle, 2) \
134 V(Socket_GetType, 1) \ 134 V(Socket_GetType, 1) \
135 V(Socket_GetOption, 3) \ 135 V(Socket_GetOption, 3) \
136 V(Socket_SetOption, 4) \ 136 V(Socket_SetOption, 4) \
137 V(Socket_JoinMulticast, 4) \ 137 V(Socket_JoinMulticast, 4) \
138 V(Socket_LeaveMulticast, 4) \ 138 V(Socket_LeaveMulticast, 4) \
139 V(Socket_GetSocketId, 1) \ 139 V(Socket_GetSocketId, 1) \
140 V(Socket_SetSocketId, 2) \ 140 V(Socket_SetSocketId, 2) \
141 V(Stdin_ReadByte, 1) \ 141 V(Stdin_ReadByte, 0) \
142 V(Stdin_GetEchoMode, 0) \ 142 V(Stdin_GetEchoMode, 0) \
143 V(Stdin_SetEchoMode, 1) \ 143 V(Stdin_SetEchoMode, 1) \
144 V(Stdin_GetLineMode, 0) \ 144 V(Stdin_GetLineMode, 0) \
145 V(Stdin_SetLineMode, 1) \ 145 V(Stdin_SetLineMode, 1) \
146 V(Stdout_GetTerminalSize, 1) \ 146 V(Stdout_GetTerminalSize, 1) \
147 V(StringToSystemEncoding, 1) \ 147 V(StringToSystemEncoding, 1) \
148 V(SystemEncodingToString, 1) \ 148 V(SystemEncodingToString, 1) \
149 V(X509_Subject, 1) \ 149 V(X509_Subject, 1) \
150 V(X509_Issuer, 1) \ 150 V(X509_Issuer, 1) \
151 V(X509_StartValidity, 1) \ 151 V(X509_StartValidity, 1) \
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 struct NativeEntries* entry = &(IOEntries[i]); 187 struct NativeEntries* entry = &(IOEntries[i]);
188 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 188 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
189 return reinterpret_cast<const uint8_t*>(entry->name_); 189 return reinterpret_cast<const uint8_t*>(entry->name_);
190 } 190 }
191 } 191 }
192 return NULL; 192 return NULL;
193 } 193 }
194 194
195 } // namespace bin 195 } // namespace bin
196 } // namespace dart 196 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/stdio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698