]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #42452 - raphlinus:mx_job_default, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 5 Jun 2017 21:42:19 +0000 (21:42 +0000)
committerbors <bors@rust-lang.org>
Mon, 5 Jun 2017 21:42:19 +0000 (21:42 +0000)
[fuchsia] Track change of mx_job_default

The implementation of mx_job_default changed from a macro which
accessed the __magenta_job_default global variable to a proper
function call. This patch tracks that change.

src/libstd/sys/unix/process/magenta.rs

index 5b5e29c0374f021defbeac8ad0bc31410506c43d..ab609126cdb544443c957f14fcfb03351b6f0666 100644 (file)
@@ -102,7 +102,7 @@ pub struct mx_info_process_t {
 }
 
 extern {
-    static __magenta_job_default: mx_handle_t;
+    pub fn mx_job_default() -> mx_handle_t;
 
     pub fn mx_task_kill(handle: mx_handle_t) -> mx_status_t;
 
@@ -119,10 +119,6 @@ pub fn mx_object_get_info(handle: mx_handle_t, topic: u32, buffer: *mut c_void,
                               avail: *mut mx_size_t) -> mx_status_t;
 }
 
-pub fn mx_job_default() -> mx_handle_t {
-    unsafe { return __magenta_job_default; }
-}
-
 // From `enum special_handles` in system/ulib/launchpad/launchpad.c
 // HND_LOADER_SVC = 0
 // HND_EXEC_VMO = 1