blob: 136ee63f05f00a09944e42c652d4d78c22bfc3b1 [file] [log] [blame]
#include "magenta_impl.h"
#undef _mx_process_self
#undef _mx_vmar_root_self
#undef _mx_job_default
#include <magenta/process.h>
// TODO: add ATTR_LIBC_VISIBILITY to all 3 exports as soon as Rust no longer depends on these
mx_handle_t __magenta_process_self;
mx_handle_t __magenta_vmar_root_self;
mx_handle_t __magenta_job_default;
mx_handle_t _mx_process_self(void) {
return __magenta_process_self;
}
__typeof(mx_process_self) mx_process_self
__attribute__((weak, alias("_mx_process_self")));
mx_handle_t _mx_vmar_root_self(void) {
return __magenta_vmar_root_self;
}
__typeof(mx_vmar_root_self) mx_vmar_root_self
__attribute__((weak, alias("_mx_vmar_root_self")));
mx_handle_t _mx_job_default(void) {
return __magenta_job_default;
}
__typeof(mx_job_default) mx_job_default
__attribute__((weak, alias("_mx_job_default")));