]> git.saurik.com Git - apple/xnu.git/blob - osfmk/man/host_set_time.html
xnu-792.24.17.tar.gz
[apple/xnu.git] / osfmk / man / host_set_time.html
1 <h2>host_set_time</h2>
2 <hr>
3 <p>
4 <strong>Function</strong> - Sets the time.
5 <h3>SYNOPSIS</h3>
6 <pre>
7 <strong>#include&lt mach/mach_host.h&gt</strong>
8
9 <strong>kern_return_t host_set_time</strong>
10 <strong>(host_priv_t</strong> <var>host_priv</var>,
11 <strong>time_value_t</strong> <var>new_time</var><strong>);</strong>
12 </pre>
13 <h3>PARAMETERS</h3>
14 <dl>
15 <p>
16 <dt> <var>host_priv</var>
17 <dd>
18 [in host-control port] The control port for the host for which the time is to be set.
19 <p>
20 <dt> <var>new_time</var>
21 <dd>
22 [in structure] Time to be set.
23 </dl>
24 <h3>DESCRIPTION</h3>
25 <p>
26 The <strong>host_set_time</strong> function establishes the time on the specified host.
27 <h3>RETURN VALUES</h3>
28 <p>
29 Only generic errors apply.
30 <h3>RELATED INFORMATION</h3>
31 <p>
32 Functions:
33 <a href="host_adjust_time.html"><strong>host_adjust_time</strong></a>,
34 <a href="host_get_time.html"><strong>host_get_time</strong></a>.
35 <p>
36 Data Structures:
37 time_value.