Skip to content

Commit ae79201

Browse files
committed
Auto merge of #42452 - raphlinus:mx_job_default, r=alexcrichton
[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.
2 parents d015610 + 4e2a43f commit ae79201

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub struct mx_info_process_t {
102102
}
103103

104104
extern {
105-
static __magenta_job_default: mx_handle_t;
105+
pub fn mx_job_default() -> mx_handle_t;
106106

107107
pub fn mx_task_kill(handle: mx_handle_t) -> mx_status_t;
108108

@@ -119,10 +119,6 @@ extern {
119119
avail: *mut mx_size_t) -> mx_status_t;
120120
}
121121

122-
pub fn mx_job_default() -> mx_handle_t {
123-
unsafe { return __magenta_job_default; }
124-
}
125-
126122
// From `enum special_handles` in system/ulib/launchpad/launchpad.c
127123
// HND_LOADER_SVC = 0
128124
// HND_EXEC_VMO = 1

0 commit comments

Comments
 (0)