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

use crate::clock_types::{clock_attr_t, clock_flavor_t, mach_timespec_t};
use crate::kern_return::kern_return_t;
use crate::mach_types::clock_ctrl_t;
use crate::message::mach_msg_type_number_t;

extern "C" {
    pub fn clock_set_time(
        clock_ctrl: clock_ctrl_t,
        new_time:   mach_timespec_t,
    ) -> kern_return_t;

    pub fn clock_set_attributes(
        clock_ctrl:    clock_ctrl_t,
        flavor:        clock_flavor_t,
        clock_attr:    clock_attr_t,
        clock_attrCnt: mach_msg_type_number_t,
    ) -> kern_return_t;
}