about summary refs log tree commit diff
path: root/src/libstd/sys/unix/process/process_fuchsia.rs
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2017-02-17 11:26:22 -0800
committerRaph Levien <raph@google.com>2017-02-17 11:26:22 -0800
commit609133098bfbeae69fb9c65ca5438c411d27dfd6 (patch)
treee2f40eda4e62de61ef70b0207ee0a793388eb2e0 /src/libstd/sys/unix/process/process_fuchsia.rs
parent668864d9edd4f28d48005b57e5b177228cb974c5 (diff)
downloadrust-609133098bfbeae69fb9c65ca5438c411d27dfd6.tar.gz
rust-609133098bfbeae69fb9c65ca5438c411d27dfd6.zip
Follow rename of mx_handle_wait Magenta syscalls
The mx_handle_wait_* syscalls in Magenta were renamed to
mx_object_wait. The syscall is used in the Magenta/Fuchsia
implementation of std::process, to wait on child processes.

In addition, this patch enables the use of the system provided
libbacktrace library on Fuchsia targets. Symbolization is not yet
working, but at least it allows printing hex addresses in a backtrace
and makes building succeed when the backtrace feature is not disabled.
Diffstat (limited to 'src/libstd/sys/unix/process/process_fuchsia.rs')
-rw-r--r--src/libstd/sys/unix/process/process_fuchsia.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/process/process_fuchsia.rs b/src/libstd/sys/unix/process/process_fuchsia.rs
index 0bb2e0c1a83..608e44ca9e8 100644
--- a/src/libstd/sys/unix/process/process_fuchsia.rs
+++ b/src/libstd/sys/unix/process/process_fuchsia.rs
@@ -151,7 +151,7 @@ impl Process {
         let mut avail: mx_size_t = 0;
 
         unsafe {
-            mx_cvt(mx_handle_wait_one(self.handle.raw(), MX_TASK_TERMINATED,
+            mx_cvt(mx_object_wait_one(self.handle.raw(), MX_TASK_TERMINATED,
                                       MX_TIME_INFINITE, ptr::null_mut()))?;
             mx_cvt(mx_object_get_info(self.handle.raw(), MX_INFO_PROCESS,
                                       &mut proc_info as *mut _ as *mut libc::c_void,
@@ -174,7 +174,7 @@ impl Process {
         let mut avail: mx_size_t = 0;
 
         unsafe {
-            let status = mx_handle_wait_one(self.handle.raw(), MX_TASK_TERMINATED,
+            let status = mx_object_wait_one(self.handle.raw(), MX_TASK_TERMINATED,
                                             0, ptr::null_mut());
             match status {
                 0 => { }, // Success