OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #include "platform/globals.h" |
| 6 #if defined(TARGET_OS_OPENBSD) |
| 7 |
| 8 #include "bin/file_system_watcher.h" |
| 9 |
| 10 #include "platform/signal_blocker.h" |
| 11 |
| 12 namespace dart { |
| 13 namespace bin { |
| 14 |
| 15 bool FileSystemWatcher::IsSupported() { |
| 16 /* There is no inotify API on OpenBSD*/ |
| 17 return false; |
| 18 } |
| 19 |
| 20 |
| 21 intptr_t FileSystemWatcher::Init() { |
| 22 UNIMPLEMENTED(); |
| 23 return 0; |
| 24 } |
| 25 |
| 26 |
| 27 void FileSystemWatcher::Close(intptr_t id) { |
| 28 UNIMPLEMENTED(); |
| 29 } |
| 30 |
| 31 |
| 32 intptr_t FileSystemWatcher::WatchPath(intptr_t id, |
| 33 const char* path, |
| 34 int events, |
| 35 bool recursive) { |
| 36 UNIMPLEMENTED(); |
| 37 return 0; |
| 38 } |
| 39 |
| 40 |
| 41 void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) { |
| 42 UNIMPLEMENTED(); |
| 43 } |
| 44 |
| 45 |
| 46 intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) { |
| 47 UNIMPLEMENTED(); |
| 48 return id; |
| 49 } |
| 50 |
| 51 |
| 52 Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) { |
| 53 UNIMPLEMENTED(); |
| 54 Dart_Handle events = Dart_NewList(0); |
| 55 return events; |
| 56 } |
| 57 |
| 58 } // namespace bin |
| 59 } // namespace dart |
| 60 |
| 61 #endif // defined(TARGET_OS_OPENBSD) |
OLD | NEW |