mach2 0.7.0

A Rust interface to the user-space API of the Mach 3.0 kernel that underlies OSX.
Documentation
//! This module roughly corresponds to `mach-o/loader.h`.
use core::ffi::c_int;

pub type cpu_type_t = c_int;
pub type cpu_subtype_t = c_int;

pub const LC_LAZY_LOAD_DYLIB_INFO: u32 = 0x3a;

#[repr(C)]
#[allow(dead_code, non_snake_case)]
#[derive(Copy, Clone, Debug)]
pub struct mach_header {
    pub magic: u32,
    pub cputype: cpu_type_t,
    pub cpusubtype: cpu_subtype_t,
    pub filetype: u32,
    pub ncmds: u32,
    pub sizeofcmds: u32,
    pub flags: u32,
}