forked from apple/darwin-xnu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhost_set_time.html
37 lines (36 loc) · 1004 Bytes
/
host_set_time.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<h2>host_set_time</h2>
<hr>
<p>
<strong>Function</strong> - Sets the time.
<h3>SYNOPSIS</h3>
<pre>
<strong>#include< mach/mach_host.h></strong>
<strong>kern_return_t host_set_time</strong>
<strong>(host_priv_t</strong> <var>host_priv</var>,
<strong>time_value_t</strong> <var>new_time</var><strong>);</strong>
</pre>
<h3>PARAMETERS</h3>
<dl>
<p>
<dt> <var>host_priv</var>
<dd>
[in host-control port] The control port for the host for which the time is to be set.
<p>
<dt> <var>new_time</var>
<dd>
[in structure] Time to be set.
</dl>
<h3>DESCRIPTION</h3>
<p>
The <strong>host_set_time</strong> function establishes the time on the specified host.
<h3>RETURN VALUES</h3>
<p>
Only generic errors apply.
<h3>RELATED INFORMATION</h3>
<p>
Functions:
<a href="host_adjust_time.html"><strong>host_adjust_time</strong></a>,
<a href="host_get_time.html"><strong>host_get_time</strong></a>.
<p>
Data Structures:
time_value.