xref: /xnu-8792.61.2/osfmk/man/tvalspec.html (revision 42e220869062b56f8d7d0726fd4c88954f87902c)
1*42e22086SApple OSS Distributions<h2>tvalspec</h2>
2*42e22086SApple OSS Distributions<hr>
3*42e22086SApple OSS Distributions<p>
4*42e22086SApple OSS Distributions<strong>Structure</strong> - Defines format of system time values.
5*42e22086SApple OSS Distributions<h3>SYNOPSIS</h3>
6*42e22086SApple OSS Distributions<pre>
7*42e22086SApple OSS Distributions<strong>struct tvalspec</strong>
8*42e22086SApple OSS Distributions<strong>{</strong>
9*42e22086SApple OSS Distributions       <strong>unsigned int</strong>       <var>tv_sec</var><strong>;</strong>
10*42e22086SApple OSS Distributions       <strong>clock_res_t</strong>       <var>tv_nsec</var><strong>;</strong>
11*42e22086SApple OSS Distributions<strong>};</strong>
12*42e22086SApple OSS Distributions
13*42e22086SApple OSS Distributions<strong>typedef struct tvalspec tvalspec_t;</strong>
14*42e22086SApple OSS Distributions</pre>
15*42e22086SApple OSS Distributions<h3>FIELDS</h3>
16*42e22086SApple OSS Distributions<dl>
17*42e22086SApple OSS Distributions<dt> <var>tv_sec</var>
18*42e22086SApple OSS Distributions<dd>
19*42e22086SApple OSS DistributionsSeconds.
20*42e22086SApple OSS Distributions<p>
21*42e22086SApple OSS Distributions<dt> <var>tv_nsec</var>
22*42e22086SApple OSS Distributions<dd>
23*42e22086SApple OSS DistributionsNanoseconds.
24*42e22086SApple OSS Distributions</dl>
25*42e22086SApple OSS Distributions<h3>DESCRIPTION</h3>
26*42e22086SApple OSS Distributions<p>
27*42e22086SApple OSS DistributionsThe <strong>tvalspec</strong> structure defines the format of the time
28*42e22086SApple OSS Distributionsstructure supplied to or
29*42e22086SApple OSS Distributionsreturned from the kernel.  This definition conforms to the Posix
30*42e22086SApple OSS Distributions1003.4 <var>timespec</var>
31*42e22086SApple OSS Distributionsdefinition where the <var>tv_nsec</var> structure member is valid
32*42e22086SApple OSS Distributionsif (0 =< <var>tv_nsec</var> < 109) and
33*42e22086SApple OSS Distributionsthe time period described is ((<var>tv_sec</var> * 109) + <var>tv_nsec</var>) nanoseconds.
34*42e22086SApple OSS Distributions<h3>RELATED INFORMATION</h3>
35*42e22086SApple OSS Distributions<p>
36*42e22086SApple OSS DistributionsFunctions:
37*42e22086SApple OSS Distributions<a href="clock_get_time.html"><strong>clock_get_time</strong></a>,
38*42e22086SApple OSS Distributions<a href="clock_set_time.html"><strong>clock_set_time</strong></a>,
39*42e22086SApple OSS Distributions<a href="clock_sleep.html"><strong>clock_sleep</strong></a>,
40*42e22086SApple OSS Distributions<a href="clock_alarm.html"><strong>clock_alarm</strong></a>,
41*42e22086SApple OSS Distributions<a href="clock_alarm_reply.html"><strong>clock_alarm_reply</strong></a>.
42*42e22086SApple OSS Distributions<p>
43*42e22086SApple OSS DistributionsData Structures:
44*42e22086SApple OSS Distributions<a href="mapped_tvalspec.html"><strong>mapped_tvalspec</strong></a>.
45