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

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

Issue 2681683005: [dart:io] Adds functions to set file access and modification time (Closed)
Patch Set: Update changelog Created 3 years, 10 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/io_service.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_Truncate, 2) \ 48 V(File_Truncate, 2) \
49 V(File_Length, 1) \ 49 V(File_Length, 1) \
50 V(File_LengthFromPath, 1) \ 50 V(File_LengthFromPath, 1) \
51 V(File_Stat, 1) \ 51 V(File_Stat, 1) \
52 V(File_LastModified, 1) \ 52 V(File_LastModified, 1) \
53 V(File_SetLastModified, 2) \
54 V(File_LastAccessed, 1) \
55 V(File_SetLastAccessed, 2) \
53 V(File_Flush, 1) \ 56 V(File_Flush, 1) \
54 V(File_Lock, 4) \ 57 V(File_Lock, 4) \
55 V(File_Create, 1) \ 58 V(File_Create, 1) \
56 V(File_CreateLink, 2) \ 59 V(File_CreateLink, 2) \
57 V(File_LinkTarget, 1) \ 60 V(File_LinkTarget, 1) \
58 V(File_Delete, 1) \ 61 V(File_Delete, 1) \
59 V(File_DeleteLink, 1) \ 62 V(File_DeleteLink, 1) \
60 V(File_Rename, 2) \ 63 V(File_Rename, 2) \
61 V(File_Copy, 2) \ 64 V(File_Copy, 2) \
62 V(File_RenameLink, 2) \ 65 V(File_RenameLink, 2) \
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 struct NativeEntries* entry = &(IOEntries[i]); 190 struct NativeEntries* entry = &(IOEntries[i]);
188 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 191 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
189 return reinterpret_cast<const uint8_t*>(entry->name_); 192 return reinterpret_cast<const uint8_t*>(entry->name_);
190 } 193 }
191 } 194 }
192 return NULL; 195 return NULL;
193 } 196 }
194 197
195 } // namespace bin 198 } // namespace bin
196 } // namespace dart 199 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/io_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698