OLD | NEW |
1 // Copyright (c) 2012, 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> |
11 #include <sys/types.h> | 11 #include <sys/types.h> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 kIdentical = 0, | 47 kIdentical = 0, |
48 kDifferent = 1, | 48 kDifferent = 1, |
49 kError = 2 | 49 kError = 2 |
50 }; | 50 }; |
51 | 51 |
52 enum StdioHandleType { | 52 enum StdioHandleType { |
53 kTerminal = 0, | 53 kTerminal = 0, |
54 kPipe = 1, | 54 kPipe = 1, |
55 kFile = 2, | 55 kFile = 2, |
56 kSocket = 3, | 56 kSocket = 3, |
57 kOther = -1 | 57 kOther = 4 |
58 }; | 58 }; |
59 | 59 |
60 enum FileRequest { | 60 enum FileRequest { |
61 kExistsRequest = 0, | 61 kExistsRequest = 0, |
62 kCreateRequest = 1, | 62 kCreateRequest = 1, |
63 kDeleteRequest = 2, | 63 kDeleteRequest = 2, |
64 kOpenRequest = 3, | 64 kOpenRequest = 3, |
65 kFullPathRequest = 4, | 65 kFullPathRequest = 4, |
66 kDirectoryRequest = 5, | 66 kDirectoryRequest = 5, |
67 kCloseRequest = 6, | 67 kCloseRequest = 6, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // FileHandle is an OS specific class which stores data about the file. | 156 // FileHandle is an OS specific class which stores data about the file. |
157 FileHandle* handle_; // OS specific handle for the file. | 157 FileHandle* handle_; // OS specific handle for the file. |
158 | 158 |
159 static NativeService file_service_; | 159 static NativeService file_service_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(File); | 161 DISALLOW_COPY_AND_ASSIGN(File); |
162 }; | 162 }; |
163 | 163 |
164 #endif // BIN_FILE_H_ | 164 #endif // BIN_FILE_H_ |
OLD | NEW |