mach-sys 0.5.4

forked from original mach, and merge from mach2/machx. A Rust interface to the user-space API of the Mach 3.0 kernel that underlies OSX.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! This module roughly corresponds to `mach-o/dyld.h`.

use crate::ffi::{c_char, intptr_t};

use crate::loader::mach_header;

extern "C" {
    pub fn _dyld_image_count() -> u32;

    pub fn _dyld_get_image_name        (image_index: u32) -> *const c_char;
    pub fn _dyld_get_image_header      (image_index: u32) -> *const mach_header;
    pub fn _dyld_get_image_vmaddr_slide(image_index: u32) -> intptr_t;
}