]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - doc/html/ref/posix-clocks-and-timers.html
RedBoot TX53 Release 2012-02-15
[karo-tx-redboot.git] / doc / html / ref / posix-clocks-and-timers.html
1 <!-- Copyright (C) 2003 Red Hat, Inc.                                -->
2 <!-- This material may be distributed only subject to the terms      -->
3 <!-- and conditions set forth in the Open Publication License, v1.0  -->
4 <!-- or later (the latest version is presently available at          -->
5 <!-- http://www.opencontent.org/openpub/).                           -->
6 <!-- Distribution of the work or derivative of the work in any       -->
7 <!-- standard (paper) book form is prohibited unless prior           -->
8 <!-- permission is obtained from the copyright holder.               -->
9 <HTML
10 ><HEAD
11 ><TITLE
12 >Clocks and Timers [POSIX Section 14]</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
14 <META
15 NAME="GENERATOR"
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17 "><LINK
18 REL="HOME"
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
21 REL="UP"
22 TITLE="POSIX Standard Support"
23 HREF="posix-standard-support.html"><LINK
24 REL="PREVIOUS"
25 TITLE="Execution Scheduling [POSIX Section 13]"
26 HREF="posix-execution-scheduling.html"><LINK
27 REL="NEXT"
28 TITLE="Message Passing [POSIX Section 15]"
29 HREF="posix-message-passing.html"></HEAD
30 ><BODY
31 CLASS="SECT1"
32 BGCOLOR="#FFFFFF"
33 TEXT="#000000"
34 LINK="#0000FF"
35 VLINK="#840084"
36 ALINK="#0000FF"
37 ><DIV
38 CLASS="NAVHEADER"
39 ><TABLE
40 SUMMARY="Header navigation table"
41 WIDTH="100%"
42 BORDER="0"
43 CELLPADDING="0"
44 CELLSPACING="0"
45 ><TR
46 ><TH
47 COLSPAN="3"
48 ALIGN="center"
49 >eCos Reference Manual</TH
50 ></TR
51 ><TR
52 ><TD
53 WIDTH="10%"
54 ALIGN="left"
55 VALIGN="bottom"
56 ><A
57 HREF="posix-execution-scheduling.html"
58 ACCESSKEY="P"
59 >Prev</A
60 ></TD
61 ><TD
62 WIDTH="80%"
63 ALIGN="center"
64 VALIGN="bottom"
65 >Chapter 31. POSIX Standard Support</TD
66 ><TD
67 WIDTH="10%"
68 ALIGN="right"
69 VALIGN="bottom"
70 ><A
71 HREF="posix-message-passing.html"
72 ACCESSKEY="N"
73 >Next</A
74 ></TD
75 ></TR
76 ></TABLE
77 ><HR
78 ALIGN="LEFT"
79 WIDTH="100%"></DIV
80 ><DIV
81 CLASS="SECT1"
82 ><H1
83 CLASS="SECT1"
84 ><A
85 NAME="POSIX-CLOCKS-AND-TIMERS">Clocks and Timers &#0091;POSIX Section 14&#0093;</H1
86 ><DIV
87 CLASS="SECT2"
88 ><H2
89 CLASS="SECT2"
90 ><A
91 NAME="AEN13230">Functions Implemented</H2
92 ><TABLE
93 BORDER="5"
94 BGCOLOR="#E0E0F0"
95 WIDTH="70%"
96 ><TR
97 ><TD
98 ><PRE
99 CLASS="SCREEN"
100 >int clock&#0095;settime( clockid&#0095;t clock&#0095;id,
101 const struct timespec &#0042;tp); 
102 int clock&#0095;gettime( clockid&#0095;t clock&#0095;id, struct timespec &#0042;tp); 
103 int clock&#0095;getres( clockid&#0095;t clock&#0095;id, struct timespec &#0042;tp); 
104 int timer&#0095;create( clockid&#0095;t clock&#0095;id, struct sigevent &#0042;evp,
105                   timer&#0095;t &#0042;timer&#0095;id);
106 int timer&#0095;delete( timer&#0095;t timer&#0095;id ); 
107 int timer&#0095;settime( timer&#0095;t timerid, int flags,
108                    const struct itimerspec &#0042;value,
109                    struct itimerspec &#0042;ovalue ); 
110 int timer&#0095;gettime( timer&#0095;t timerid, struct itimerspec &#0042;value ); 
111 int timer&#0095;getoverrun( timer&#0095;t timerid ); 
112 int nanosleep( const struct timespec &#0042;rqtp, struct timespec &#0042;rmtp);</PRE
113 ></TD
114 ></TR
115 ></TABLE
116 ></DIV
117 ><DIV
118 CLASS="SECT2"
119 ><H2
120 CLASS="SECT2"
121 ><A
122 NAME="AEN13233">Functions Omitted</H2
123 ><P
124 >&lt;none&gt;</P
125 ></DIV
126 ><DIV
127 CLASS="SECT2"
128 ><H2
129 CLASS="SECT2"
130 ><A
131 NAME="AEN13236">Notes</H2
132 ><P
133 ></P
134 ><UL
135 ><LI
136 ><P
137 >    Currently <SPAN
138 CLASS="emphasis"
139 ><I
140 CLASS="EMPHASIS"
141 >timer&#0095;getoverrun()</I
142 ></SPAN
143 > only
144     reports timer notifications that are delayed in the timer
145     subsystem.  If they are delayed in the signal subsystem, due to
146     signal masks for example, this is not counted as an overrun.
147     </P
148 ></LI
149 ><LI
150 ><P
151 >    The option CYGPKG&#0095;POSIX&#0095;TIMERS allows the timer support to be
152     enabled or disabled, and causes &#0095;POSIX&#0095;TIMERS to be defined
153     appropriately. This will cause other parts of the POSIX system to
154     have limited functionality.
155     </P
156 ></LI
157 ></UL
158 ></DIV
159 ></DIV
160 ><DIV
161 CLASS="NAVFOOTER"
162 ><HR
163 ALIGN="LEFT"
164 WIDTH="100%"><TABLE
165 SUMMARY="Footer navigation table"
166 WIDTH="100%"
167 BORDER="0"
168 CELLPADDING="0"
169 CELLSPACING="0"
170 ><TR
171 ><TD
172 WIDTH="33%"
173 ALIGN="left"
174 VALIGN="top"
175 ><A
176 HREF="posix-execution-scheduling.html"
177 ACCESSKEY="P"
178 >Prev</A
179 ></TD
180 ><TD
181 WIDTH="34%"
182 ALIGN="center"
183 VALIGN="top"
184 ><A
185 HREF="ecos-ref.html"
186 ACCESSKEY="H"
187 >Home</A
188 ></TD
189 ><TD
190 WIDTH="33%"
191 ALIGN="right"
192 VALIGN="top"
193 ><A
194 HREF="posix-message-passing.html"
195 ACCESSKEY="N"
196 >Next</A
197 ></TD
198 ></TR
199 ><TR
200 ><TD
201 WIDTH="33%"
202 ALIGN="left"
203 VALIGN="top"
204 >Execution Scheduling &#0091;POSIX Section 13&#0093;</TD
205 ><TD
206 WIDTH="34%"
207 ALIGN="center"
208 VALIGN="top"
209 ><A
210 HREF="posix-standard-support.html"
211 ACCESSKEY="U"
212 >Up</A
213 ></TD
214 ><TD
215 WIDTH="33%"
216 ALIGN="right"
217 VALIGN="top"
218 >Message Passing &#0091;POSIX Section 15&#0093;</TD
219 ></TR
220 ></TABLE
221 ></DIV
222 ></BODY
223 ></HTML
224 >