source: rtems/cpukit/posix/include/rtems/posix/ptimer.h @ 0747e2d

4.104.114.84.95
Last change on this file since 0747e2d was 0747e2d, checked in by Joel Sherrill <joel.sherrill@…>, on 02/03/99 at 16:22:18

POSIX Timers submitted by Juan Zamorano Flores
<jzamora@…>.

  • Property mode set to 100644
File size: 1.5 KB
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.OARcorp.com/rtems/license.html.
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
20extern "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
33void _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
41int 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
51int 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
61int 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
74int 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
86int timer_getoverrun(
87  timer_t   timerid
88);
89
90#endif
91
Note: See TracBrowser for help on using the repository browser.