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