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

Unified Diff: runtime/bin/eventhandler_fuchsia.cc

Issue 2355953004: Stop using deprecated (names of) magenta syscalls. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | runtime/vm/virtual_memory_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_fuchsia.cc
diff --git a/runtime/bin/eventhandler_fuchsia.cc b/runtime/bin/eventhandler_fuchsia.cc
index 69c2190017b0aa14cb832b65b4e566c5def44818..cdd4fad7ea1a563f4d97f9601e6536bd683d403b 100644
--- a/runtime/bin/eventhandler_fuchsia.cc
+++ b/runtime/bin/eventhandler_fuchsia.cc
@@ -20,9 +20,9 @@ namespace dart {
namespace bin {
EventHandlerImplementation::EventHandlerImplementation() {
- mx_status_t status = mx_message_pipe_create(interrupt_handles_, 0);
+ mx_status_t status = mx_msgpipe_create(interrupt_handles_, 0);
if (status != NO_ERROR) {
- FATAL1("mx_message_pipe_create failed: %s\n", mx_strstatus(status));
+ FATAL1("mx_msgpipe_create failed: %s\n", mx_strstatus(status));
}
}
@@ -48,9 +48,9 @@ void EventHandlerImplementation::WakeupHandler(intptr_t id,
msg.data = data;
mx_status_t status =
- mx_message_write(interrupt_handles_[1], &msg, sizeof(msg), NULL, 0, 0);
+ mx_msgpipe_write(interrupt_handles_[1], &msg, sizeof(msg), NULL, 0, 0);
if (status != NO_ERROR) {
- FATAL1("mx_message_write failed: %s\n", mx_strstatus(status));
+ FATAL1("mx_msgpipe_write failed: %s\n", mx_strstatus(status));
}
}
@@ -60,7 +60,7 @@ void EventHandlerImplementation::HandleInterruptFd() {
uint32_t bytes = kInterruptMessageSize;
mx_status_t status;
while (true) {
- status = mx_message_read(
+ status = mx_msgpipe_read(
interrupt_handles_[0], &msg, &bytes, NULL, NULL, 0);
if (status != NO_ERROR) {
break;
@@ -77,7 +77,7 @@ void EventHandlerImplementation::HandleInterruptFd() {
// status == ERR_BAD_STATE when we try to read and there are no messages
// available, so it is an error if we get here and status != ERR_BAD_STATE.
if (status != ERR_BAD_STATE) {
- FATAL1("mx_message_read failed: %s\n", mx_strstatus(status));
+ FATAL1("mx_msgpipe_read failed: %s\n", mx_strstatus(status));
}
}
« no previous file with comments | « no previous file | runtime/vm/virtual_memory_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698