4.104.114.84.95
Line | |
---|
1 | /* rtems/posix/ptimer.h |
---|
2 | * |
---|
3 | * This include file contains all the private support information for |
---|
4 | * POSIX timers. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1998. |
---|
7 | * Alfonso Escalera Piña |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * ptimer.h,v 1.0 1998/03/31 16:21:16 |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef __RTEMS_POSIX_TIMERS_h |
---|
17 | #define __RTEMS_POSIX_TIMERS_h |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <rtems/posix/config.h> |
---|
24 | |
---|
25 | /* |
---|
26 | * _POSIX_Timers_Manager_initialization |
---|
27 | * |
---|
28 | * DESCRIPTION: |
---|
29 | * |
---|
30 | * This routine performs the initialization necessary for this manager. |
---|
31 | */ |
---|
32 | |
---|
33 | void _POSIX_Timer_Manager_initialization ( int max_timers ); |
---|
34 | |
---|
35 | /* |
---|
36 | * 14.2.2 Create a Per-Process Timer, P1003.1b-1993, p. 264 |
---|
37 | * |
---|
38 | * timer_create |
---|
39 | */ |
---|
40 | |
---|
41 | int timer_create( |
---|
42 | clockid_t clock_id, |
---|
43 | struct sigevent *evp, |
---|
44 | timer_t *timerid |
---|
45 | ); |
---|
46 | |
---|
47 | /* |
---|
48 | * 14.2.3 Delete a Per_process Timer, P1003.1b-1993, p. 266 |
---|
49 | */ |
---|
50 | |
---|
51 | int timer_delete( |
---|
52 | timer_t timerid |
---|
53 | ); |
---|
54 | |
---|
55 | /* |
---|
56 | * 14.2.4 Per-Process Timers, P1003.1b-1993, p. 267 |
---|
57 | * |
---|
58 | * timer_settime |
---|
59 | */ |
---|
60 | |
---|
61 | int timer_settime( |
---|
62 | timer_t timerid, |
---|
63 | int flags, |
---|
64 | const struct itimerspec *value, |
---|
65 | struct itimerspec *ovalue |
---|
66 | ); |
---|
67 | |
---|
68 | /* |
---|
69 | * 14.2.4 Per-Process Timers, P1003.1b-1993, p. 267 |
---|
70 | * |
---|
71 | * timer_gettime |
---|
72 | */ |
---|
73 | |
---|
74 | int timer_gettime( |
---|
75 | timer_t timerid, |
---|
76 | struct itimerspec *value |
---|
77 | ); |
---|
78 | |
---|
79 | /* |
---|
80 | * 14.2.4 Per-Process Timers, P1003.1b-1993, p. 267 |
---|
81 | * |
---|
82 | * timer_getoverrun |
---|
83 | * |
---|
84 | */ |
---|
85 | |
---|
86 | int timer_getoverrun( |
---|
87 | timer_t timerid |
---|
88 | ); |
---|
89 | |
---|
90 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.