| OLD | NEW |
| 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 #ifndef BIN_FILE_H_ | 5 #ifndef BIN_FILE_H_ |
| 6 #define BIN_FILE_H_ | 6 #define BIN_FILE_H_ |
| 7 | 7 |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 enum StdioHandleType { | 55 enum StdioHandleType { |
| 56 kTerminal = 0, | 56 kTerminal = 0, |
| 57 kPipe = 1, | 57 kPipe = 1, |
| 58 kFile = 2, | 58 kFile = 2, |
| 59 kSocket = 3, | 59 kSocket = 3, |
| 60 kOther = 4 | 60 kOther = 4 |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 enum FileRequest { | |
| 64 kExistsRequest = 0, | |
| 65 kCreateRequest = 1, | |
| 66 kDeleteRequest = 2, | |
| 67 kRenameRequest = 3, | |
| 68 kOpenRequest = 4, | |
| 69 kResolveSymbolicLinksRequest = 5, | |
| 70 kCloseRequest = 6, | |
| 71 kPositionRequest = 7, | |
| 72 kSetPositionRequest = 8, | |
| 73 kTruncateRequest = 9, | |
| 74 kLengthRequest = 10, | |
| 75 kLengthFromPathRequest = 11, | |
| 76 kLastModifiedRequest = 12, | |
| 77 kFlushRequest = 13, | |
| 78 kReadByteRequest = 14, | |
| 79 kWriteByteRequest = 15, | |
| 80 kReadRequest = 16, | |
| 81 kReadIntoRequest = 17, | |
| 82 kWriteFromRequest = 18, | |
| 83 kCreateLinkRequest = 19, | |
| 84 kDeleteLinkRequest = 20, | |
| 85 kRenameLinkRequest = 21, | |
| 86 kLinkTargetRequest = 22, | |
| 87 kTypeRequest = 23, | |
| 88 kIdenticalRequest = 24, | |
| 89 kStatRequest = 25 | |
| 90 }; | |
| 91 | |
| 92 enum FileStat { | 63 enum FileStat { |
| 93 // These match the constants in FileStat in file_system_entity.dart. | 64 // These match the constants in FileStat in file_system_entity.dart. |
| 94 kType = 0, | 65 kType = 0, |
| 95 kCreatedTime = 1, | 66 kCreatedTime = 1, |
| 96 kModifiedTime = 2, | 67 kModifiedTime = 2, |
| 97 kAccessedTime = 3, | 68 kAccessedTime = 3, |
| 98 kMode = 4, | 69 kMode = 4, |
| 99 kSize = 5, | 70 kSize = 5, |
| 100 kStatSize = 6 | 71 kStatSize = 6 |
| 101 }; | 72 }; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // FileHandle is an OS specific class which stores data about the file. | 176 // FileHandle is an OS specific class which stores data about the file. |
| 206 FileHandle* handle_; // OS specific handle for the file. | 177 FileHandle* handle_; // OS specific handle for the file. |
| 207 | 178 |
| 208 DISALLOW_COPY_AND_ASSIGN(File); | 179 DISALLOW_COPY_AND_ASSIGN(File); |
| 209 }; | 180 }; |
| 210 | 181 |
| 211 } // namespace bin | 182 } // namespace bin |
| 212 } // namespace dart | 183 } // namespace dart |
| 213 | 184 |
| 214 #endif // BIN_FILE_H_ | 185 #endif // BIN_FILE_H_ |
| OLD | NEW |