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

Side by Side Diff: runtime/bin/file.h

Issue 13636003: Fix a number of issues with determining the type of stdio (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/socket_linux.cc » ('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) 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/socket_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698