source: rtems/cpukit/posix/src/ptimer.c @ f17c779

4.115
Last change on this file since f17c779 was f17c779, checked in by Sebastian Huber <sebastian.huber@…>, on 07/19/13 at 13:08:53

posix: Create timer implementation header

Move implementation specific parts of timer.h and timer.inl into new
header file timerimpl.h. The timer.h contains now only the application
visible API.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file
3 *
4 * @brief Process Timer
5 * @ingroup POSIXAPI
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2008.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <time.h>
22#include <errno.h>
23#include <limits.h> /* _POSIX_PATH_MAX */
24
25#include <rtems/system.h>
26#include <rtems/config.h>
27#include <rtems/score/isr.h>
28#include <rtems/score/thread.h>
29#include <rtems/score/tod.h>
30
31#include <rtems/posix/time.h>
32
33/************************************/
34/* These includes are now necessary */
35/************************************/
36
37#include <unistd.h>
38#include <rtems/rtems/status.h>
39#include <rtems/rtems/types.h>
40#include <rtems/rtems/timer.h>
41#include <rtems/rtems/clock.h>
42#include <rtems/score/wkspace.h>
43#include <pthread.h>
44#include <stdio.h>
45#include <signal.h>
46
47#include <rtems/posix/timerimpl.h>
48
49/*
50 * _POSIX_Timer_Manager_initialization
51 *
52 *  Description:
53 *
54 *  Initialize the internal structure in which the data of all
55 *  the timers are stored
56 */
57
58void _POSIX_Timer_Manager_initialization(void)
59{
60  _Objects_Initialize_information(
61    &_POSIX_Timer_Information,  /* object information table */
62    OBJECTS_POSIX_API,          /* object API */
63    OBJECTS_POSIX_TIMERS,       /* object class */
64    Configuration_POSIX_API.maximum_timers,
65                                /* maximum objects of this class */
66    sizeof( POSIX_Timer_Control ),
67                                /* size of this object's control block */
68    true,                       /* true if names for this object are strings */
69    _POSIX_PATH_MAX             /* maximum length of each object's name */
70#if defined(RTEMS_MULTIPROCESSING)
71    ,
72    false,                      /* true if this is a global object class */
73    NULL                        /* Proxy extraction support callout */
74#endif
75  );
76}
Note: See TracBrowser for help on using the repository browser.