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 part of dart.io; | 5 part of dart.io; |
6 | 6 |
7 // This list must be kept in sync with the list in runtime/bin/io_service.h | 7 // This list must be kept in sync with the list in runtime/bin/io_service.h |
8 const int _FILE_EXISTS = 0; | 8 const int _FILE_EXISTS = 0; |
9 const int _FILE_CREATE = 1; | 9 const int _FILE_CREATE = 1; |
10 const int _FILE_DELETE = 2; | 10 const int _FILE_DELETE = 2; |
11 const int _FILE_RENAME = 3; | 11 const int _FILE_RENAME = 3; |
12 const int _FILE_COPY = 4; | 12 const int _FILE_COPY = 4; |
13 const int _FILE_OPEN = 5; | 13 const int _FILE_OPEN = 5; |
14 const int _FILE_RESOLVE_SYMBOLIC_LINKS = 6; | 14 const int _FILE_RESOLVE_SYMBOLIC_LINKS = 6; |
15 const int _FILE_CLOSE = 7; | 15 const int _FILE_CLOSE = 7; |
16 const int _FILE_POSITION = 8; | 16 const int _FILE_POSITION = 8; |
17 const int _FILE_SET_POSITION = 9; | 17 const int _FILE_SET_POSITION = 9; |
18 const int _FILE_TRUNCATE = 10; | 18 const int _FILE_TRUNCATE = 10; |
19 const int _FILE_LENGTH = 11; | 19 const int _FILE_LENGTH = 11; |
20 const int _FILE_LENGTH_FROM_PATH = 12; | 20 const int _FILE_LENGTH_FROM_PATH = 12; |
21 const int _FILE_LAST_MODIFIED = 13; | 21 const int _FILE_LAST_ACCESSED = 13; |
22 const int _FILE_FLUSH = 14; | 22 const int _FILE_SET_LAST_ACCESSED = 14; |
23 const int _FILE_READ_BYTE = 15; | 23 const int _FILE_LAST_MODIFIED = 15; |
24 const int _FILE_WRITE_BYTE = 16; | 24 const int _FILE_SET_LAST_MODIFIED = 16; |
25 const int _FILE_READ = 17; | 25 const int _FILE_FLUSH = 17; |
26 const int _FILE_READ_INTO = 18; | 26 const int _FILE_READ_BYTE = 18; |
27 const int _FILE_WRITE_FROM = 19; | 27 const int _FILE_WRITE_BYTE = 19; |
28 const int _FILE_CREATE_LINK = 20; | 28 const int _FILE_READ = 20; |
29 const int _FILE_DELETE_LINK = 21; | 29 const int _FILE_READ_INTO = 21; |
30 const int _FILE_RENAME_LINK = 22; | 30 const int _FILE_WRITE_FROM = 22; |
31 const int _FILE_LINK_TARGET = 23; | 31 const int _FILE_CREATE_LINK = 23; |
32 const int _FILE_TYPE = 24; | 32 const int _FILE_DELETE_LINK = 24; |
33 const int _FILE_IDENTICAL = 25; | 33 const int _FILE_RENAME_LINK = 25; |
34 const int _FILE_STAT = 26; | 34 const int _FILE_LINK_TARGET = 26; |
35 const int _FILE_LOCK = 27; | 35 const int _FILE_TYPE = 27; |
36 const int _SOCKET_LOOKUP = 28; | 36 const int _FILE_IDENTICAL = 28; |
37 const int _SOCKET_LIST_INTERFACES = 29; | 37 const int _FILE_STAT = 29; |
38 const int _SOCKET_REVERSE_LOOKUP = 30; | 38 const int _FILE_LOCK = 30; |
39 const int _DIRECTORY_CREATE = 31; | 39 const int _SOCKET_LOOKUP = 31; |
40 const int _DIRECTORY_DELETE = 32; | 40 const int _SOCKET_LIST_INTERFACES = 32; |
41 const int _DIRECTORY_EXISTS = 33; | 41 const int _SOCKET_REVERSE_LOOKUP = 33; |
42 const int _DIRECTORY_CREATE_TEMP = 34; | 42 const int _DIRECTORY_CREATE = 34; |
43 const int _DIRECTORY_LIST_START = 35; | 43 const int _DIRECTORY_DELETE = 35; |
44 const int _DIRECTORY_LIST_NEXT = 36; | 44 const int _DIRECTORY_EXISTS = 36; |
45 const int _DIRECTORY_LIST_STOP = 37; | 45 const int _DIRECTORY_CREATE_TEMP = 37; |
46 const int _DIRECTORY_RENAME = 38; | 46 const int _DIRECTORY_LIST_START = 38; |
47 const int _SSL_PROCESS_FILTER = 39; | 47 const int _DIRECTORY_LIST_NEXT = 39; |
| 48 const int _DIRECTORY_LIST_STOP = 40; |
| 49 const int _DIRECTORY_RENAME = 41; |
| 50 const int _SSL_PROCESS_FILTER = 42; |
48 | 51 |
49 class _IOService { | 52 class _IOService { |
50 external static Future _dispatch(int request, List data); | 53 external static Future _dispatch(int request, List data); |
51 } | 54 } |
OLD | NEW |