mach_sys/
clock_priv.rs

1//! This module roughly corresponds to `mach/clock_priv.h`.
2
3use crate::clock_types::{clock_attr_t, clock_flavor_t, mach_timespec_t};
4use crate::kern_return::kern_return_t;
5use crate::mach_types::clock_ctrl_t;
6use crate::message::mach_msg_type_number_t;
7
8extern "C" {
9    pub fn clock_set_time(
10        clock_ctrl: clock_ctrl_t,
11        new_time:   mach_timespec_t,
12    ) -> kern_return_t;
13
14    pub fn clock_set_attributes(
15        clock_ctrl:    clock_ctrl_t,
16        flavor:        clock_flavor_t,
17        clock_attr:    clock_attr_t,
18        clock_attrCnt: mach_msg_type_number_t,
19    ) -> kern_return_t;
20}
21