mach2 0.6.0

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
//! This module roughly corresponds to `mach-o/dyld.h`.

use crate::loader::mach_header;
use core::ffi::c_char;

unsafe extern "C" {
    pub fn _dyld_image_count() -> u32;
    pub fn _dyld_get_image_header(image_index: u32) -> *const mach_header;
    pub fn _dyld_get_image_vmaddr_slide(image_index: u32) -> isize;
    pub fn _dyld_get_image_name(image_index: u32) -> *const c_char;
}