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

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

Issue 2761673002: [dart:io][windows] Use WriteFile instead of _write (Closed)
Patch Set: Format stdio.dart Created 3 years, 8 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_win.cc ('k') | runtime/bin/process_patch.dart » ('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 27 matching lines...) Expand all
38 V(File_Open, 2) \ 38 V(File_Open, 2) \
39 V(File_Exists, 1) \ 39 V(File_Exists, 1) \
40 V(File_Close, 1) \ 40 V(File_Close, 1) \
41 V(File_ReadByte, 1) \ 41 V(File_ReadByte, 1) \
42 V(File_WriteByte, 2) \ 42 V(File_WriteByte, 2) \
43 V(File_Read, 2) \ 43 V(File_Read, 2) \
44 V(File_ReadInto, 4) \ 44 V(File_ReadInto, 4) \
45 V(File_WriteFrom, 4) \ 45 V(File_WriteFrom, 4) \
46 V(File_Position, 1) \ 46 V(File_Position, 1) \
47 V(File_SetPosition, 2) \ 47 V(File_SetPosition, 2) \
48 V(File_SetTranslation, 2) \
49 V(File_Truncate, 2) \ 48 V(File_Truncate, 2) \
50 V(File_Length, 1) \ 49 V(File_Length, 1) \
51 V(File_LengthFromPath, 1) \ 50 V(File_LengthFromPath, 1) \
52 V(File_Stat, 1) \ 51 V(File_Stat, 1) \
53 V(File_LastModified, 1) \ 52 V(File_LastModified, 1) \
54 V(File_SetLastModified, 2) \ 53 V(File_SetLastModified, 2) \
55 V(File_LastAccessed, 1) \ 54 V(File_LastAccessed, 1) \
56 V(File_SetLastAccessed, 2) \ 55 V(File_SetLastAccessed, 2) \
57 V(File_Flush, 1) \ 56 V(File_Flush, 1) \
58 V(File_Lock, 4) \ 57 V(File_Lock, 4) \
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 struct NativeEntries* entry = &(IOEntries[i]); 192 struct NativeEntries* entry = &(IOEntries[i]);
194 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 193 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
195 return reinterpret_cast<const uint8_t*>(entry->name_); 194 return reinterpret_cast<const uint8_t*>(entry->name_);
196 } 195 }
197 } 196 }
198 return NULL; 197 return NULL;
199 } 198 }
200 199
201 } // namespace bin 200 } // namespace bin
202 } // namespace dart 201 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/process_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698