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

Unified Diff: runtime/bin/eventhandler_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/eventhandler_openbsd.h ('k') | runtime/bin/extensions_openbsd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_openbsd.cc
diff --git a/runtime/bin/eventhandler_macos.cc b/runtime/bin/eventhandler_openbsd.cc
similarity index 98%
copy from runtime/bin/eventhandler_macos.cc
copy to runtime/bin/eventhandler_openbsd.cc
index faf471b2a0f02e1ac4a1f6664a97fd1ad71f591d..87a53060945389252500a57f09261f709e3eb82c 100644
--- a/runtime/bin/eventhandler_macos.cc
+++ b/runtime/bin/eventhandler_openbsd.cc
@@ -3,10 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
-#if defined(TARGET_OS_MACOS)
+#if defined(TARGET_OS_OPENBSD)
#include "bin/eventhandler.h"
-#include "bin/eventhandler_macos.h"
+#include "bin/eventhandler_openbsd.h"
#include <errno.h> // NOLINT
#include <pthread.h> // NOLINT
@@ -433,7 +433,7 @@ void EventHandlerImplementation::EventHandlerEntry(uword args) {
ts.tv_nsec = (millis32 - (secs * 1000)) * 1000000;
timeout = &ts;
}
- // We have to use TEMP_FAILURE_RETRY for mac, as kevent can modify the
+ // We have to use TEMP_FAILURE_RETRY for openbsd, as kevent can modify the
// current sigmask.
intptr_t result = TEMP_FAILURE_RETRY(
kevent(handler_impl->kqueue_fd_, NULL, 0, events, kMaxEvents, timeout));
@@ -487,4 +487,4 @@ uint32_t EventHandlerImplementation::GetHashmapHashFromFd(intptr_t fd) {
} // namespace bin
} // namespace dart
-#endif // defined(TARGET_OS_MACOS)
+#endif // defined(TARGET_OS_OPENBSD)
« no previous file with comments | « runtime/bin/eventhandler_openbsd.h ('k') | runtime/bin/extensions_openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698