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

Unified Diff: runtime/bin/file_system_watcher_openbsd.cc

Issue 1559053002: Refs #10260 OpenBSD support #25327 Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review issues Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_openbsd.cc ('k') | runtime/bin/io_impl_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_system_watcher_openbsd.cc
diff --git a/runtime/bin/file_system_watcher_openbsd.cc b/runtime/bin/file_system_watcher_openbsd.cc
new file mode 100644
index 0000000000000000000000000000000000000000..18862c9aa27ea431895a6dd26028abf634f56c6e
--- /dev/null
+++ b/runtime/bin/file_system_watcher_openbsd.cc
@@ -0,0 +1,61 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#include "platform/globals.h"
+#if defined(TARGET_OS_OPENBSD)
+
+#include "bin/file_system_watcher.h"
+
+#include "platform/signal_blocker.h"
+
+namespace dart {
+namespace bin {
+
+bool FileSystemWatcher::IsSupported() {
+ /* There is no inotify API on OpenBSD*/
+ return false;
+}
+
+
+intptr_t FileSystemWatcher::Init() {
+ UNIMPLEMENTED();
+ return 0;
+}
+
+
+void FileSystemWatcher::Close(intptr_t id) {
+ UNIMPLEMENTED();
+}
+
+
+intptr_t FileSystemWatcher::WatchPath(intptr_t id,
+ const char* path,
+ int events,
+ bool recursive) {
+ UNIMPLEMENTED();
+ return 0;
+}
+
+
+void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) {
+ UNIMPLEMENTED();
+}
+
+
+intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) {
+ UNIMPLEMENTED();
+ return id;
+}
+
+
+Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) {
+ UNIMPLEMENTED();
+ Dart_Handle events = Dart_NewList(0);
+ return events;
+}
+
+} // namespace bin
+} // namespace dart
+
+#endif // defined(TARGET_OS_OPENBSD)
« no previous file with comments | « runtime/bin/file_openbsd.cc ('k') | runtime/bin/io_impl_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698