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. -->
12 >Clocks and Timers [POSIX Section 14]</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="POSIX Standard Support"
23 HREF="posix-standard-support.html"><LINK
25 TITLE="Execution Scheduling [POSIX Section 13]"
26 HREF="posix-execution-scheduling.html"><LINK
28 TITLE="Message Passing [POSIX Section 15]"
29 HREF="posix-message-passing.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="posix-execution-scheduling.html"
65 >Chapter 31. POSIX Standard Support</TD
71 HREF="posix-message-passing.html"
85 NAME="POSIX-CLOCKS-AND-TIMERS">Clocks and Timers [POSIX Section 14]</H1
91 NAME="AEN13230">Functions Implemented</H2
100 >int clock_settime( clockid_t clock_id,
101 const struct timespec *tp);
102 int clock_gettime( clockid_t clock_id, struct timespec *tp);
103 int clock_getres( clockid_t clock_id, struct timespec *tp);
104 int timer_create( clockid_t clock_id, struct sigevent *evp,
105 timer_t *timer_id);
106 int timer_delete( timer_t timer_id );
107 int timer_settime( timer_t timerid, int flags,
108 const struct itimerspec *value,
109 struct itimerspec *ovalue );
110 int timer_gettime( timer_t timerid, struct itimerspec *value );
111 int timer_getoverrun( timer_t timerid );
112 int nanosleep( const struct timespec *rqtp, struct timespec *rmtp);</PRE
122 NAME="AEN13233">Functions Omitted</H2
131 NAME="AEN13236">Notes</H2
141 >timer_getoverrun()</I
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.
151 > The option CYGPKG_POSIX_TIMERS allows the timer support to be
152 enabled or disabled, and causes _POSIX_TIMERS to be defined
153 appropriately. This will cause other parts of the POSIX system to
154 have limited functionality.
165 SUMMARY="Footer navigation table"
176 HREF="posix-execution-scheduling.html"
194 HREF="posix-message-passing.html"
204 >Execution Scheduling [POSIX Section 13]</TD
210 HREF="posix-standard-support.html"
218 >Message Passing [POSIX Section 15]</TD