feature. See also
. The project being documented here (as the example) is the Zig library itself.
darwin.MACH
pub const MACH = struct
File
Code
pub const MACH = struct {
pub const EXCEPTION = packed struct(exception_mask_t) {
_: u29 = 0,
BACKTRACE_PREFERRED: bool = false,
ERRORS: bool = false,
CODES: bool = false,
pub const MASK: exception_mask_t = @bitCast(MACH.EXCEPTION{
.BACKTRACE_PREFERRED = true,
.ERRORS = true,
.CODES = true,
});
};
pub const MSG = packed struct(kern_return_t) {
_0: u10 = 0,
VM_KERNEL: bool = false,
IPC_KERNEL: bool = false,
VM_SPACE: bool = false,
IPC_SPACE: bool = false,
_14: u18 = 0,
pub const MASK: kern_return_t = @bitCast(MACH.MSG{
.VM_KERNEL = true,
.IPC_KERNEL = true,
.VM_SPACE = true,
.IPC_SPACE = true,
});
pub const TIMEOUT_NONE: mach_msg_timeout_t = .NONE;
pub const OPTION_NONE: mach_msg_option_t = .NONE;
pub const STRICT_REPLY = @compileError("use MACH.RCV.STRICT_REPLY and/or MACH.SEND.STRICT_REPLY");
pub const TYPE = mach_msg_type_name_t;
};
pub const PORT = struct {
pub const NULL: mach_port_t = 0;
pub const RIGHT = mach_port_right_t;
};
pub const RCV = packed struct(integer_t) {
_0: u1 = 0,
MSG: bool = true,
LARGE: bool = false,
LARGE_IDENTITY: bool = false,
_4: u4 = 0,
TIMEOUT: bool = false,
STRICT_REPLY: bool = false,
INTERRUPT: bool = false,
VOUCHER: bool = false,
GUARDED_DESC: bool = false,
_13: u1 = 0,
SYNC_WAIT: bool = false,
SYNC_PEEK: bool = false,
_16: u16 = 0,
};
pub const SEND = packed struct(integer_t) {
MSG: bool = true,
_1: u3 = 0,
TIMEOUT: bool = false,
OVERRIDE: bool = false,
INTERRUPT: bool = false,
NOTIFY: bool = false,
_8: u1 = 0,
STRICT_REPLY: bool = false,
_10: u6 = 0,
FILTER_NONFATAL: bool = false,
TRAILER: bool = false,
NOIMPORTANCE: bool = false,
IMPORTANCE: bool = false,
SYNC_OVERRIDE: bool = false,
PROPAGATE_QOS: bool = false,
KERNEL: bool = false,
SYNC_BOOTSTRAP_CHECKIN: bool = false,
_24: u8 = 0,
};
pub const TASK = struct {
pub const BASIC = struct {
pub const INFO = 20;
pub const INFO_COUNT: mach_msg_type_number_t = @sizeOf(mach_task_basic_info) / @sizeOf(natural_t);
};
};
}