1 | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
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. |
4 | |
5 | #include "platform/globals.h" |
6 | #if defined(HOST_OS_FUCHSIA) |
7 | |
8 | #include "bin/file_system_watcher.h" |
9 | |
10 | #include <errno.h> |
11 | |
12 | namespace dart { |
13 | namespace bin { |
14 | |
15 | Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) { |
16 | errno = ENOSYS; |
17 | return DartUtils::NewDartOSError(); |
18 | } |
19 | |
20 | intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) { |
21 | errno = ENOSYS; |
22 | return -1; |
23 | } |
24 | |
25 | bool FileSystemWatcher::IsSupported() { |
26 | return false; |
27 | } |
28 | |
29 | void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) { |
30 | } |
31 | |
32 | intptr_t FileSystemWatcher::Init() { |
33 | return 0; |
34 | } |
35 | |
36 | void FileSystemWatcher::Close(intptr_t id) { |
37 | } |
38 | |
39 | intptr_t FileSystemWatcher::WatchPath(intptr_t id, |
40 | Namespace* namespc, |
41 | const char* path, |
42 | int events, |
43 | bool recursive) { |
44 | errno = ENOSYS; |
45 | return -1; |
46 | } |
47 | |
48 | } // namespace bin |
49 | } // namespace dart |
50 | |
51 | #endif // defined(HOST_OS_FUCHSIA) |
52 | |